From jcigar at ulb.ac.be Wed Feb 1 00:59:32 2012 From: jcigar at ulb.ac.be (Julien Cigar) Date: Wed, 01 Feb 2012 09:59:32 +0100 Subject: [mapserver-users] PostGIS query In-Reply-To: <1328025933.74612.YahooMailNeo@web38206.mail.mud.yahoo.com> References: <4F27E0D7.4080409@ulb.ac.be> <1328025933.74612.YahooMailNeo@web38206.mail.mud.yahoo.com> Message-ID: <4F28FEF4.5010602@ulb.ac.be> On 01/31/2012 17:05, Carlos Ruiz wrote: > Julien, Hi Carlos, > > Have you tried with views ? When I need to map complex queries I build a > view to just handle the where clauses. > I usually use a view, but in this case there are a lot of tables involved and I would like to avoid dozens of unnecessary JOIN > Cheers from M?xico > IC Carlos Ruiz > > ------------------------------------------------------------------------ > *From:* Julien Cigar > *To:* "mapserver-users at lists.osgeo.org" > *Sent:* Tuesday, January 31, 2012 6:38 AM > *Subject:* [mapserver-users] PostGIS query > > Hello, > > Is there a way to (deeply) modify the SQL query in a PostGIS layer? > I would like to add some JOIN, additional WHERE clauses, etc > As I'm afraid that "Run-time Substitution" isn't flexible enough for > this case ... is there any other possibility, other than mapscript? > > I guess there is no possibility to define variables, conditions, etc in > a .map file .. ? > > Thanks, > Julien > > -- No trees were killed in the creation of this message. > However, many electrons were terribly inconvenienced. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: jcigar.vcf Type: text/x-vcard Size: 292 bytes Desc: not available URL: From n8 at langhirano.it Wed Feb 1 01:18:14 2012 From: n8 at langhirano.it (Nico Alberti) Date: Wed, 01 Feb 2012 10:18:14 +0100 Subject: [mapserver-users] Troubles masking wmf service via mod_rewrite In-Reply-To: References: <4F28074A.80909@langhirano.it> Message-ID: <4F290356.3020301@langhirano.it> Il 31/01/2012 16:46, Michael Shishcu ha scritto: > Oh, Nico, there's a flag you can use for that, [QSA]: That was easy, once somebody told me how to fix it :-) Thank you so much! -- Ciao Nico From chris.green at ibstv.co.uk Wed Feb 1 03:38:17 2012 From: chris.green at ibstv.co.uk (Chris Green) Date: Wed, 1 Feb 2012 11:38:17 -0000 Subject: [mapserver-users] disappearing point features in North America Message-ID: <02fa01cce0d5$ff568d60$fe03a820$@green@ibstv.co.uk> I have a problem that may be down to OpenLayers or to Mapserver, or (just as likely) to me. Basically I am using OL to request WMS maps from Mapserver, and the map consists of point features with a global spread, typically around 100 points in each map. The points are defined in a table which has lat/lon in decimal degrees, and these are converted to 900913 by Mapserver where my mapfile has an overall projection of epsg: 900913 but the points layer has projection epsg: 4326. The map is defined in OL with extents: -20037508.34, -20037508.34, 20037508.34, 20037508.34 and the mapfile has the same extents applied. This all works fine when a map is first displayed, all of the points are present on the map. However when I scroll the map left or right there is a 'dead spot' where all the points in North America disappear and then re-appear, either side of the dead spot. Looking with Firebug at the bounding box that OL uses to request the map from Mapserver I can see that the points disappear when the bounding box is between left bounds of about -23700000 and -33700000. Only the points in North America are affected, never those in Europe or Asia. I have been wrestling with this for quite a while, experimenting with extents etc, all without any effect. Does anyone recognise where my problem may lie, or else have any suggestions how to diagnose what is going on? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Feb 1 03:56:59 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 1 Feb 2012 12:56:59 +0100 Subject: [mapserver-users] mapcache In-Reply-To: References: Message-ID: On Thu, Jan 26, 2012 at 19:30, John Callahan wrote: > I'm giving mapcache a try but with no luck. ?Well, some luck. ?The module > loads fine and the demo (vmap0, http://127.0.0.1/mapcache/demo/wms) also > works fine. ?I see the tiles being generated on disk. ?Great. ?However, the > problem comes in with my own data/services. ?A few questions may help me > determine the problem. > > - in the source element, how do you define multiple layers? ?Comma separated > or separate entries? layer1,layer2 > > - in the tileset element, can you have multiple grid entries? ?It doesn't > seem like it from reading the documentation but the sample tileset shows > both the "g" and "WGS84" grids. which doc part does not show this? http://www.mapserver.org/trunk/mapcache/config.html#tileset > > - for cache type attributes, what are the possible values? ?The docs show > several possibilities (disk, sqllite, memcache) but the sample shows > type="tiff" which is not listed on the doc page. ?Can other file extensions > be used here? http://www.mapserver.org/trunk/mapcache/caches.html > > - when I define a FORMAT with name and type, how does that get used? ?I see > that is called in the tileset but how does that relate to the image type > under getmap/params/format? The format is used when recompressing individual tiles after having cut a larger metatile. It is also used when combining multiple tiles into a single image for a getmap request. If you want to force a specific format to be sent to the source wms server when creating a tile, you can add a foobar to your source definition (at the same level as the parameter). Both formats don't have to be equivalent, it is actually a good idea to request the images in png from the source wms server even when using a jpeg format for the the tileset, as this will avoid a double jpeg compression (once on the wms server, once on the mapcache server) when storing an individual tile to the caches. regards, thomas > > > The doc page I am referring to is > at?http://www.mapserver.org/trunk/mapcache/config.html. ?I'm sure I'll have > other questions as I work my way through. ?Thanks for this awesome addition > to Mapserver! > > - John > > *********************************************** > John Callahan, Research Scientist > Delaware Geological Survey, University of Delaware > URL: http://www.dgs.udel.edu > ************************************************* > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From forums at craniumjuice.com Wed Feb 1 05:16:41 2012 From: forums at craniumjuice.com (forums) Date: Wed, 1 Feb 2012 07:16:41 -0600 Subject: [mapserver-users] disappearing point features in North America In-Reply-To: <4f29243d.02000e0a.2a14.ffffc99bSMTPIN_ADDED@mx.google.com> References: <4f29243d.02000e0a.2a14.ffffc99bSMTPIN_ADDED@mx.google.com> Message-ID: Chris: I had a similar issue, it was suggested to me to add "+over" to my epsg definitions file. Mine now looks like: <4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +over +no_defs <> <900913> +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 +wktext +over +no_defs <> That seemed to make a difference, but I also upgraded PROJ4 at the same time. Jerl On Wed, Feb 1, 2012 at 5:38 AM, Chris Green wrote: > I have a problem that may be down to OpenLayers or to Mapserver, or (just > as likely) to me. Basically I am using OL to request WMS maps from > Mapserver, and the map consists of point features with a global spread, > typically around 100 points in each map. The points are defined in a table > which has lat/lon in decimal degrees, and these are converted to 900913 by > Mapserver where my mapfile has an overall projection of epsg: 900913 but > the points layer has projection epsg: 4326.**** > > ** ** > > The map is defined in OL with extents: -20037508.34, -20037508.34, > 20037508.34, 20037508.34 and the mapfile has the same extents applied.**** > > **** > > This all works fine when a map is first displayed, all of the points are > present on the map. However when I scroll the map left or right there is a > ?dead spot? where all the points in North America disappear and then > re-appear, either side of the dead spot. Looking with Firebug at the > bounding box that OL uses to request the map from Mapserver I can see that > the points disappear when the bounding box is between left bounds of about > -23700000 and -33700000. Only the points in North America are affected, > never those in Europe or Asia. **** > > ** ** > > I have been wrestling with this for quite a while, experimenting with > extents etc, all without any effect. Does anyone recognise where my > problem may lie, or else have any suggestions how to diagnose what is going > on?**** > > ** ** > > ** ** > > Chris **** > > ** ** > > ** ** > > ** ** > > ** ** > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- A computer without Windows is like chocolate cake without mustard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.green at ibstv.co.uk Wed Feb 1 05:33:41 2012 From: chris.green at ibstv.co.uk (Chris Green) Date: Wed, 1 Feb 2012 13:33:41 -0000 Subject: [mapserver-users] disappearing point features in North America In-Reply-To: References: <4f29243d.02000e0a.2a14.ffffc99bSMTPIN_ADDED@mx.google.com> Message-ID: <033f01cce0e6$1d4283a0$57c78ae0$@green@ibstv.co.uk> Hi Jerl Eurueka! "+over" did it! Thanks, I owe you one. Chris From: jerl.simpson at craniumjuice.com [mailto:jerl.simpson at craniumjuice.com] On Behalf Of forums Sent: 01 February 2012 13:17 To: Chris Green Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] disappearing point features in North America Chris: I had a similar issue, it was suggested to me to add "+over" to my epsg definitions file. Mine now looks like: <4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +over +no_defs <> <900913> +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 +wktext +over +no_defs <> That seemed to make a difference, but I also upgraded PROJ4 at the same time. Jerl On Wed, Feb 1, 2012 at 5:38 AM, Chris Green wrote: I have a problem that may be down to OpenLayers or to Mapserver, or (just as likely) to me. Basically I am using OL to request WMS maps from Mapserver, and the map consists of point features with a global spread, typically around 100 points in each map. The points are defined in a table which has lat/lon in decimal degrees, and these are converted to 900913 by Mapserver where my mapfile has an overall projection of epsg: 900913 but the points layer has projection epsg: 4326. The map is defined in OL with extents: -20037508.34, -20037508.34, 20037508.34, 20037508.34 and the mapfile has the same extents applied. This all works fine when a map is first displayed, all of the points are present on the map. However when I scroll the map left or right there is a 'dead spot' where all the points in North America disappear and then re-appear, either side of the dead spot. Looking with Firebug at the bounding box that OL uses to request the map from Mapserver I can see that the points disappear when the bounding box is between left bounds of about -23700000 and -33700000. Only the points in North America are affected, never those in Europe or Asia. I have been wrestling with this for quite a while, experimenting with extents etc, all without any effect. Does anyone recognise where my problem may lie, or else have any suggestions how to diagnose what is going on? Chris _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- A computer without Windows is like chocolate cake without mustard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ya.Wang at vta.org Wed Feb 1 10:33:31 2012 From: Ya.Wang at vta.org (Wang, Ya) Date: Wed, 1 Feb 2012 18:33:31 +0000 Subject: [mapserver-users] Can't get Tinyows WFS Layer to show in OpenLayer Message-ID: Dear All, I am a newbie of mapserver and other online mapping technologies. Recently, I have been struggling to load a TinyOWS WFS Layer to an OpenLayers map. I set up proxy.cgi, which works fine. I checked TinyOWS using command "tinyows -check", which also seems to be working. The page http://.../cgi-bin/tinyows.exe?service=wfs&request=getCapabilities&version=1.1.0&typename=tows:lrtstops doesn't return any error either. I can also load a mapserver WMS layer into the OpenLayers Map with no problem. However, no feature from the WFS layer would show in the OpenLayers map. Since both the WMS and WFS layers are of the same projection, which is EPSG:2227, I assume that the misspecification of projection is not likely to be the caprice here. The following is the JavaScript I used and the response returned. Could someone help me find out what I did wrong? Many thanks in advance! OpenLayers.ProxyHost = "/fcgi-bin/proxy.cgi?url="; function init() { map = new OpenLayers.Map('map', { projection: new OpenLayers.Projection("EPSG:2227"), units: "feet", maxResolution: "auto", maxExtent: new OpenLayers.Bounds(6103631,1911230,6186389,1976404), controls: [ new OpenLayers.Control.PanZoom() ] }); var wms= new OpenLayers.Layer.WMS( "parcel", "http://.../cgi-bin/mapserv.fcgi?MAP=.../Parcel.map", {layers: 'Parcel', format: 'image/jpeg'} ); var wfs = new OpenLayers.Layer.Vector("Editable Features", { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], projection: new OpenLayers.Projection("EPSG:2227"), protocol: new OpenLayers.Protocol.WFS({ version: "1.1.0", srsName: "urn:ogc:def:crs:EPSG::2227", url: "http://.../cgi-bin/tinyows.fcgi", featureNS : "http://roappdev1:8080/", featureType: "lrtstops", geometryName: "the_geom", outputFormat: "text/xml; subtype=gml/3.1.1", schema: "http://.../cgi-bin/tinyows.fcgi?service=wfs&request=DescribeFeatureType&version=1.1.0&typename=tows:lrtstops" }) }); map.addLayers([wms, wfs]); --------------------------------------------------------------------------- XML request isn't valid XML request isn't valid the_geom6040731.6 18786436249288.4 2008991 Response Headers Connection Keep-Alive Content-Type application/xml Date Wed, 01 Feb 2012 18:04:29 GMT Keep-Alive timeout=5, max=66 Proxy-Connection Keep-Alive Server Apache/2.2.16 (Win32) PHP/5.3.3 mod_fcgid/2.3.6 Transfer-Encoding chunked Via .... Request Headers Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding gzip, deflate Accept-Language en-us,en;q=0.5 Content-Length 917 Content-Type application/xml; charset=UTF-8 Cookie SESSd43c6da11a8841c94fab47ef368714de=576ee6deef9974c049b58c8494e0b122; __utma=116482309.238053724.1327699956.1327699956.1327709334.2; __utmz=116482309.1327699956.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none) Host myhost Proxy-Connection keep-alive Referer http://myserver/.../tinyows_test.html User-Agent Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0 By the way, I am using libxml 2.7.3 and openlayers 2.11. The following XML information is returned from phpinfo(). xml XML Support active XML Namespace Support active libxml2 Version 2.7.3 Regards, Ya -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Wed Feb 1 13:03:25 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Wed, 1 Feb 2012 16:03:25 -0500 Subject: [mapserver-users] Mapserver memory leaks Message-ID: Folks, We have a mapscript (6.x) application which runs as a process so the php script does not exit. What we appear to be seeing (using valgrind) is a surprisingly large number of memory leaks. Our next step is to look into each one and try and determine the cause but they appear to be in multiple places. Does anyone have any experience of similar conditions? Many thanks Ian From arnd.wippermann at web.de Wed Feb 1 13:18:02 2012 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed, 1 Feb 2012 22:18:02 +0100 Subject: AW: [mapserver-users] Style a polygon with Horizontal, Vertical, or Diagonal Lines using SLD? In-Reply-To: References: Message-ID: <122F0CA7601F44EDB77E53F68FEB87FF@pcawh2> you can define a symbol for the hatch in your mapfile SYMBOL NAME "schraffur" TYPE HATCH END and use this in your sld An example how it works: http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ er_SLD_World.asp?mapservLayers=0 &SLDsrcIdx=42 Arnd _____ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Paul Edwards Gesendet: Dienstag, 31. Januar 2012 20:37 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] Style a polygon with Horizontal, Vertical,or Diagonal Lines using SLD? Hi All! I'm wondering if anyone has experience styling maps with horizontal, vertical, or diagonal lines when using MapServer WMS and a custom provided SLD? The documentation states: http://mapserver.org/ogc/sld.html#named-styles-support "A Fill can be a solid fill or be a Graphic Fill, which is either a well-known Mark symbol (e.g., square, circle, triangle, star, cross, x) or an ExternalGraphic element (e.g., gif, png) available through a URL" This pretty clearly states that the way to accomplish my goal is by tiling an externally referenced image that has the line oriented the way I want, but then we lose the coloring options. GeoServer has some cool SLD extensions that are outside the spec (see link below) and I was wondering if MapServer had anything similar? http://docs.geoserver.org/stable/en/user/styling/sld-extensions/pointsymbols .html#the-shape-symbols Thanks! Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Wed Feb 1 17:22:21 2012 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 1 Feb 2012 17:22:21 -0800 Subject: [mapserver-users] Web site downtime Message-ID: Folks, The OSGeo ProjectsVM is down while we upgrade the OS (an upgrade that has encountered some issues). While this is being resolved the hosted sites including gdal.org, mapserver.org, grass.org will be down. http://wiki.osgeo.org/wiki/ProjectsVM Downtime could potentially be in the hours or even a day or two. I won't announce when things are back but you can always try. Note that Trac for bug reporting, and subversion are not down. Sorry for the inconvenience. And damn Debian major OS version in-place upgrades. :-) 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 Software Developer From vivaldi_albarado at yahoo.com Wed Feb 1 20:53:30 2012 From: vivaldi_albarado at yahoo.com (Vivaldi Al Barado) Date: Thu, 2 Feb 2012 12:53:30 +0800 (SGT) Subject: [mapserver-users] Is it possible to combine between openlayers script and mapfile? In-Reply-To: <4F28180B.4010400@geoanalytic.com> References: <3DE7C1ED-FDF3-406B-A2A5-5D485F184746@gmail.com> <84446DEF76453C439E9E97E438E13A63065670@suutari.haapa.mmm.fi> <1327999075.1709.YahooMailNeo@web190105.mail.sg3.yahoo.com> <4F28180B.4010400@geoanalytic.com> Message-ID: <1328158410.69066.YahooMailNeo@web190101.mail.sg3.yahoo.com> Very thanks for your fast answer, Mr. Brent Fraser. I want to create a points using openlayers to describes realtime GPS tracking. But i want to insert the openlayers script into web tempate of the mapfile, can i do that? If it were possible, what the effect when I zoom the map? Thanks for attention & your kindness Best regards Gozali ________________________________ From: Brent Fraser To: Vivaldi Al Barado Cc: "mapserver-users at lists.osgeo.org" Sent: Tuesday, January 31, 2012 11:34 PM Subject: Re: [mapserver-users] Want to create a dynamic GPS Tracking using MapServer Gozali, ? Due to the dynamic nature of the data, a spatial relational database such as PostGIS would be a good choice for the data storage.? The tables would depend on which features are important to you (positions, tracks, etc). ? Populating the tables from GPS data would likely require some custom coding. There were a couple of sessions at FOSS4G 2007: http://www.foss4g2007.org/presentations/view.php?abstract_id=83 http://www.foss4g2007.org/presentations/view.php?abstract_id=253 Best Regards, Brent Fraser On 1/31/2012 1:37 AM, Vivaldi Al Barado wrote: > >Hi friends. I plan to create a map that can display the GPS tracking dynamically. >For the best choice, what is needed to make GPS tracking dynamically using MapServer? Please guide. >Thank you so much for your explanations and your kindness. > >Best Regards >Gozali > > > >_______________________________________________ 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 olivier.courtin at gmail.com Wed Feb 1 23:57:52 2012 From: olivier.courtin at gmail.com (Olivier Courtin) Date: Thu, 2 Feb 2012 08:57:52 +0100 Subject: [mapserver-users] Can't get Tinyows WFS Layer to show in OpenLayer In-Reply-To: References: Message-ID: On Wed, Feb 1, 2012 at 7:33 PM, Wang, Ya wrote: Hi, I am a newbie of mapserver and other online mapping technologies. > Recently, I have been struggling to load a TinyOWS WFS Layer to an > OpenLayers map. I set up proxy.cgi, which works fine. I checked TinyOWS > using command ?tinyows ?check?, which also seems to be working. The page > http://.../cgi-bin/tinyows.exe?service=wfs&request=getCapabilities&version=1.1.0&typename=tows:lrtstopsdoesn?t return any error either. I can also load a mapserver WMS layer > into the OpenLayers Map with no problem. However, no feature from the WFS > layer would show in the OpenLayers map. Since both the WMS and WFS layers > are of the same projection, which is EPSG:2227, I assume that the > misspecification of projection is not likely to be the caprice here. The > following is the JavaScript I used and the response returned. Could someone > help me find out what I did wrong? Many thanks in advance! > > ** > > ** > Several questions related to your issue: - What TinyOWS version do you use ? - What happen if you use QGIS as WMS/WFS client rather than OpenLayers ? - Could you activate TinyOWS log and check if there's any error message in it ? - Could you use Firebug with OpenLayers to check the TinyOWS output stream ? HTH, -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From qc_mad at hotmail.com Thu Feb 2 06:33:05 2012 From: qc_mad at hotmail.com (maddqc) Date: Thu, 2 Feb 2012 06:33:05 -0800 (PST) Subject: [mapserver-users] Multi-line labels Message-ID: <1328193185844-4359187.post@n6.nabble.com> Hi all, I've have a problem with a mapfile that I need to show a particular label with multi-line from my centroide_pts layer. But it doesn't work. When I use the map mode in a browser, there is only the layer unite_eval, but my centroide layer is not showed. What's happening here? What can I do? Thx MAP IMAGETYPE PNG EXTENT 196198.810957 5012701.634582 198121.561850 5013781.503783 SIZE 1000 1000 UNITS meters SHAPEPATH "/opt/mapping/maps/" IMAGECOLOR 255 255 255 LAYER NAME 'centroide_pts' DATA './44071/centroide_pts.shp' STATUS OFF TYPE POINT LABELITEM 'IDENT' CLASS NAME 'centroide_pts' STYLE SIZE 7.0 COLOR 0 0 0 END LABEL SIZE 12 COLOR 0 0 0 ANGLE 0 POSITION lc FORCE true ANTIALIAS true PARTIALS true END END END LAYER NAME 'unite_eval' DATA './44071/unite_eval.shp' STATUS OFF TYPE POLYGON CLASS NAME 'unite_eval' STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 152 64 149 END END END END -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Multi-line-labels-tp4359187p4359187.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bfraser at geoanalytic.com Thu Feb 2 06:54:08 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 02 Feb 2012 07:54:08 -0700 Subject: [mapserver-users] Is it possible to combine between openlayers script and mapfile? In-Reply-To: <1328158410.69066.YahooMailNeo@web190101.mail.sg3.yahoo.com> References: <3DE7C1ED-FDF3-406B-A2A5-5D485F184746@gmail.com> <84446DEF76453C439E9E97E438E13A63065670@suutari.haapa.mmm.fi> <1327999075.1709.YahooMailNeo@web190105.mail.sg3.yahoo.com> <4F28180B.4010400@geoanalytic.com> <1328158410.69066.YahooMailNeo@web190101.mail.sg3.yahoo.com> Message-ID: <4F2AA390.5040204@geoanalytic.com> On 2/1/2012 9:53 PM, Vivaldi Al Barado wrote: > Very thanks for your fast answer, Mr. Brent Fraser. > > I want to create a points using openlayers to describes realtime GPS > tracking. > But i want to insert the openlayers script into web tempate of the > mapfile, can i do that? Yes, but in most (all?) implementations OpenLayers is loaded only once into your browser. It then makes requests to mapserver for data (i.e an image on every pan and zoom). In the "old" way (without OpenLayers or some similar JavaScript/Java package) of configuring mapserver, mapserver would deliver HTML, images, etc to render the entire interface on every pan and zoom. I don't think many people use it this way anymore since browsers are a lot more capable, but you can configure it this way if you really want to. Have a look at the OpenLayers examples. Use your browser's debugging tool to see the conversation between OpenLayers and mapserver. Note to Mapserver documenters: we need to update the Mapserver Introduction (especially the "Anatomy...") to show the more modern AJAX style implementation. > > If it were possible, what the effect when I zoom the map? > > Thanks for attention & your kindness > > Best regards > Gozali > > ------------------------------------------------------------------------ > *From:* Brent Fraser > *To:* Vivaldi Al Barado > *Cc:* "mapserver-users at lists.osgeo.org" > *Sent:* Tuesday, January 31, 2012 11:34 PM > *Subject:* Re: [mapserver-users] Want to create a dynamic GPS Tracking > using MapServer > > Gozali, > > Due to the dynamic nature of the data, a spatial relational database > such as PostGIS would be a good choice for the data storage. The > tables would depend on which features are important to you (positions, > tracks, etc). > > Populating the tables from GPS data would likely require some custom > coding. > > There were a couple of sessions at FOSS4G 2007: > > http://www.foss4g2007.org/presentations/view.php?abstract_id=83 > http://www.foss4g2007.org/presentations/view.php?abstract_id=253 > Best Regards, > Brent Fraser > > On 1/31/2012 1:37 AM, Vivaldi Al Barado wrote: >> >> Hi friends. I plan to create a map that can display the GPS tracking >> dynamically. >> For the best choice, what is needed to make GPS tracking dynamically >> using MapServer? Please guide. >> Thank you so much for your explanations and your kindness. >> >> Best Regards >> Gozali >> >> >> _______________________________________________ >> 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 Jukka.Rahkonen at mmmtike.fi Thu Feb 2 07:16:08 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 2 Feb 2012 15:16:08 +0000 Subject: [mapserver-users] Multi-line labels In-Reply-To: <1328193185844-4359187.post@n6.nabble.com> References: <1328193185844-4359187.post@n6.nabble.com> Message-ID: <84446DEF76453C439E9E97E438E13A63066F8E@suutari.haapa.mmm.fi> Hi, Layers are rendered from bottom to top and I believe that now your centroide_pts are just there under the polygons. By the way, STATUS OFF should mean that the layer is not at all in use. It is a bit odd that your layers still render, or at least the polygons. -Jukka Rahkonen- ________________________________________ maddqc wrote: > Hi all, > I've have a problem with a mapfile that I need to show a particular label with multi-line from my centroide_pts layer. But it doesn't work. > When I use the map mode in a browser, there is only the layer unite_eval, but my centroide layer is not showed. > What's happening here? What can I do? Thx MAP IMAGETYPE PNG EXTENT 196198.810957 5012701.634582 198121.561850 5013781.503783 SIZE 1000 1000 UNITS meters SHAPEPATH "/opt/mapping/maps/" IMAGECOLOR 255 255 255 LAYER NAME 'centroide_pts' DATA './44071/centroide_pts.shp' STATUS OFF TYPE POINT LABELITEM 'IDENT' CLASS NAME 'centroide_pts' STYLE SIZE 7.0 COLOR 0 0 0 END LABEL SIZE 12 COLOR 0 0 0 ANGLE 0 POSITION lc FORCE true ANTIALIAS true PARTIALS true END END END LAYER NAME 'unite_eval' DATA './44071/unite_eval.shp' STATUS OFF TYPE POLYGON CLASS NAME 'unite_eval' STYLE WIDTH 0.91 OUTLINECOLOR 0 0 0 COLOR 152 64 149 END END END END -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Multi-line-labels-tp4359187p4359187.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 pjfingers at gmail.com Thu Feb 2 07:41:35 2012 From: pjfingers at gmail.com (Paul Edwards) Date: Thu, 2 Feb 2012 10:41:35 -0500 Subject: [mapserver-users] Style a polygon with Horizontal, Vertical,or Diagonal Lines using SLD? In-Reply-To: <122F0CA7601F44EDB77E53F68FEB87FF@pcawh2> References: <122F0CA7601F44EDB77E53F68FEB87FF@pcawh2> Message-ID: That's excellent news. I'll be implementing this today. Thanks for your assistance!! On Wed, Feb 1, 2012 at 4:18 PM, Arnd Wippermann wrote: > ** > you can define a symbol for the hatch in your mapfile > > SYMBOL > NAME "schraffur" > TYPE HATCH > END > and use this in your sld > > An example how it works: > > http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServer_SLD_World.asp?mapservLayers=0&SLDsrcIdx=42 > > Arnd > ------------------------------ > *Von:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *Im Auftrag von *Paul Edwards > *Gesendet:* Dienstag, 31. Januar 2012 20:37 > *An:* mapserver-users at lists.osgeo.org > *Betreff:* [mapserver-users] Style a polygon with Horizontal, Vertical,or > Diagonal Lines using SLD? > > Hi All! > > I'm wondering if anyone has experience styling maps with horizontal, > vertical, or diagonal lines when using MapServer WMS and a custom provided > SLD? The documentation states: > > http://mapserver.org/ogc/sld.html#named-styles-support > > "A Fill can be a solid fill or be a Graphic Fill, which is either a > well-known Mark symbol (e.g., square, circle, triangle, star, cross, x) or > an ExternalGraphic element (e.g., gif, png) available through a URL" > > > This pretty clearly states that the way to accomplish my goal is by tiling > an externally referenced image that has the line oriented the way I want, > but then we lose the coloring options. GeoServer has some cool SLD > extensions that are outside the spec (see link below) and I was wondering > if MapServer had anything similar? > > > http://docs.geoserver.org/stable/en/user/styling/sld-extensions/pointsymbols.html#the-shape-symbols > > Thanks! > Paul > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Phil.Anzel at ftc.usda.gov Thu Feb 2 11:43:21 2012 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Thu, 2 Feb 2012 19:43:21 +0000 Subject: [mapserver-users] How to label only largest displayed areas? Message-ID: Hi, All, How can I label only the largest displayed areas within an extent? For example, if I'm labeling states of the United States and my extent covers a small region around the Maine, New Hampshire and Massachusetts junction, I only want a single label for each state, chosen by the largest displayed area (within the current map extent) in each state. I'm using spatial data stored in Microsoft's SQL Server 2008. I've created an enhancement request ticket (#4173: Define a current layer extent's WKT string for use in Data statement) as one possible approach, but this approach requires a change to MapServer. Is there a better way? Thanks. - Phil Anzel Vistronix Inc for USDA/NRCS/ITC This electronic message contains information generated by the USDA solely for the intended recipients.? Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties.? If you believe you have received this message in error, please notify the sender and delete the email immediately. From woodbri at swoodbridge.com Thu Feb 2 12:19:19 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 02 Feb 2012 15:19:19 -0500 Subject: [mapserver-users] How to label only largest displayed areas? In-Reply-To: References: Message-ID: <4F2AEFC7.5020704@swoodbridge.com> On 2/2/2012 2:43 PM, Anzel, Phil - NRCS, Fort Collins, CO wrote: > Hi, All, > > How can I label only the largest displayed areas within an extent? > For example, if I'm labeling states of the United States and my > extent covers a small region around the Maine, New Hampshire and > Massachusetts junction, I only want a single label for each state, > chosen by the largest displayed area (within the current map extent) > in each state. Hi Phil, I'm not sure I understand what you need here. Mapserver currently displays one label per polygon based on the visible extents of that polygon. If your state is represented by a single record with a multipolygon like the state and its coastal islands, then I suspect that it will label the first polygon in the multipolygon object. In the cases where you have multiple records in your dataset one for the state and additional polygons for the islands, then all of these are added to the labelcache and the last one in the labelcache is labeled first if the label does not collide. So in this case you could sort your data by state and area increasing in size so you largest is loaded last and labeled first. You can also control the number of labels using MINDISTANCE so the same label in a layer is not presented within units of another with the same name. Do you need more than this? Are you trying to place the label in the biggest open space? (this we can not do because there is no easy algorithm for this). -Steve W > I'm using spatial data stored in Microsoft's SQL Server 2008. > > I've created an enhancement request ticket (#4173: Define a current > layer extent's WKT string for use in Data statement) as one possible > approach, but this approach requires a change to MapServer. > > Is there a better way? > > Thanks. > > - Phil Anzel Vistronix Inc for USDA/NRCS/ITC > > This electronic message contains information generated by the USDA > solely for the intended recipients. Any unauthorized interception of > this message or the use or disclosure of the information it contains > may violate the law and subject the violator to civil or criminal > penalties. If you believe you have received this message in error, > please notify the sender and delete the email immediately. > > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Thu Feb 2 12:34:14 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 2 Feb 2012 20:34:14 +0000 Subject: [mapserver-users] Re: How to label only largest displayed areas? In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A630670FE@suutari.haapa.mmm.fi> Hi, I do not feel that your use case is very common. Perhaps instead of modifying Mapserver you could think if you could do it mainly on the database side. For example, draw all the polygons without labels and use some clever SQL for creating another layer from the features which you would like to see labeled above it. -Jukka Rahkonen- ________________________________________ Anzel, Phil wrote: > Hi, All, > How can I label only the largest displayed areas within an extent? For example, if I'm labeling states of the United States and my extent covers a small region around the Maine, New Hampshire and Massachusetts junction, I only want a single label for each state, chosen by the largest displayed area (within the current map extent) in each state. > I'm using spatial data stored in Microsoft's SQL Server 2008. > I've created an enhancement request ticket (#4173: Define a current layer extent's WKT string for use in Data statement) as one possible approach, but this approach requires a change to MapServer. > Is there a better way? Thanks. - Phil Anzel Vistronix Inc for USDA/NRCS/ITC This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. _______________________________________________ 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 Feb 2 13:55:26 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 2 Feb 2012 21:55:26 +0000 Subject: [mapserver-users] RE: How to label only largest displayed areas? In-Reply-To: References: Message-ID: I'd do this by sorting features based on area (ascending order). This would draw the smallest polygons first, but would put the labels for the shapes with the largest area into the label cache last (where they would be placed and drawn first). I've done this with labeling lakes and it works fine. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Anzel, Phil - NRCS, Fort Collins, CO Sent: Thursday, February 02, 2012 1:43 PM To: mapserver-users at lists.osgeo.org Cc: Anzel, Phil - NRCS, Fort Collins, CO Subject: [mapserver-users] How to label only largest displayed areas? Hi, All, How can I label only the largest displayed areas within an extent? For example, if I'm labeling states of the United States and my extent covers a small region around the Maine, New Hampshire and Massachusetts junction, I only want a single label for each state, chosen by the largest displayed area (within the current map extent) in each state. I'm using spatial data stored in Microsoft's SQL Server 2008. I've created an enhancement request ticket (#4173: Define a current layer extent's WKT string for use in Data statement) as one possible approach, but this approach requires a change to MapServer. Is there a better way? Thanks. - Phil Anzel Vistronix Inc for USDA/NRCS/ITC This electronic message contains information generated by the USDA solely for the intended recipients.? Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties.? If you believe you have received this message in error, please notify the sender and delete the email immediately. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From pintj at hotmail.com Thu Feb 2 14:00:53 2012 From: pintj at hotmail.com (Trent Pingenot) Date: Thu, 2 Feb 2012 15:00:53 -0700 Subject: [mapserver-users] PostGIS Connection String - Thread Issue? Message-ID: Hi list, We recently upgraded from MapServer 5.x to 6.0.1 on Linux. We have 21 sites running all running smoothly with identical configurations off this server. On one site the MapServer connection to Postgres/PostGIS fails on all layers. The MS debug message is as follows [Thu Feb 2 14:41:04 2012].823297 msPostGISLayerOpen(): Query error. Database connection failed (FATAL: no pg_hba.conf entry for host "[local]", user "interlocken", database "nterlocNken", SSL off ) with connect string 'dbname='nterlocNken' user='interlocken' password=*******************' And the entry in the map file CONNECTIONTYPE postgis PROCESSING "CLOSE_CONNECTION=DEFER" CONNECTION "dbname='interlocken' user='interlocken' password='**************'" DATA 'the_geom FROM "ext_lighting_existing_point" USING UNIQUE gid USING srid=4326' I can log into psql on the server as the interlocken user and hit the DB just fine so it's not the pg_hba.conf file settings which are set that the db username and db name must match. My question is why does the dbname get corrupted to nterlocNken? Is this a bug or how mapserver should present the connection items in a debug statement? I can use our old copy 5.4 copy of mapserver and it runs the map file fine. One difference in this build is that we don't have the --with-threads support. We are looking at getting the build rebuilt with this thread locking option included. Could threading be the problem? I'm not sure how/if threading might be related but thought I would mention it. I've stripped out all layers from the mapfile except a single test layer. I've got 60+ layers running in other map files and databases with identical setups on the same server without problems, why this one? We even tried wiping out the DB and associated user and reloading and still the same problem. Thanks in advance for any help or tips you can provide. Thanks, Trent -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ya.Wang at vta.org Thu Feb 2 14:29:15 2012 From: Ya.Wang at vta.org (Wang, Ya) Date: Thu, 2 Feb 2012 22:29:15 +0000 Subject: [mapserver-users] Re: Can't get Tinyows WFS Layer to show in OpenLayer In-Reply-To: <20120202075812.AC757E00293@lists.osgeo.org> References: <20120202075812.AC757E00293@lists.osgeo.org> Message-ID: Thank you, Olivier. The TinyOWS version is 1.0.0rc1. I can load both WFS and WMS layers in desktop clients such as QGIS and UDIG. I did activate the error log for TinyOWS. It is just that nothing got logged. My TinyOWS configuration is as follows: #here /towsschema/ and /mstmp/ are alias I defined in apache configuration. I changed it into directory in windows as "C:\..\..", it makes no difference anyway. I thought the existence of multiple versions of python might be the problem. The python 2.5 is used by QGIS and GRASS, installed as part of the bundle in the OSGEO4W package. Another is a standalone installation of Python2.7, which is specified as the interpreter for Proxy.CGi. So I started to uninstall and reinstall python and QGIS multiple times. It didn't solve the problem. WFS layer is still not showing in OpenLayers while WMS layer is. Somehow it did change the error message. Now I got "Internal Server Error". The APACHE server logged the following error: [Thu Feb 02 13:48:21 2012] [error] [client 10.10.17.155] Premature end of script headers: tinyows.exe, referer: http://myserver:8080/openlayers/examples/tinyows.html [Thu Feb 02 13:48:21 2012] [error] [client 10.10.17.155] Assertion failed: buf->buf, file src\\struct\\buffer.c, line 86\r, referer: http:// myserver:8080/openlayers/examples/tinyows.html [Thu Feb 02 13:48:21 2012] [error] [client 10.10.17.155] \r, referer: http:// myserver:8080/openlayers/examples/tinyows.html [Thu Feb 02 13:48:21 2012] [error] [client 10.10.17.155] This application has requested the Runtime to terminate it in an unusual way., referer: http:// myserver:8080/openlayers/examples/tinyows.html [Thu Feb 02 13:48:21 2012] [error] [client 10.10.17.155] Please contact the application's support team for more information.\r, referer: http:// myserver:8080/openlayers/examples/tinyows.html I don't know how to use Firebug with OpenLayers to check the TinyOWS output stream yet. Once I figured it out, I will post that as well. Many Thanks! Ya ______________________________________________ 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: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120202/9484cf76/attachment-0001.html ------------------------------ Message: 5 Date: Thu, 2 Feb 2012 08:57:52 +0100 From: Olivier Courtin Subject: Re: [mapserver-users] Can't get Tinyows WFS Layer to show in OpenLayer To: "mapserver-users at lists.osgeo.org" Message-ID: Content-Type: text/plain; charset="windows-1252" On Wed, Feb 1, 2012 at 7:33 PM, Wang, Ya wrote: Hi, I am a newbie of mapserver and other online mapping technologies. > Recently, I have been struggling to load a TinyOWS WFS Layer to an > OpenLayers map. I set up proxy.cgi, which works fine. I checked TinyOWS > using command ?tinyows ?check?, which also seems to be working. The page > http://.../cgi-bin/tinyows.exe?service=wfs&request=getCapabilities&version=1.1.0&typename=tows:lrtstopsdoesn?t return any error either. I can also load a mapserver WMS layer > into the OpenLayers Map with no problem. However, no feature from the WFS > layer would show in the OpenLayers map. Since both the WMS and WFS layers > are of the same projection, which is EPSG:2227, I assume that the > misspecification of projection is not likely to be the caprice here. The > following is the JavaScript I used and the response returned. Could someone > help me find out what I did wrong? Many thanks in advance! > > ** > > ** > Several questions related to your issue: - What TinyOWS version do you use ? - What happen if you use QGIS as WMS/WFS client rather than OpenLayers ? - Could you activate TinyOWS log and check if there's any error message in it ? - Could you use Firebug with OpenLayers to check the TinyOWS output stream ? HTH, -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120202/dc523795/attachment.html ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 49, Issue 4 ********************************************** From Jukka.Rahkonen at mmmtike.fi Thu Feb 2 15:01:23 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 2 Feb 2012 23:01:23 +0000 Subject: [mapserver-users] Re: How to label only largest displayed areas? In-Reply-To: References: , Message-ID: <84446DEF76453C439E9E97E438E13A63067135@suutari.haapa.mmm.fi> Hi, I understood that meaning was to put exactly one label per state. Each state, even tiny ones, should be labeled. But one state should get only one label even if the map window is splitting the state polygon into two or more intersections. Those intersections may be bigger than the tiny state. Not extremely simple. -Jukka- ________________________________________ L Lime, Steve D (DNR) wrote: > I'd do this by sorting features based on area (ascending order). This would draw the smallest polygons first, but would put the labels for the shapes with the largest area into the label cache last (where they would be placed and drawn first). I've done this with labeling lakes and it works fine. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Anzel, Phil - NRCS, Fort Collins, CO Sent: Thursday, February 02, 2012 1:43 PM To: mapserver-users at lists.osgeo.org Cc: Anzel, Phil - NRCS, Fort Collins, CO Subject: [mapserver-users] How to label only largest displayed areas? Hi, All, How can I label only the largest displayed areas within an extent? For example, if I'm labeling states of the United States and my extent covers a small region around the Maine, New Hampshire and Massachusetts junction, I only want a single label for each state, chosen by the largest displayed area (within the current map extent) in each state. I'm using spatial data stored in Microsoft's SQL Server 2008. I've created an enhancement request ticket (#4173: Define a current layer extent's WKT string for use in Data statement) as one possible approach, but this approach requires a change to MapServer. Is there a better way? Thanks. - Phil Anzel Vistronix Inc for USDA/NRCS/ITC This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. _______________________________________________ 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 Ya.Wang at vta.org Thu Feb 2 16:16:21 2012 From: Ya.Wang at vta.org (Wang, Ya) Date: Fri, 3 Feb 2012 00:16:21 +0000 Subject: [mapserver-users] Re: Can't get Tinyows WFS Layer to show in OpenLayer In-Reply-To: <20120202075812.AC757E00293@lists.osgeo.org> References: <20120202075812.AC757E00293@lists.osgeo.org> Message-ID: Hello All, The problem got solved finally. It seems all I need to do is to add two more lines into my TinyOWS configuration. Maybe fixing the PythonPath helped as well. But this change is what really makes a difference. Before (not working): After (working now): I was relieved of the frustration I have been suffering during the past two days. Thanks everyone. Ya ___________________________________________________________________________ Message: 5 Date: Thu, 2 Feb 2012 08:57:52 +0100 From: Olivier Courtin Subject: Re: [mapserver-users] Can't get Tinyows WFS Layer to show in OpenLayer To: "mapserver-users at lists.osgeo.org" Message-ID: Content-Type: text/plain; charset="windows-1252" On Wed, Feb 1, 2012 at 7:33 PM, Wang, Ya wrote: Hi, I am a newbie of mapserver and other online mapping technologies. > Recently, I have been struggling to load a TinyOWS WFS Layer to an > OpenLayers map. I set up proxy.cgi, which works fine. I checked TinyOWS > using command ?tinyows ?check?, which also seems to be working. The page > http://.../cgi-bin/tinyows.exe?service=wfs&request=getCapabilities&version=1.1.0&typename=tows:lrtstopsdoesn?t return any error either. I can also load a mapserver WMS layer > into the OpenLayers Map with no problem. However, no feature from the WFS > layer would show in the OpenLayers map. Since both the WMS and WFS layers > are of the same projection, which is EPSG:2227, I assume that the > misspecification of projection is not likely to be the caprice here. The > following is the JavaScript I used and the response returned. Could someone > help me find out what I did wrong? Many thanks in advance! > > ** > > ** > Several questions related to your issue: - What TinyOWS version do you use ? - What happen if you use QGIS as WMS/WFS client rather than OpenLayers ? - Could you activate TinyOWS log and check if there's any error message in it ? - Could you use Firebug with OpenLayers to check the TinyOWS output stream ? HTH, -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120202/dc523795/attachment.html ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 49, Issue 4 ********************************************** From Jukka.Rahkonen at mmmtike.fi Thu Feb 2 21:16:47 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 3 Feb 2012 05:16:47 +0000 Subject: [mapserver-users] Re: Can't get Tinyows WFS Layer to show in OpenLayer In-Reply-To: References: <20120202075812.AC757E00293@lists.osgeo.org>, Message-ID: <84446DEF76453C439E9E97E438E13A63067193@suutari.haapa.mmm.fi> Hi, Did you mention what version you were using? Perhaps it is version 0.9.0 which was indeed using keywords "prefix" and "server". Change into ns_prefix adn ns_uri was done last spring http://tinyows.org/trac/changeset/343 If that is the case I would recommend updating your TinyOWS to the current release canditate. -Jukka Rahkonen- ________________________________________ Wang, Ya wrote: > Hello All, > The problem got solved finally. It seems all I need to do is to add two more lines into my TinyOWS configuration. Maybe fixing the PythonPath helped as well. But this change is what really makes a difference. Before (not working): After (working now): I was relieved of the frustration I have been suffering during the past two days. Thanks everyone. Ya ___________________________________________________________________________ Message: 5 Date: Thu, 2 Feb 2012 08:57:52 +0100 From: Olivier Courtin Subject: Re: [mapserver-users] Can't get Tinyows WFS Layer to show in OpenLayer To: "mapserver-users at lists.osgeo.org" Message-ID: Content-Type: text/plain; charset="windows-1252" On Wed, Feb 1, 2012 at 7:33 PM, Wang, Ya wrote: Hi, I am a newbie of mapserver and other online mapping technologies. > Recently, I have been struggling to load a TinyOWS WFS Layer to an > OpenLayers map. I set up proxy.cgi, which works fine. I checked TinyOWS > using command ?tinyows ?check?, which also seems to be working. The page > http://.../cgi-bin/tinyows.exe?service=wfs&request=getCapabilities&version=1.1.0&typename=tows:lrtstopsdoesn?t return any error either. I can also load a mapserver WMS layer > into the OpenLayers Map with no problem. However, no feature from the WFS > layer would show in the OpenLayers map. Since both the WMS and WFS layers > are of the same projection, which is EPSG:2227, I assume that the > misspecification of projection is not likely to be the caprice here. The > following is the JavaScript I used and the response returned. Could someone > help me find out what I did wrong? Many thanks in advance! > > ** > > ** > Several questions related to your issue: - What TinyOWS version do you use ? - What happen if you use QGIS as WMS/WFS client rather than OpenLayers ? - Could you activate TinyOWS log and check if there's any error message in it ? - Could you use Firebug with OpenLayers to check the TinyOWS output stream ? HTH, -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120202/dc523795/attachment.html ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 49, Issue 4 ********************************************** _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dejan.gambin at coin.hr Fri Feb 3 00:16:43 2012 From: dejan.gambin at coin.hr (Dejan Gambin) Date: Fri, 3 Feb 2012 09:16:43 +0100 Subject: [mapserver-users] Using WFS gml_[item name]_alias Message-ID: Hi, I am trying to use gml_[item name]_alias for renaming my columns in wfs GetFeature request with gml output. Everything works fine except I can't use some characters like whitespace for example, because it is not a valid xml element. My question is - is there any way to name my attribute like "my attribute" through WFS GetFeature request? Btw, I am presenting the result in a html table, so would be useful, for example, to be able to handle this and other stuff like type for example (integer, string, ..) through the mapfile. And maybe to use this on the client to align data in a table (numbers right, string left, etc.) Thanks very much on any useful info regards, dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Feb 3 00:33:15 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 3 Feb 2012 09:33:15 +0100 Subject: [mapserver-users] PostGIS Connection String - Thread Issue? In-Reply-To: References: Message-ID: There were some changes to string quoting/escaping in version 6 (I think). Are the errors you are seeing intermittent, or is it reproducible consistently on all requests? What happens if you use CONNECTION "dbname=interlocken user=interlocken ..." instead of CONNECTION "dbname='interlocken' user='interlocken' ..." -- thomas On Thu, Feb 2, 2012 at 23:00, Trent Pingenot wrote: > Hi list, > > We recently upgraded from MapServer 5.x to 6.0.1 on Linux.? We have 21 sites > running all running smoothly with identical configurations off this server. > On one site the MapServer connection to Postgres/PostGIS fails on all > layers.? The MS debug message is as follows > > [Thu Feb 2 14:41:04 2012].823297 msPostGISLayerOpen(): Query error. > Database connection failed (FATAL: no pg_hba.conf entry for host "[local]", > user "interlocken", database "nterlocNken", SSL off > ) with connect string 'dbname='nterlocNken' user='interlocken' > password=*******************' > > And the entry in the map file > > CONNECTIONTYPE postgis > PROCESSING "CLOSE_CONNECTION=DEFER" > CONNECTION "dbname='interlocken' user='interlocken' > password='**************'" > DATA 'the_geom FROM "ext_lighting_existing_point" USING UNIQUE gid USING > srid=4326' > > I can log into psql on the server as the interlocken user and hit the DB > just fine so it's not the pg_hba.conf file settings which are set that the > db username and db name must match.? My question is why > does the dbname get corrupted to nterlocNken? Is this a bug or how mapserver > should present the connection items in a debug statement?? I can use our old > copy 5.4 copy of mapserver and it runs the map file fine.? One difference in > this build is that we don't have the --with-threads support. We are looking > at getting the build rebuilt with this thread locking option included. > Could threading be the problem? I'm not sure how/if threading might be > related but thought I would mention it. > > I've stripped out all layers from the mapfile except a single test layer. > I've got 60+ layers running in other map files and databases with identical > setups? on the same server without problems, why this one?? We even tried > wiping out the DB and associated user and reloading and still the same > problem. > > Thanks in advance for any help or tips you can provide. > > Thanks, > > Trent > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From dejan.gambin at coin.hr Fri Feb 3 00:45:49 2012 From: dejan.gambin at coin.hr (Dejan Gambin) Date: Fri, 3 Feb 2012 09:45:49 +0100 Subject: [mapserver-users] Legend size problem in GetLegendGraphic request Message-ID: <85D8CB63-16B6-43C4-B97D-AC145D8589F0@coin.hr> Hi, I have point shapefile and trying to show the points as big circles on the map. So I am using something like: ... SIZEUNITS kilometers CLASS Name "myname" SIZE 10 ... END ... Everything is show ok on the map but the symbol in the legend is very big, and exceeds the symbol key box very much, although KEYSIZE is set to 25 18. Btw, I am using WMS GetLegendGraphic request for getting the legend Thanks very much regards, dejan From Jukka.Rahkonen at mmmtike.fi Fri Feb 3 01:23:35 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 3 Feb 2012 09:23:35 +0000 Subject: [mapserver-users] WFS GetCapabilities does not work with non-ascii characters in mapfile Message-ID: <84446DEF76453C439E9E97E438E13A63067246@suutari.haapa.mmm.fi> Hi, This should be simple to test and verify. Write into WEB METADATA parameters "wms_title" "test_?" "wfs_title" "test_?" WMS 1.1.1 GetGapabilities does not have any trouble with "?" and request sends back ... OGC:WMS test_? .... However, WFS GetCapabilities response gets truncated. All that Mapserver sends is this test_ The same error occurs if non-ascii characters are used in "wfs_abstract". I was testing on Windows and Mapserver 6.0.1. -Jukka Rahkonen -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Fri Feb 3 01:43:18 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Fri, 3 Feb 2012 10:43:18 +0100 Subject: AW: [mapserver-users] WFS GetCapabilities does not work with non-ascii characters in mapfile References: <84446DEF76453C439E9E97E438E13A63067246@suutari.haapa.mmm.fi> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF2CF@KS-EVS1.smi.sachsen.de> This is due to the usage of libXML2. Its internal data format is UTF-8 and MapServer has no way to deal with different map file encodings. Therefore libXML2 aborts due to invalid UTF-8 input data on serialization. Transcode your map file to UTF-8 and it should work. Note that libXML2 is _not_ used for WMS and older WFS services. These use plain fprintf() to write data out as is. So you might encounter crazy things when trying to use different encodings on data, map file and web server output. > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > von Rahkonen Jukka > Gesendet: Freitag, 3. Februar 2012 10:24 > An: 'mapserver-users at lists.osgeo.org' > Betreff: [mapserver-users] WFS GetCapabilities does not work > with non-ascii characters in mapfile > > Hi, > > This should be simple to test and verify. > Write into WEB METADATA parameters > > "wms_title" "test_?" > "wfs_title" "test_?" > > WMS 1.1.1 GetGapabilities does not have any trouble with "?" > and request sends back > ... > > OGC:WMS > test_? > .... > > However, WFS GetCapabilities response gets truncated. All > that Mapserver sends is this > > > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:ows="http://www.opengis.net/ows" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns="http://www.opengis.net/wfs" version="1.1.0" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"> > > test_ > > > The same error occurs if non-ascii characters are used in > "wfs_abstract". > I was testing on Windows and Mapserver 6.0.1. > > -Jukka Rahkonen > From Jukka.Rahkonen at mmmtike.fi Fri Feb 3 02:24:22 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 3 Feb 2012 10:24:22 +0000 Subject: [mapserver-users] WFS GetCapabilities does not work with non-ascii characters in mapfile In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF2CF@KS-EVS1.smi.sachsen.de> References: <84446DEF76453C439E9E97E438E13A63067246@suutari.haapa.mmm.fi> <56B587E7C40D2F43B54FDC1BA897AC6D037AF2CF@KS-EVS1.smi.sachsen.de> Message-ID: <84446DEF76453C439E9E97E438E13A63067291@suutari.haapa.mmm.fi> Hi, Thank you for the information. I had a try by converting my Windows mapfile with iconv by using parameters -f ISO-8859-1 -t UTF-8. Now WFS GetCapabilities did not get truncated and it shows right: test_? However, WMS GetCapabilities is a bit odd if "wms_title" is also given UTF-8 encoded. test_?? I can make both look right by using UTF-8 encoding for "wfs_title" and ISO-8859-1 encoding for "wms_title" inside the same mapfile. In a way funny but not very convenient situation. -Jukka Rahkonen- Eichner, Andreas - SID-NLKM wrote: > > This is due to the usage of libXML2. Its internal data format > is UTF-8 and MapServer has no way to deal with different map > file encodings. Therefore libXML2 aborts due to invalid UTF-8 > input data on serialization. Transcode your map file to UTF-8 > and it should work. > Note that libXML2 is _not_ used for WMS and older WFS > services. These use plain fprintf() to write data out as is. > So you might encounter crazy things when trying to use > different encodings on data, map file and web server output. > > > > -----Urspr?ngliche Nachricht----- > > Von: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag > > von Rahkonen Jukka > > Gesendet: Freitag, 3. Februar 2012 10:24 > > An: 'mapserver-users at lists.osgeo.org' > > Betreff: [mapserver-users] WFS GetCapabilities does not work > > with non-ascii characters in mapfile > > > > Hi, > > > > This should be simple to test and verify. > > Write into WEB METADATA parameters > > > > "wms_title" "test_?" > > "wfs_title" "test_?" > > > > WMS 1.1.1 GetGapabilities does not have any trouble with "?" > > and request sends back > > ... > > > > OGC:WMS > > test_? > > .... > > > > However, WFS GetCapabilities response gets truncated. All > > that Mapserver sends is this > > > > > > > xmlns:wfs="http://www.opengis.net/wfs" > > xmlns:ows="http://www.opengis.net/ows" > > xmlns:xlink="http://www.w3.org/1999/xlink" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns:ogc="http://www.opengis.net/ogc" > > xmlns="http://www.opengis.net/wfs" version="1.1.0" > > xsi:schemaLocation="http://www.opengis.net/wfs > > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"> > > > > test_ > > > > > > The same error occurs if non-ascii characters are used in > > "wfs_abstract". > > I was testing on Windows and Mapserver 6.0.1. > > > > -Jukka Rahkonen > > > From Paul.Maddock at ijus.net Fri Feb 3 05:49:47 2012 From: Paul.Maddock at ijus.net (Paul Maddock) Date: Fri, 3 Feb 2012 08:49:47 -0500 Subject: [mapserver-users] Mapfile Generators Message-ID: <4FDD345A70B42F479A0B3329E101EC659E73A2A6A0@mx-02.ijuscol.com> Hi all, Are there any extensions of ArcView 10 which I can export .shp files into mapfiles or possibly any other open source mapfile generators? It seems time consuming to manually create these map files if I have a large collection of shapefiles. Many thanks, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From jajalinux at gmail.com Fri Feb 3 05:51:33 2012 From: jajalinux at gmail.com (gabriel munteanu) Date: Fri, 3 Feb 2012 15:51:33 +0200 Subject: [mapserver-users] street round intersection, crossroads Message-ID: Hi, I would like to achieve in mapserver something like this google map: http://maps.google.com/maps?q=Paris,+France&hl=en&ie=UTF8&ll=47.174895,-1.624206&spn=0.005594,0.012167&sll=44.437711,26.097367&sspn=0.376038,0.778656&t=m&z=17 Please notice the round crossroads. Before I place my question, here is my setup. the map editor: a custom openlayers tool. It saves labels, lines, polygons through WFS-T with tinyows into a postgres+postgis db. a mapserver to render these vector features. There are 2 questions: 1. As my starting point is raw satellite images, what would be the best approach for the editor? Should I let him make only the lines for the street and then I compute the intersections in the sql query in the layer section of the mapserver? should i give him the possibility to make a point at the intersection of the 2 lines on a different layer? or maybe a regular polygon with many sides ? 2. Once I have the lines on the street layer and optional point/regular polygon on the crossroads layer, how do I go about and make it look like the google map shown at the link above ? I will take as example the crossroads at Rue Eugene Pottier and Route de Paimboeuf. Coming from North-East the thin red line acting as border goes around in a nice curve and goes north to Rue Eugene Pottier [the border below goes south the same nice way]. and in the middle there is a circle showing underneath layers with the same color - thin red. I didn't find any examples, or any mapserver map that can do this? Is it even possible? Or is there a trick in STYLE section that can achieve this result? Thank you in advance, Gabi From Phil.Anzel at ftc.usda.gov Fri Feb 3 05:59:33 2012 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Fri, 3 Feb 2012 13:59:33 +0000 Subject: [mapserver-users] RE: How to label only largest displayed areas? In-Reply-To: <84446DEF76453C439E9E97E438E13A63067135@suutari.haapa.mmm.fi> References: , <84446DEF76453C439E9E97E438E13A63067135@suutari.haapa.mmm.fi> Message-ID: Hi, Jukka and Steve, Thanks for your replies. Jukka is correct, I do not believe it is simple. Steve, your approach sorts all areas and then filters by those visible in the layer's extent. I'm looking for ranking by the clipped area. For example, if the current map and layer's extent shows the a small sliver of the mainland of California and a larger visible part of an island that is part of California, only the island would be labeled, as its visible area is larger than that of the sliver. - Phil -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Thursday, February 02, 2012 4:01 PM To: Lime, Steve D (DNR); Anzel, Phil - NRCS, Fort Collins, CO; mapserver-users at lists.osgeo.org Subject: Re: How to label only largest displayed areas? Hi, I understood that meaning was to put exactly one label per state. Each state, even tiny ones, should be labeled. But one state should get only one label even if the map window is splitting the state polygon into two or more intersections. Those intersections may be bigger than the tiny state. Not extremely simple. -Jukka- ________________________________________ L Lime, Steve D (DNR) wrote: > I'd do this by sorting features based on area (ascending order). This would draw the smallest polygons first, but would put the labels for the shapes with the largest area into the label cache last (where they would be placed and drawn first). I've done this with labeling lakes and it works fine. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Anzel, Phil - NRCS, Fort Collins, CO Sent: Thursday, February 02, 2012 1:43 PM To: mapserver-users at lists.osgeo.org Cc: Anzel, Phil - NRCS, Fort Collins, CO Subject: [mapserver-users] How to label only largest displayed areas? Hi, All, How can I label only the largest displayed areas within an extent? For example, if I'm labeling states of the United States and my extent covers a small region around the Maine, New Hampshire and Massachusetts junction, I only want a single label for each state, chosen by the largest displayed area (within the current map extent) in each state. I'm using spatial data stored in Microsoft's SQL Server 2008. I've created an enhancement request ticket (#4173: Define a current layer extent's WKT string for use in Data statement) as one possible approach, but this approach requires a change to MapServer. Is there a better way? Thanks. - Phil Anzel Vistronix Inc for USDA/NRCS/ITC This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. _______________________________________________ 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 Phil.Anzel at ftc.usda.gov Fri Feb 3 06:24:16 2012 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Fri, 3 Feb 2012 14:24:16 +0000 Subject: [mapserver-users] RE: How to label only largest displayed areas? In-Reply-To: References: , <84446DEF76453C439E9E97E438E13A63067135@suutari.haapa.mmm.fi> Message-ID: Steve W, Thanks for the MINDISTANCE suggestion; I'll give that a go to get part way there, along with to Steve L.'s suggestion to sort. Still not quite at the goal yet. - Phil -----Original Message----- From: Anzel, Phil - NRCS, Fort Collins, CO Sent: Friday, February 03, 2012 7:00 AM To: mapserver-users at lists.osgeo.org; Anzel, Phil - NRCS, Fort Collins, CO Subject: RE: How to label only largest displayed areas? Hi, Jukka and Steve, Thanks for your replies. Jukka is correct, I do not believe it is simple. Steve, your approach sorts all areas and then filters by those visible in the layer's extent. I'm looking for ranking by the clipped area. For example, if the current map and layer's extent shows the a small sliver of the mainland of California and a larger visible part of an island that is part of California, only the island would be labeled, as its visible area is larger than that of the sliver. - Phil -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Thursday, February 02, 2012 4:01 PM To: Lime, Steve D (DNR); Anzel, Phil - NRCS, Fort Collins, CO; mapserver-users at lists.osgeo.org Subject: Re: How to label only largest displayed areas? Hi, I understood that meaning was to put exactly one label per state. Each state, even tiny ones, should be labeled. But one state should get only one label even if the map window is splitting the state polygon into two or more intersections. Those intersections may be bigger than the tiny state. Not extremely simple. -Jukka- ________________________________________ L Lime, Steve D (DNR) wrote: > I'd do this by sorting features based on area (ascending order). This would draw the smallest polygons first, but would put the labels for the shapes with the largest area into the label cache last (where they would be placed and drawn first). I've done this with labeling lakes and it works fine. Steve -------------------------------------------------------- Date: Thu, 02 Feb 2012 15:19:19 -0500 From: Stephen Woodbridge Subject: Re: [mapserver-users] How to label only largest displayed areas? To: mapserver-users at lists.osgeo.org Message-ID: <4F2AEFC7.5020704 at swoodbridge.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi Phil, I'm not sure I understand what you need here. Mapserver currently displays one label per polygon based on the visible extents of that polygon. If your state is represented by a single record with a multipolygon like the state and its coastal islands, then I suspect that it will label the first polygon in the multipolygon object. In the cases where you have multiple records in your dataset one for the state and additional polygons for the islands, then all of these are added to the labelcache and the last one in the labelcache is labeled first if the label does not collide. So in this case you could sort your data by state and area increasing in size so you largest is loaded last and labeled first. You can also control the number of labels using MINDISTANCE so the same label in a layer is not presented within units of another with the same name. Do you need more than this? Are you trying to place the label in the biggest open space? (this we can not do because there is no easy algorithm for this). -Steve W -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Anzel, Phil - NRCS, Fort Collins, CO Sent: Thursday, February 02, 2012 1:43 PM To: mapserver-users at lists.osgeo.org Cc: Anzel, Phil - NRCS, Fort Collins, CO Subject: [mapserver-users] How to label only largest displayed areas? Hi, All, How can I label only the largest displayed areas within an extent? For example, if I'm labeling states of the United States and my extent covers a small region around the Maine, New Hampshire and Massachusetts junction, I only want a single label for each state, chosen by the largest displayed area (within the current map extent) in each state. I'm using spatial data stored in Microsoft's SQL Server 2008. I've created an enhancement request ticket (#4173: Define a current layer extent's WKT string for use in Data statement) as one possible approach, but this approach requires a change to MapServer. Is there a better way? Thanks. - Phil Anzel Vistronix Inc for USDA/NRCS/ITC This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. _______________________________________________ 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 Fri Feb 3 06:44:22 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 03 Feb 2012 09:44:22 -0500 Subject: [mapserver-users] RE: How to label only largest displayed areas? In-Reply-To: References: , <84446DEF76453C439E9E97E438E13A63067135@suutari.haapa.mmm.fi> Message-ID: <4F2BF2C6.3000700@swoodbridge.com> Phil, In theory, it might be possible to do this by extending the labelcache code to save the clipped area size of each polygon or a clipped length of a line and then sort the labelcache items by size and label them. MINDISTANCE could be applied to limit the number of labels using the existing code. This behavior would need to be triggered by a new LABEL keyword maybe like PRIORITY [LARGEST|SMALLEST] If you want to write an enhancement ticket for this in the bug tracker you can add my comment above, but I suspect that you would have to fund the development of this or provide a patch. Best regards, -Steve W On 2/3/2012 8:59 AM, Anzel, Phil - NRCS, Fort Collins, CO wrote: > Hi, Jukka and Steve, > > Thanks for your replies. Jukka is correct, I do not believe it is > simple. Steve, your approach sorts all areas and then filters by > those visible in the layer's extent. I'm looking for ranking by the > clipped area. For example, if the current map and layer's extent > shows the a small sliver of the mainland of California and a larger > visible part of an island that is part of California, only the island > would be labeled, as its visible area is larger than that of the > sliver. > > - Phil > > -----Original Message----- From: Rahkonen Jukka > [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Thursday, February 02, 2012 > 4:01 PM To: Lime, Steve D (DNR); Anzel, Phil - NRCS, Fort Collins, > CO; mapserver-users at lists.osgeo.org Subject: Re: How to label only > largest displayed areas? > > Hi, > > I understood that meaning was to put exactly one label per state. > Each state, even tiny ones, should be labeled. But one state should > get only one label even if the map window is splitting the state > polygon into two or more intersections. Those intersections may be > bigger than the tiny state. Not extremely simple. > > -Jukka- > > ________________________________________ L Lime, Steve D (DNR) > wrote: > >> I'd do this by sorting features based on area (ascending order). >> This would draw the smallest polygons first, but would put the >> labels for the shapes with the largest area into the label cache >> last (where they would be placed and drawn first). I've done this >> with labeling lakes and it works fine. > > Steve > > -----Original Message----- From: > mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Anzel, > Phil - NRCS, Fort Collins, CO Sent: Thursday, February 02, 2012 1:43 > PM To: mapserver-users at lists.osgeo.org Cc: Anzel, Phil - NRCS, Fort > Collins, CO Subject: [mapserver-users] How to label only largest > displayed areas? > > Hi, All, > > How can I label only the largest displayed areas within an extent? > For example, if I'm labeling states of the United States and my > extent covers a small region around the Maine, New Hampshire and > Massachusetts junction, I only want a single label for each state, > chosen by the largest displayed area (within the current map extent) > in each state. > > I'm using spatial data stored in Microsoft's SQL Server 2008. > > I've created an enhancement request ticket (#4173: Define a current > layer extent's WKT string for use in Data statement) as one possible > approach, but this approach requires a change to MapServer. > > Is there a better way? > > Thanks. > > - Phil Anzel Vistronix Inc for USDA/NRCS/ITC > > This electronic message contains information generated by the USDA > solely for the intended recipients. Any unauthorized interception of > this message or the use or disclosure of the information it contains > may violate the law and subject the violator to civil or criminal > penalties. If you believe you have received this message in error, > please notify the sender and delete the email immediately. > > > _______________________________________________ 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 woodbri at swoodbridge.com Fri Feb 3 06:51:31 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 03 Feb 2012 09:51:31 -0500 Subject: [mapserver-users] street round intersection, crossroads In-Reply-To: References: Message-ID: <4F2BF473.7080707@swoodbridge.com> There is not trick to this, I have plenty of maps with roundabouts in them. You just have to digitize the the roundabout as segments. Mapserver just draws points, lines and polygons, what you are visualizing as a nice smooth circle is nothing more then a line with multiple vertices, a LINESTRING. -Steve W On 2/3/2012 8:51 AM, gabriel munteanu wrote: > Hi, > > I would like to achieve in mapserver something like this google map: > http://maps.google.com/maps?q=Paris,+France&hl=en&ie=UTF8&ll=47.174895,-1.624206&spn=0.005594,0.012167&sll=44.437711,26.097367&sspn=0.376038,0.778656&t=m&z=17 > Please notice the round crossroads. > Before I place my question, here is my setup. > the map editor: a custom openlayers tool. > It saves labels, lines, polygons through WFS-T with tinyows into a > postgres+postgis db. > a mapserver to render these vector features. > There are 2 questions: > 1. As my starting point is raw satellite images, what would be the > best approach for the editor? Should I let him make only the lines for > the street and then I compute the intersections in the sql query in > the layer section of the mapserver? should i give him the possibility > to make a point at the intersection of the 2 lines on a different > layer? or maybe a regular polygon with many sides ? > 2. Once I have the lines on the street layer and optional > point/regular polygon on the crossroads layer, how do I go about and > make it look like the google map shown at the link above ? > I will take as example the crossroads at Rue Eugene Pottier and Route > de Paimboeuf. Coming from North-East the thin red line acting as > border goes around in a nice curve and goes north to Rue Eugene > Pottier [the border below goes south the same nice way]. and in the > middle there is a circle showing underneath layers with the same color > - thin red. > > I didn't find any examples, or any mapserver map that can do this? Is > it even possible? Or is there a trick in STYLE section that can > achieve this result? > > Thank you in advance, > Gabi > _______________________________________________ > 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 Feb 3 06:47:27 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 3 Feb 2012 14:47:27 +0000 Subject: [mapserver-users] RE: How to label only largest displayed areas? In-Reply-To: <84446DEF76453C439E9E97E438E13A63067135@suutari.haapa.mmm.fi> References: , <84446DEF76453C439E9E97E438E13A63067135@suutari.haapa.mmm.fi> Message-ID: I interpreted differently, probably incorrectly. It would be helpful to see pictures with questions like this. I do think that sorting, plus label MINDISTANCE, plus label MINFEATURESIZE would probably produce useable results in most cases. The only other solution I can think of would be to clip features in the database. PostGIS has the !bbox! hack to allow this. I don't know if the other DBs also support it. Steve -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Thursday, February 02, 2012 5:01 PM To: Lime, Steve D (DNR); Anzel, Phil - NRCS, Fort Collins, CO; mapserver-users at lists.osgeo.org Subject: Re: How to label only largest displayed areas? Hi, I understood that meaning was to put exactly one label per state. Each state, even tiny ones, should be labeled. But one state should get only one label even if the map window is splitting the state polygon into two or more intersections. Those intersections may be bigger than the tiny state. Not extremely simple. -Jukka- ________________________________________ L Lime, Steve D (DNR) wrote: > I'd do this by sorting features based on area (ascending order). This would draw the smallest polygons first, but would put the labels for the shapes with the largest area into the label cache last (where they would be placed and drawn first). I've done this with labeling lakes and it works fine. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Anzel, Phil - NRCS, Fort Collins, CO Sent: Thursday, February 02, 2012 1:43 PM To: mapserver-users at lists.osgeo.org Cc: Anzel, Phil - NRCS, Fort Collins, CO Subject: [mapserver-users] How to label only largest displayed areas? Hi, All, How can I label only the largest displayed areas within an extent? For example, if I'm labeling states of the United States and my extent covers a small region around the Maine, New Hampshire and Massachusetts junction, I only want a single label for each state, chosen by the largest displayed area (within the current map extent) in each state. I'm using spatial data stored in Microsoft's SQL Server 2008. I've created an enhancement request ticket (#4173: Define a current layer extent's WKT string for use in Data statement) as one possible approach, but this approach requires a change to MapServer. Is there a better way? Thanks. - Phil Anzel Vistronix Inc for USDA/NRCS/ITC This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. _______________________________________________ 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 Jukka.Rahkonen at mmmtike.fi Fri Feb 3 07:03:48 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 3 Feb 2012 15:03:48 +0000 Subject: [mapserver-users] RE: How to label only largest displayed areas? In-Reply-To: <4F2BF2C6.3000700@swoodbridge.com> References: , <84446DEF76453C439E9E97E438E13A63067135@suutari.haapa.mmm.fi> <4F2BF2C6.3000700@swoodbridge.com> Message-ID: <84446DEF76453C439E9E97E438E13A630673F9@suutari.haapa.mmm.fi> Hi, But still in this certain case the final select should sort by clipped size AND group by state name AND select the biggest feature from each group. Doesn't it feel easier to do with a database query and addional label layer? But how to pass the WMS BBOX for the database so it could do polygon intersections for getting the areas? And attributes should be transferred too so that clipped areas could be sorted by state name. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Stephen Woodbridge > L?hetetty: 3. helmikuuta 2012 16:44 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] RE: How to label only largest > displayed areas? > > Phil, > > In theory, it might be possible to do this by extending the > labelcache > code to save the clipped area size of each polygon or a > clipped length > of a line and then sort the labelcache items by size and label them. > MINDISTANCE could be applied to limit the number of labels using the > existing code. This behavior would need to be triggered by a > new LABEL > keyword maybe like PRIORITY [LARGEST|SMALLEST] > > If you want to write an enhancement ticket for this in the > bug tracker > you can add my comment above, but I suspect that you would > have to fund > the development of this or provide a patch. > > Best regards, > -Steve W > > On 2/3/2012 8:59 AM, Anzel, Phil - NRCS, Fort Collins, CO wrote: > > Hi, Jukka and Steve, > > > > Thanks for your replies. Jukka is correct, I do not believe it is > > simple. Steve, your approach sorts all areas and then filters by > > those visible in the layer's extent. I'm looking for ranking by the > > clipped area. For example, if the current map and layer's extent > > shows the a small sliver of the mainland of California and a larger > > visible part of an island that is part of California, only > the island > > would be labeled, as its visible area is larger than that of the > > sliver. > > > > - Phil > > > > -----Original Message----- From: Rahkonen Jukka > > [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Thursday, February 02, 2012 > > 4:01 PM To: Lime, Steve D (DNR); Anzel, Phil - NRCS, Fort Collins, > > CO; mapserver-users at lists.osgeo.org Subject: Re: How to label only > > largest displayed areas? > > > > Hi, > > > > I understood that meaning was to put exactly one label per state. > > Each state, even tiny ones, should be labeled. But one state should > > get only one label even if the map window is splitting the state > > polygon into two or more intersections. Those intersections may be > > bigger than the tiny state. Not extremely simple. > > > > -Jukka- > > > > ________________________________________ L Lime, Steve D (DNR) > > wrote: > > > >> I'd do this by sorting features based on area (ascending order). > >> This would draw the smallest polygons first, but would put the > >> labels for the shapes with the largest area into the label cache > >> last (where they would be placed and drawn first). I've done this > >> with labeling lakes and it works fine. > > > > Steve > > > > -----Original Message----- From: > > mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Anzel, > > Phil - NRCS, Fort Collins, CO Sent: Thursday, February 02, 2012 1:43 > > PM To: mapserver-users at lists.osgeo.org Cc: Anzel, Phil - NRCS, Fort > > Collins, CO Subject: [mapserver-users] How to label only largest > > displayed areas? > > > > Hi, All, > > > > How can I label only the largest displayed areas within an extent? > > For example, if I'm labeling states of the United States and my > > extent covers a small region around the Maine, New Hampshire and > > Massachusetts junction, I only want a single label for each state, > > chosen by the largest displayed area (within the current map extent) > > in each state. > > > > I'm using spatial data stored in Microsoft's SQL Server 2008. > > > > I've created an enhancement request ticket (#4173: Define a current > > layer extent's WKT string for use in Data statement) as one possible > > approach, but this approach requires a change to MapServer. > > > > Is there a better way? > > > > Thanks. > > > > - Phil Anzel Vistronix Inc for USDA/NRCS/ITC > > > > This electronic message contains information generated by the USDA > > solely for the intended recipients. Any unauthorized > interception of > > this message or the use or disclosure of the information it contains > > may violate the law and subject the violator to civil or criminal > > penalties. If you believe you have received this message in error, > > please notify the sender and delete the email immediately. > > > > > > _______________________________________________ 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 Phil.Anzel at ftc.usda.gov Fri Feb 3 07:16:48 2012 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Fri, 3 Feb 2012 15:16:48 +0000 Subject: [mapserver-users] RE: How to label only largest displayed areas? In-Reply-To: References: , <84446DEF76453C439E9E97E438E13A63067135@suutari.haapa.mmm.fi> Message-ID: Steve, Thanks for the additional MINFEATURESIZE suggestion. That parameter, alongside of MINDISTANCE, may be quite satisfactory. - Phil -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Friday, February 03, 2012 7:47 AM To: Rahkonen Jukka; Anzel, Phil - NRCS, Fort Collins, CO; mapserver-users at lists.osgeo.org Subject: RE: How to label only largest displayed areas? I interpreted differently, probably incorrectly. It would be helpful to see pictures with questions like this. I do think that sorting, plus label MINDISTANCE, plus label MINFEATURESIZE would probably produce useable results in most cases. The only other solution I can think of would be to clip features in the database. PostGIS has the !bbox! hack to allow this. I don't know if the other DBs also support it. Steve -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Thursday, February 02, 2012 5:01 PM To: Lime, Steve D (DNR); Anzel, Phil - NRCS, Fort Collins, CO; mapserver-users at lists.osgeo.org Subject: Re: How to label only largest displayed areas? Hi, I understood that meaning was to put exactly one label per state. Each state, even tiny ones, should be labeled. But one state should get only one label even if the map window is splitting the state polygon into two or more intersections. Those intersections may be bigger than the tiny state. Not extremely simple. -Jukka- ________________________________________ L Lime, Steve D (DNR) wrote: > I'd do this by sorting features based on area (ascending order). This would draw the smallest polygons first, but would put the labels for the shapes with the largest area into the label cache last (where they would be placed and drawn first). I've done this with labeling lakes and it works fine. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Anzel, Phil - NRCS, Fort Collins, CO Sent: Thursday, February 02, 2012 1:43 PM To: mapserver-users at lists.osgeo.org Cc: Anzel, Phil - NRCS, Fort Collins, CO Subject: [mapserver-users] How to label only largest displayed areas? Hi, All, How can I label only the largest displayed areas within an extent? For example, if I'm labeling states of the United States and my extent covers a small region around the Maine, New Hampshire and Massachusetts junction, I only want a single label for each state, chosen by the largest displayed area (within the current map extent) in each state. I'm using spatial data stored in Microsoft's SQL Server 2008. I've created an enhancement request ticket (#4173: Define a current layer extent's WKT string for use in Data statement) as one possible approach, but this approach requires a change to MapServer. Is there a better way? Thanks. - Phil Anzel Vistronix Inc for USDA/NRCS/ITC This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. _______________________________________________ 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 Phil.Anzel at ftc.usda.gov Fri Feb 3 07:36:00 2012 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Fri, 3 Feb 2012 15:36:00 +0000 Subject: [mapserver-users] RE: How to label only largest displayed In-Reply-To: <20120203151729.CE5CCE00796@lists.osgeo.org> References: <20120203151729.CE5CCE00796@lists.osgeo.org> Message-ID: Hi, Steve W, Thanks again. I'll hold on to your enhancement suggestion and if your MINDISTANCE/MINFEATURESIZE suggestions, coupled with Steve L.'s sorting suggestion do not yield a cartographically-pleasing solution, I'll create the enhancement ticket and investigate how best to proceed. FWIW we're using Microsoft SQL Server 2008, which lets us clip polygons as part of the retrieval query. The enhancement ticket I recently submitted (#4173: Define a current layer extent's WKT string for use in Data statement) shows how it is done; the missing piece is to actually have the dimensions of the bounding box. My ticket asks that such information, the layer's extent as well-kn0wn-text, be made available for lexical substitution in the Data statement. Again, if your and Steve L.'s suggestions work out, the need for your suggested enhancement, as well as mine, fades away. - Phil Date: Fri, 03 Feb 2012 09:44:22 -0500 From: Stephen Woodbridge Subject: Re: [mapserver-users] RE: How to label only largest displayed areas? To: mapserver-users at lists.osgeo.org Message-ID: <4F2BF2C6.3000700 at swoodbridge.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Phil, In theory, it might be possible to do this by extending the labelcache code to save the clipped area size of each polygon or a clipped length of a line and then sort the labelcache items by size and label them. MINDISTANCE could be applied to limit the number of labels using the existing code. This behavior would need to be triggered by a new LABEL keyword maybe like PRIORITY [LARGEST|SMALLEST] If you want to write an enhancement ticket for this in the bug tracker you can add my comment above, but I suspect that you would have to fund the development of this or provide a patch. Best regards, -Steve W On 2/3/2012 8:59 AM, Anzel, Phil - NRCS, Fort Collins, CO wrote: > Hi, Jukka and Steve, > > Thanks for your replies. Jukka is correct, I do not believe it is > simple. Steve, your approach sorts all areas and then filters by > those visible in the layer's extent. I'm looking for ranking by the > clipped area. For example, if the current map and layer's extent > shows the a small sliver of the mainland of California and a larger > visible part of an island that is part of California, only the island > would be labeled, as its visible area is larger than that of the > sliver. > > - Phil > > -----Original Message----- From: Rahkonen Jukka > [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Thursday, February 02, 2012 > 4:01 PM To: Lime, Steve D (DNR); Anzel, Phil - NRCS, Fort Collins, > CO; mapserver-users at lists.osgeo.org Subject: Re: How to label only > largest displayed areas? > > Hi, > > I understood that meaning was to put exactly one label per state. > Each state, even tiny ones, should be labeled. But one state should > get only one label even if the map window is splitting the state > polygon into two or more intersections. Those intersections may be > bigger than the tiny state. Not extremely simple. > > -Jukka- > > ________________________________________ L Lime, Steve D (DNR) > wrote: > >> I'd do this by sorting features based on area (ascending order). >> This would draw the smallest polygons first, but would put the >> labels for the shapes with the largest area into the label cache >> last (where they would be placed and drawn first). I've done this >> with labeling lakes and it works fine. > > Steve > > -----Original Message----- From: > mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Anzel, > Phil - NRCS, Fort Collins, CO Sent: Thursday, February 02, 2012 1:43 > PM To: mapserver-users at lists.osgeo.org Cc: Anzel, Phil - NRCS, Fort > Collins, CO Subject: [mapserver-users] How to label only largest > displayed areas? > > Hi, All, > > How can I label only the largest displayed areas within an extent? > For example, if I'm labeling states of the United States and my > extent covers a small region around the Maine, New Hampshire and > Massachusetts junction, I only want a single label for each state, > chosen by the largest displayed area (within the current map extent) > in each state. > > I'm using spatial data stored in Microsoft's SQL Server 2008. > > I've created an enhancement request ticket (#4173: Define a current > layer extent's WKT string for use in Data statement) as one possible > approach, but this approach requires a change to MapServer. > > Is there a better way? > > Thanks. > > - Phil Anzel Vistronix Inc for USDA/NRCS/ITC > > This electronic message contains information generated by the USDA > solely for the intended recipients. Any unauthorized interception of > this message or the use or disclosure of the information it contains > may violate the law and subject the violator to civil or criminal > penalties. If you believe you have received this message in error, > please notify the sender and delete the email immediately. From pintj at hotmail.com Fri Feb 3 08:16:16 2012 From: pintj at hotmail.com (Trent Pingenot) Date: Fri, 3 Feb 2012 09:16:16 -0700 Subject: [mapserver-users] PostGIS Connection String - Thread Issue? In-Reply-To: References: , Message-ID: Thomas, That did it! I had tried removing the single quotes from the username, but not the db, but not both, I can't remember. By removing single quotes around both the dbname and the username it started working. It's still strange to me that it works with single quotes on all my other sites. Thanks for your suggestion! Trent > Date: Fri, 3 Feb 2012 09:33:15 +0100 > Subject: Re: [mapserver-users] PostGIS Connection String - Thread Issue? > From: thomas.bonfort at gmail.com > To: pintj at hotmail.com > CC: mapserver-users at lists.osgeo.org > > There were some changes to string quoting/escaping in version 6 (I think). > > Are the errors you are seeing intermittent, or is it reproducible > consistently on all requests? > What happens if you use > > CONNECTION "dbname=interlocken user=interlocken ..." > > instead of > > CONNECTION "dbname='interlocken' user='interlocken' ..." > > -- > thomas > > On Thu, Feb 2, 2012 at 23:00, Trent Pingenot wrote: > > Hi list, > > > > We recently upgraded from MapServer 5.x to 6.0.1 on Linux. We have 21 sites > > running all running smoothly with identical configurations off this server. > > On one site the MapServer connection to Postgres/PostGIS fails on all > > layers. The MS debug message is as follows > > > > [Thu Feb 2 14:41:04 2012].823297 msPostGISLayerOpen(): Query error. > > Database connection failed (FATAL: no pg_hba.conf entry for host "[local]", > > user "interlocken", database "nterlocNken", SSL off > > ) with connect string 'dbname='nterlocNken' user='interlocken' > > password=*******************' > > > > And the entry in the map file > > > > CONNECTIONTYPE postgis > > PROCESSING "CLOSE_CONNECTION=DEFER" > > CONNECTION "dbname='interlocken' user='interlocken' > > password='**************'" > > DATA 'the_geom FROM "ext_lighting_existing_point" USING UNIQUE gid USING > > srid=4326' > > > > I can log into psql on the server as the interlocken user and hit the DB > > just fine so it's not the pg_hba.conf file settings which are set that the > > db username and db name must match. My question is why > > does the dbname get corrupted to nterlocNken? Is this a bug or how mapserver > > should present the connection items in a debug statement? I can use our old > > copy 5.4 copy of mapserver and it runs the map file fine. One difference in > > this build is that we don't have the --with-threads support. We are looking > > at getting the build rebuilt with this thread locking option included. > > Could threading be the problem? I'm not sure how/if threading might be > > related but thought I would mention it. > > > > I've stripped out all layers from the mapfile except a single test layer. > > I've got 60+ layers running in other map files and databases with identical > > setups on the same server without problems, why this one? We even tried > > wiping out the DB and associated user and reloading and still the same > > problem. > > > > Thanks in advance for any help or tips you can provide. > > > > Thanks, > > > > Trent > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Feb 3 08:18:39 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 3 Feb 2012 17:18:39 +0100 Subject: [mapserver-users] PostGIS Connection String - Thread Issue? In-Reply-To: References: Message-ID: Trent, can you file a ticket for this issue please? regards, thomas On Fri, Feb 3, 2012 at 17:16, Trent Pingenot wrote: > Thomas, > > That did it! I had tried removing the single quotes from the username, but > not the db, but not both, I can't remember. By removing single quotes around > both the dbname and the username it started working.? It's still strange to > me that it works with single quotes on all my other sites. > > Thanks for your suggestion! > > Trent > >> Date: Fri, 3 Feb 2012 09:33:15 +0100 >> Subject: Re: [mapserver-users] PostGIS Connection String - Thread Issue? >> From: thomas.bonfort at gmail.com >> To: pintj at hotmail.com >> CC: mapserver-users at lists.osgeo.org > >> >> There were some changes to string quoting/escaping in version 6 (I think). >> >> Are the errors you are seeing intermittent, or is it reproducible >> consistently on all requests? >> What happens if you use >> >> CONNECTION "dbname=interlocken user=interlocken ..." >> >> instead of >> >> CONNECTION "dbname='interlocken' user='interlocken' ..." >> >> -- >> thomas >> >> On Thu, Feb 2, 2012 at 23:00, Trent Pingenot wrote: >> > Hi list, >> > >> > We recently upgraded from MapServer 5.x to 6.0.1 on Linux.? We have 21 >> > sites >> > running all running smoothly with identical configurations off this >> > server. >> > On one site the MapServer connection to Postgres/PostGIS fails on all >> > layers.? The MS debug message is as follows >> > >> > [Thu Feb 2 14:41:04 2012].823297 msPostGISLayerOpen(): Query error. >> > Database connection failed (FATAL: no pg_hba.conf entry for host >> > "[local]", >> > user "interlocken", database "nterlocNken", SSL off >> > ) with connect string 'dbname='nterlocNken' user='interlocken' >> > password=*******************' >> > >> > And the entry in the map file >> > >> > CONNECTIONTYPE postgis >> > PROCESSING "CLOSE_CONNECTION=DEFER" >> > CONNECTION "dbname='interlocken' user='interlocken' >> > password='**************'" >> > DATA 'the_geom FROM "ext_lighting_existing_point" USING UNIQUE gid USING >> > srid=4326' >> > >> > I can log into psql on the server as the interlocken user and hit the DB >> > just fine so it's not the pg_hba.conf file settings which are set that >> > the >> > db username and db name must match.? My question is why >> > does the dbname get corrupted to nterlocNken? Is this a bug or how >> > mapserver >> > should present the connection items in a debug statement?? I can use our >> > old >> > copy 5.4 copy of mapserver and it runs the map file fine.? One >> > difference in >> > this build is that we don't have the --with-threads support. We are >> > looking >> > at getting the build rebuilt with this thread locking option included. >> > Could threading be the problem? I'm not sure how/if threading might be >> > related but thought I would mention it. >> > >> > I've stripped out all layers from the mapfile except a single test >> > layer. >> > I've got 60+ layers running in other map files and databases with >> > identical >> > setups? on the same server without problems, why this one?? We even >> > tried >> > wiping out the DB and associated user and reloading and still the same >> > problem. >> > >> > Thanks in advance for any help or tips you can provide. >> > >> > Thanks, >> > >> > Trent >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From woodbri at swoodbridge.com Fri Feb 3 08:22:15 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 03 Feb 2012 11:22:15 -0500 Subject: [mapserver-users] RE: How to label only largest displayed areas? In-Reply-To: <84446DEF76453C439E9E97E438E13A630673F9@suutari.haapa.mmm.fi> References: , <84446DEF76453C439E9E97E438E13A63067135@suutari.haapa.mmm.fi> <4F2BF2C6.3000700@swoodbridge.com> <84446DEF76453C439E9E97E438E13A630673F9@suutari.haapa.mmm.fi> Message-ID: <4F2C09B7.9080401@swoodbridge.com> Hi Jukka, The labelcache could be extended to handle this, we already create and entry for each label, by name and by priority, if we priority was set to -1 or 02 for largest or smallest, and a size slot was added to the cache then all the rendering code would need to do isi compute the rendered (ie clipped) size in pixels or whatever. Database queries don't work if you are using shapefiles or other datasources. While postgres connections do support a !BOX! as Steve L mentioned not all databases have this coded. Size could be trivially computed as the number of pixels drawn for the polygon when it is rendered, although this might not be easily accessible given some of the newer rendering engines we support now. -Steve On 2/3/2012 10:03 AM, Rahkonen Jukka wrote: > Hi, > > But still in this certain case the final select should sort by > clipped size AND group by state name AND select the biggest feature > from each group. Doesn't it feel easier to do with a database query > and addional label layer? But how to pass the WMS BBOX for the > database so it could do polygon intersections for getting the areas? > And attributes should be transferred too so that clipped areas could > be sorted by state name. > > -Jukka Rahkonen- > >> -----Alkuper?inen viesti----- L?hett?j?: >> mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Stephen >> Woodbridge L?hetetty: 3. helmikuuta 2012 16:44 Vastaanottaja: >> mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] RE: How >> to label only largest displayed areas? >> >> Phil, >> >> In theory, it might be possible to do this by extending the >> labelcache code to save the clipped area size of each polygon or a >> clipped length of a line and then sort the labelcache items by size >> and label them. MINDISTANCE could be applied to limit the number of >> labels using the existing code. This behavior would need to be >> triggered by a new LABEL keyword maybe like PRIORITY >> [LARGEST|SMALLEST] >> >> If you want to write an enhancement ticket for this in the bug >> tracker you can add my comment above, but I suspect that you would >> have to fund the development of this or provide a patch. >> >> Best regards, -Steve W >> >> On 2/3/2012 8:59 AM, Anzel, Phil - NRCS, Fort Collins, CO wrote: >>> Hi, Jukka and Steve, >>> >>> Thanks for your replies. Jukka is correct, I do not believe it >>> is simple. Steve, your approach sorts all areas and then filters >>> by those visible in the layer's extent. I'm looking for ranking >>> by the clipped area. For example, if the current map and layer's >>> extent shows the a small sliver of the mainland of California and >>> a larger visible part of an island that is part of California, >>> only >> the island >>> would be labeled, as its visible area is larger than that of the >>> sliver. >>> >>> - Phil >>> >>> -----Original Message----- From: Rahkonen Jukka >>> [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Thursday, February 02, >>> 2012 4:01 PM To: Lime, Steve D (DNR); Anzel, Phil - NRCS, Fort >>> Collins, CO; mapserver-users at lists.osgeo.org Subject: Re: How to >>> label only largest displayed areas? >>> >>> Hi, >>> >>> I understood that meaning was to put exactly one label per >>> state. Each state, even tiny ones, should be labeled. But one >>> state should get only one label even if the map window is >>> splitting the state polygon into two or more intersections. Those >>> intersections may be bigger than the tiny state. Not extremely >>> simple. >>> >>> -Jukka- >>> >>> ________________________________________ L Lime, Steve D (DNR) >>> wrote: >>> >>>> I'd do this by sorting features based on area (ascending >>>> order). This would draw the smallest polygons first, but would >>>> put the labels for the shapes with the largest area into the >>>> label cache last (where they would be placed and drawn first). >>>> I've done this with labeling lakes and it works fine. >>> >>> Steve >>> >>> -----Original Message----- From: >>> mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >>> Anzel, Phil - NRCS, Fort Collins, CO Sent: Thursday, February 02, >>> 2012 1:43 PM To: mapserver-users at lists.osgeo.org Cc: Anzel, Phil >>> - NRCS, Fort Collins, CO Subject: [mapserver-users] How to label >>> only largest displayed areas? >>> >>> Hi, All, >>> >>> How can I label only the largest displayed areas within an >>> extent? For example, if I'm labeling states of the United States >>> and my extent covers a small region around the Maine, New >>> Hampshire and Massachusetts junction, I only want a single label >>> for each state, chosen by the largest displayed area (within the >>> current map extent) in each state. >>> >>> I'm using spatial data stored in Microsoft's SQL Server 2008. >>> >>> I've created an enhancement request ticket (#4173: Define a >>> current layer extent's WKT string for use in Data statement) as >>> one possible approach, but this approach requires a change to >>> MapServer. >>> >>> Is there a better way? >>> >>> Thanks. >>> >>> - Phil Anzel Vistronix Inc for USDA/NRCS/ITC >>> >>> This electronic message contains information generated by the >>> USDA solely for the intended recipients. Any unauthorized >> interception of >>> this message or the use or disclosure of the information it >>> contains may violate the law and subject the violator to civil or >>> criminal penalties. If you believe you have received this >>> message in error, please notify the sender and delete the email >>> immediately. >>> >>> >>> _______________________________________________ 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 From thomas.ellett at statkart.no Fri Feb 3 08:30:48 2012 From: thomas.ellett at statkart.no (tellett) Date: Fri, 3 Feb 2012 08:30:48 -0800 (PST) Subject: [mapserver-users] Run time substitution - Like instead of = Message-ID: <1328286648904-4362317.post@n6.nabble.com> Hi All, I'm using runtime substitution to replace the value of an expression and thats working fine, however, if I don't set the expression value in the url, I want the layer to show all the records. For example my class looks likes this: CLASS NAME 'FKB-A' EXPRESSION '%pn%' STYLE COLOR 254 150 254 OUTLINECOLOR 1 1 1 END END and when I use this request: .....REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&LAYERS=fkb_prosjektstandard&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&BBOX=58.9930983171506,9.40049150322111,59.8470137571506,10.904184647298&WIDTH=1650&HEIGHT=937&pn=LACHVE11 I get back 1 record which is correct. However, if I drop the &pn=LACHVE11 of course I get no results back. Is there any way of changing this so that I can get all the records of the table returned? I thought about using the 'default_pn' option in the metadata and using wildcards but as this is an '=' expression rather than a 'LIKE' expression wildcards are useless. Maybe its just because its friday afternoon, but I just can't see a way of doing this, help!!! Best Regards Tom -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-substitution-Like-instead-of-tp4362317p4362317.html Sent from the Mapserver - User mailing list archive at Nabble.com. From boolean10001 at yahoo.com Fri Feb 3 08:30:56 2012 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Fri, 3 Feb 2012 08:30:56 -0800 (PST) Subject: [mapserver-users] PostGIS query In-Reply-To: <4F28FEF4.5010602@ulb.ac.be> References: <4F27E0D7.4080409@ulb.ac.be> <1328025933.74612.YahooMailNeo@web38206.mail.mud.yahoo.com> <4F28FEF4.5010602@ulb.ac.be> Message-ID: <1328286656.72580.YahooMailNeo@web38207.mail.mud.yahoo.com> Hi Julien, > I usually use a view, but in this case there are a lot of tables > involved and I would like to avoid dozens of unnecessary JOIN I think that you have a database design problem. You can have a lot of tables which concerns to a different objects, but you need to show some information on a map which involves many of those tables. That's why you have to create different views or in the worst case, a super view as a spreadsheet. I guess that's why you're talking about unnecessary JOINs, but in the end, you'll need to use them to create the multiple data sources or the super data source of your layers in the .MAP file. IC Carlos Ruiz ________________________________ From: Julien Cigar To: Carlos Ruiz Cc: "mapserver-users at lists.osgeo.org" Sent: Wednesday, February 1, 2012 2:59 AM Subject: Re: [mapserver-users] PostGIS query On 01/31/2012 17:05, Carlos Ruiz wrote: > Julien, Hi Carlos, > > Have you tried with views ? When I need to map complex queries I build a > view to just handle the where clauses. > I usually use a view, but in this case there are a lot of tables involved and I would like to avoid dozens of unnecessary JOIN > Cheers from M?xico > IC Carlos Ruiz > > ------------------------------------------------------------------------ > *From:* Julien Cigar > *To:* "mapserver-users at lists.osgeo.org" > *Sent:* Tuesday, January 31, 2012 6:38 AM > *Subject:* [mapserver-users] PostGIS query > > Hello, > > Is there a way to (deeply) modify the SQL query in a PostGIS layer? > I would like to add some JOIN, additional WHERE clauses, etc > As I'm afraid that "Run-time Substitution" isn't flexible enough for > this case ... is there any other possibility, other than mapscript? > > I guess there is no possibility to define variables, conditions, etc in > a .map file .. ? > > Thanks, > Julien > > -- No trees were killed in the creation of this message. > However, many electrons were terribly inconvenienced. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at usace.army.mil Fri Feb 3 08:56:46 2012 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Fri, 3 Feb 2012 16:56:46 +0000 Subject: [mapserver-users] Run time substitution - Like instead of = In-Reply-To: <1328286648904-4362317.post@n6.nabble.com> Message-ID: Tom, What I am using with a database connection is a default value of "1=1" so that is always true, it returns all records. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 2/3/12 11:30 AM, "tellett" wrote: >Hi All, > >I'm using runtime substitution to replace the value of an expression and >thats working fine, however, if I don't set the expression value in the >url, >I want the layer to show all the records. For example my class looks likes >this: > >CLASS > NAME 'FKB-A' > EXPRESSION '%pn%' > STYLE > COLOR 254 150 254 > OUTLINECOLOR 1 1 1 > END > END > >and when I use this request: > >.....REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&LAYERS=fkb_prosjektstandard& >STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&B >BOX=58.9930983171506,9.40049150322111,59.8470137571506,10.904184647298&WID >TH=1650&HEIGHT=937&pn=LACHVE11 > >I get back 1 record which is correct. However, if I drop the &pn=LACHVE11 >of >course I get no results back. Is there any way of changing this so that I >can get all the records of the table returned? > >I thought about using the 'default_pn' option in the metadata and using >wildcards but as this is an '=' expression rather than a 'LIKE' expression >wildcards are useless. Maybe its just because its friday afternoon, but I >just can't see a way of doing this, help!!! > >Best Regards > >Tom > >-- >View this message in context: >http://osgeo-org.1560.n6.nabble.com/Run-time-substitution-Like-instead-of- >tp4362317p4362317.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 Ya.Wang at vta.org Fri Feb 3 10:41:08 2012 From: Ya.Wang at vta.org (Wang, Ya) Date: Fri, 3 Feb 2012 18:41:08 +0000 Subject: [mapserver-users] Re: Re: Can't get Tinyows WFS Layer to show in OpenLayer In-Reply-To: <20120203092350.5A994E00647@lists.osgeo.org> References: <20120203092350.5A994E00647@lists.osgeo.org> Message-ID: The version is 1.1.0rc1. Seems I need to specify both "prefix"/"server" and "ns_prefix/ns_ur" for it to work.. I am wondering why. Thanks. Ya -----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: Friday, February 03, 2012 1:24 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 49, Issue 7 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: How to label only largest displayed areas? (Rahkonen Jukka) 2. Re: Can't get Tinyows WFS Layer to show in OpenLayer (Wang, Ya) 3. Re: Re: Can't get Tinyows WFS Layer to show in OpenLayer (Rahkonen Jukka) 4. Using WFS gml_[item name]_alias (Dejan Gambin) 5. Re: PostGIS Connection String - Thread Issue? (thomas bonfort) 6. Legend size problem in GetLegendGraphic request (Dejan Gambin) 7. WFS GetCapabilities does not work with non-ascii characters in mapfile (Rahkonen Jukka) ---------------------------------------------------------------------- Message: 1 Date: Thu, 2 Feb 2012 23:01:23 +0000 From: Rahkonen Jukka Subject: [mapserver-users] Re: How to label only largest displayed areas? To: "Lime, Steve D (DNR)" , "Anzel, Phil - NRCS, Fort Collins, CO" , "mapserver-users at lists.osgeo.org" Message-ID: <84446DEF76453C439E9E97E438E13A63067135 at suutari.haapa.mmm.fi> Content-Type: text/plain; charset="us-ascii" Hi, I understood that meaning was to put exactly one label per state. Each state, even tiny ones, should be labeled. But one state should get only one label even if the map window is splitting the state polygon into two or more intersections. Those intersections may be bigger than the tiny state. Not extremely simple. -Jukka- ________________________________________ L Lime, Steve D (DNR) wrote: > I'd do this by sorting features based on area (ascending order). This would draw the smallest polygons first, but would put the labels for the shapes with the largest area into the label cache last (where they would be placed and drawn first). I've done this with labeling lakes and it works fine. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Anzel, Phil - NRCS, Fort Collins, CO Sent: Thursday, February 02, 2012 1:43 PM To: mapserver-users at lists.osgeo.org Cc: Anzel, Phil - NRCS, Fort Collins, CO Subject: [mapserver-users] How to label only largest displayed areas? Hi, All, How can I label only the largest displayed areas within an extent? For example, if I'm labeling states of the United States and my extent covers a small region around the Maine, New Hampshire and Massachusetts junction, I only want a single label for each state, chosen by the largest displayed area (within the current map extent) in each state. I'm using spatial data stored in Microsoft's SQL Server 2008. I've created an enhancement request ticket (#4173: Define a current layer extent's WKT string for use in Data statement) as one possible approach, but this approach requires a change to MapServer. Is there a better way? Thanks. - Phil Anzel Vistronix Inc for USDA/NRCS/ITC This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. _______________________________________________ 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 ------------------------------ Message: 2 Date: Fri, 3 Feb 2012 00:16:21 +0000 From: "Wang, Ya" Subject: [mapserver-users] Re: Can't get Tinyows WFS Layer to show in OpenLayer To: "mapserver-users at lists.osgeo.org" Message-ID: Content-Type: text/plain; charset="us-ascii" Hello All, The problem got solved finally. It seems all I need to do is to add two more lines into my TinyOWS configuration. Maybe fixing the PythonPath helped as well. But this change is what really makes a difference. Before (not working): After (working now): I was relieved of the frustration I have been suffering during the past two days. Thanks everyone. Ya ___________________________________________________________________________ Message: 5 Date: Thu, 2 Feb 2012 08:57:52 +0100 From: Olivier Courtin Subject: Re: [mapserver-users] Can't get Tinyows WFS Layer to show in OpenLayer To: "mapserver-users at lists.osgeo.org" Message-ID: Content-Type: text/plain; charset="windows-1252" On Wed, Feb 1, 2012 at 7:33 PM, Wang, Ya wrote: Hi, I am a newbie of mapserver and other online mapping technologies. > Recently, I have been struggling to load a TinyOWS WFS Layer to an > OpenLayers map. I set up proxy.cgi, which works fine. I checked TinyOWS > using command ?tinyows ?check?, which also seems to be working. The page > http://.../cgi-bin/tinyows.exe?service=wfs&request=getCapabilities&version=1.1.0&typename=tows:lrtstopsdoesn?t return any error either. I can also load a mapserver WMS layer > into the OpenLayers Map with no problem. However, no feature from the WFS > layer would show in the OpenLayers map. Since both the WMS and WFS layers > are of the same projection, which is EPSG:2227, I assume that the > misspecification of projection is not likely to be the caprice here. The > following is the JavaScript I used and the response returned. Could someone > help me find out what I did wrong? Many thanks in advance! > > ** > > ** > Several questions related to your issue: - What TinyOWS version do you use ? - What happen if you use QGIS as WMS/WFS client rather than OpenLayers ? - Could you activate TinyOWS log and check if there's any error message in it ? - Could you use Firebug with OpenLayers to check the TinyOWS output stream ? HTH, -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120202/dc523795/attachment.html ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 49, Issue 4 ********************************************** ------------------------------ Message: 3 Date: Fri, 3 Feb 2012 05:16:47 +0000 From: Rahkonen Jukka Subject: Re: [mapserver-users] Re: Can't get Tinyows WFS Layer to show in OpenLayer To: "mapserver-users at lists.osgeo.org" Message-ID: <84446DEF76453C439E9E97E438E13A63067193 at suutari.haapa.mmm.fi> Content-Type: text/plain; charset="us-ascii" Hi, Did you mention what version you were using? Perhaps it is version 0.9.0 which was indeed using keywords "prefix" and "server". Change into ns_prefix adn ns_uri was done last spring http://tinyows.org/trac/changeset/343 If that is the case I would recommend updating your TinyOWS to the current release canditate. -Jukka Rahkonen- ________________________________________ Wang, Ya wrote: > Hello All, > The problem got solved finally. It seems all I need to do is to add two more lines into my TinyOWS configuration. Maybe fixing the PythonPath helped as well. But this change is what really makes a difference. Before (not working): After (working now): I was relieved of the frustration I have been suffering during the past two days. Thanks everyone. Ya ___________________________________________________________________________ Message: 5 Date: Thu, 2 Feb 2012 08:57:52 +0100 From: Olivier Courtin Subject: Re: [mapserver-users] Can't get Tinyows WFS Layer to show in OpenLayer To: "mapserver-users at lists.osgeo.org" Message-ID: Content-Type: text/plain; charset="windows-1252" On Wed, Feb 1, 2012 at 7:33 PM, Wang, Ya wrote: Hi, I am a newbie of mapserver and other online mapping technologies. > Recently, I have been struggling to load a TinyOWS WFS Layer to an > OpenLayers map. I set up proxy.cgi, which works fine. I checked TinyOWS > using command ?tinyows ?check?, which also seems to be working. The page > http://.../cgi-bin/tinyows.exe?service=wfs&request=getCapabilities&version=1.1.0&typename=tows:lrtstopsdoesn?t return any error either. I can also load a mapserver WMS layer > into the OpenLayers Map with no problem. However, no feature from the WFS > layer would show in the OpenLayers map. Since both the WMS and WFS layers > are of the same projection, which is EPSG:2227, I assume that the > misspecification of projection is not likely to be the caprice here. The > following is the JavaScript I used and the response returned. Could someone > help me find out what I did wrong? Many thanks in advance! > > ** > > ** > Several questions related to your issue: - What TinyOWS version do you use ? - What happen if you use QGIS as WMS/WFS client rather than OpenLayers ? - Could you activate TinyOWS log and check if there's any error message in it ? - Could you use Firebug with OpenLayers to check the TinyOWS output stream ? HTH, -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120202/dc523795/attachment.html ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 49, Issue 4 ********************************************** _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ Message: 4 Date: Fri, 3 Feb 2012 09:16:43 +0100 From: Dejan Gambin Subject: [mapserver-users] Using WFS gml_[item name]_alias To: mapserver-users at lists.osgeo.org Message-ID: Content-Type: text/plain; charset="us-ascii" Hi, I am trying to use gml_[item name]_alias for renaming my columns in wfs GetFeature request with gml output. Everything works fine except I can't use some characters like whitespace for example, because it is not a valid xml element. My question is - is there any way to name my attribute like "my attribute" through WFS GetFeature request? Btw, I am presenting the result in a html table, so would be useful, for example, to be able to handle this and other stuff like type for example (integer, string, ..) through the mapfile. And maybe to use this on the client to align data in a table (numbers right, string left, etc.) Thanks very much on any useful info regards, dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120203/5ce981ff/attachment-0001.html ------------------------------ Message: 5 Date: Fri, 3 Feb 2012 09:33:15 +0100 From: thomas bonfort Subject: Re: [mapserver-users] PostGIS Connection String - Thread Issue? To: Trent Pingenot Cc: mapserver-users at lists.osgeo.org Message-ID: Content-Type: text/plain; charset=UTF-8 There were some changes to string quoting/escaping in version 6 (I think). Are the errors you are seeing intermittent, or is it reproducible consistently on all requests? What happens if you use CONNECTION "dbname=interlocken user=interlocken ..." instead of CONNECTION "dbname='interlocken' user='interlocken' ..." -- thomas On Thu, Feb 2, 2012 at 23:00, Trent Pingenot wrote: > Hi list, > > We recently upgraded from MapServer 5.x to 6.0.1 on Linux.?? We have 21 sites > running all running smoothly with identical configurations off this server. > On one site the MapServer connection to Postgres/PostGIS fails on all > layers.?? The MS debug message is as follows > > [Thu Feb 2 14:41:04 2012].823297 msPostGISLayerOpen(): Query error. > Database connection failed (FATAL: no pg_hba.conf entry for host "[local]", > user "interlocken", database "nterlocNken", SSL off > ) with connect string 'dbname='nterlocNken' user='interlocken' > password=*******************' > > And the entry in the map file > > CONNECTIONTYPE postgis > PROCESSING "CLOSE_CONNECTION=DEFER" > CONNECTION "dbname='interlocken' user='interlocken' > password='**************'" > DATA 'the_geom FROM "ext_lighting_existing_point" USING UNIQUE gid USING > srid=4326' > > I can log into psql on the server as the interlocken user and hit the DB > just fine so it's not the pg_hba.conf file settings which are set that the > db username and db name must match.?? My question is why > does the dbname get corrupted to nterlocNken? Is this a bug or how mapserver > should present the connection items in a debug statement??? I can use our old > copy 5.4 copy of mapserver and it runs the map file fine.?? One difference in > this build is that we don't have the --with-threads support. We are looking > at getting the build rebuilt with this thread locking option included. > Could threading be the problem? I'm not sure how/if threading might be > related but thought I would mention it. > > I've stripped out all layers from the mapfile except a single test layer. > I've got 60+ layers running in other map files and databases with identical > setups?? on the same server without problems, why this one??? We even tried > wiping out the DB and associated user and reloading and still the same > problem. > > Thanks in advance for any help or tips you can provide. > > Thanks, > > Trent > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ------------------------------ Message: 6 Date: Fri, 3 Feb 2012 09:45:49 +0100 From: Dejan Gambin Subject: [mapserver-users] Legend size problem in GetLegendGraphic request To: mapserver-users at lists.osgeo.org Message-ID: <85D8CB63-16B6-43C4-B97D-AC145D8589F0 at coin.hr> Content-Type: text/plain; charset=us-ascii Hi, I have point shapefile and trying to show the points as big circles on the map. So I am using something like: ... SIZEUNITS kilometers CLASS Name "myname" SIZE 10 ... END ... Everything is show ok on the map but the symbol in the legend is very big, and exceeds the symbol key box very much, although KEYSIZE is set to 25 18. Btw, I am using WMS GetLegendGraphic request for getting the legend Thanks very much regards, dejan ------------------------------ Message: 7 Date: Fri, 3 Feb 2012 09:23:35 +0000 From: Rahkonen Jukka Subject: [mapserver-users] WFS GetCapabilities does not work with non-ascii characters in mapfile To: "'mapserver-users at lists.osgeo.org'" Message-ID: <84446DEF76453C439E9E97E438E13A63067246 at suutari.haapa.mmm.fi> Content-Type: text/plain; charset="iso-8859-1" Hi, This should be simple to test and verify. Write into WEB METADATA parameters "wms_title" "test_?" "wfs_title" "test_?" WMS 1.1.1 GetGapabilities does not have any trouble with "?" and request sends back ... OGC:WMS test_? .... However, WFS GetCapabilities response gets truncated. All that Mapserver sends is this test_ The same error occurs if non-ascii characters are used in "wfs_abstract". I was testing on Windows and Mapserver 6.0.1. -Jukka Rahkonen -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120203/0ca913c5/attachment.html ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 49, Issue 7 ********************************************** From Ya.Wang at vta.org Fri Feb 3 11:02:56 2012 From: Ya.Wang at vta.org (Wang, Ya) Date: Fri, 3 Feb 2012 19:02:56 +0000 Subject: [mapserver-users] RE: RE: Re: Can't get Tinyows WFS Layer to show in OpenLayer In-Reply-To: References: <20120203092350.5A994E00647@lists.osgeo.org> Message-ID: Sorry, I took back what I said earlier. After I removed "prefix"/"server" from the configuration, it is still working. Jukka Rahkonen was right. Now, I am clueless what I did differently. Ya -----Original Message----- From: Wang, Ya Sent: Friday, February 03, 2012 10:41 AM To: mapserver-users at lists.osgeo.org Subject: Re: Re: Can't get Tinyows WFS Layer to show in OpenLayer The version is 1.1.0rc1. Seems I need to specify both "prefix"/"server" and "ns_prefix/ns_ur" for it to work.. I am wondering why. Thanks. Ya -----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: Friday, February 03, 2012 1:24 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 49, Issue 7 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: How to label only largest displayed areas? (Rahkonen Jukka) 2. Re: Can't get Tinyows WFS Layer to show in OpenLayer (Wang, Ya) 3. Re: Re: Can't get Tinyows WFS Layer to show in OpenLayer (Rahkonen Jukka) 4. Using WFS gml_[item name]_alias (Dejan Gambin) 5. Re: PostGIS Connection String - Thread Issue? (thomas bonfort) 6. Legend size problem in GetLegendGraphic request (Dejan Gambin) 7. WFS GetCapabilities does not work with non-ascii characters in mapfile (Rahkonen Jukka) ---------------------------------------------------------------------- Message: 1 Date: Thu, 2 Feb 2012 23:01:23 +0000 From: Rahkonen Jukka Subject: [mapserver-users] Re: How to label only largest displayed areas? To: "Lime, Steve D (DNR)" , "Anzel, Phil - NRCS, Fort Collins, CO" , "mapserver-users at lists.osgeo.org" Message-ID: <84446DEF76453C439E9E97E438E13A63067135 at suutari.haapa.mmm.fi> Content-Type: text/plain; charset="us-ascii" Hi, I understood that meaning was to put exactly one label per state. Each state, even tiny ones, should be labeled. But one state should get only one label even if the map window is splitting the state polygon into two or more intersections. Those intersections may be bigger than the tiny state. Not extremely simple. -Jukka- ________________________________________ L Lime, Steve D (DNR) wrote: > I'd do this by sorting features based on area (ascending order). This would draw the smallest polygons first, but would put the labels for the shapes with the largest area into the label cache last (where they would be placed and drawn first). I've done this with labeling lakes and it works fine. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Anzel, Phil - NRCS, Fort Collins, CO Sent: Thursday, February 02, 2012 1:43 PM To: mapserver-users at lists.osgeo.org Cc: Anzel, Phil - NRCS, Fort Collins, CO Subject: [mapserver-users] How to label only largest displayed areas? Hi, All, How can I label only the largest displayed areas within an extent? For example, if I'm labeling states of the United States and my extent covers a small region around the Maine, New Hampshire and Massachusetts junction, I only want a single label for each state, chosen by the largest displayed area (within the current map extent) in each state. I'm using spatial data stored in Microsoft's SQL Server 2008. I've created an enhancement request ticket (#4173: Define a current layer extent's WKT string for use in Data statement) as one possible approach, but this approach requires a change to MapServer. Is there a better way? Thanks. - Phil Anzel Vistronix Inc for USDA/NRCS/ITC This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. _______________________________________________ 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 ------------------------------ Message: 2 Date: Fri, 3 Feb 2012 00:16:21 +0000 From: "Wang, Ya" Subject: [mapserver-users] Re: Can't get Tinyows WFS Layer to show in OpenLayer To: "mapserver-users at lists.osgeo.org" Message-ID: Content-Type: text/plain; charset="us-ascii" Hello All, The problem got solved finally. It seems all I need to do is to add two more lines into my TinyOWS configuration. Maybe fixing the PythonPath helped as well. But this change is what really makes a difference. Before (not working): After (working now): I was relieved of the frustration I have been suffering during the past two days. Thanks everyone. Ya ___________________________________________________________________________ Message: 5 Date: Thu, 2 Feb 2012 08:57:52 +0100 From: Olivier Courtin Subject: Re: [mapserver-users] Can't get Tinyows WFS Layer to show in OpenLayer To: "mapserver-users at lists.osgeo.org" Message-ID: Content-Type: text/plain; charset="windows-1252" On Wed, Feb 1, 2012 at 7:33 PM, Wang, Ya wrote: Hi, I am a newbie of mapserver and other online mapping technologies. > Recently, I have been struggling to load a TinyOWS WFS Layer to an > OpenLayers map. I set up proxy.cgi, which works fine. I checked TinyOWS > using command ?tinyows ?check?, which also seems to be working. The page > http://.../cgi-bin/tinyows.exe?service=wfs&request=getCapabilities&version=1.1.0&typename=tows:lrtstopsdoesn?t return any error either. I can also load a mapserver WMS layer > into the OpenLayers Map with no problem. However, no feature from the WFS > layer would show in the OpenLayers map. Since both the WMS and WFS layers > are of the same projection, which is EPSG:2227, I assume that the > misspecification of projection is not likely to be the caprice here. The > following is the JavaScript I used and the response returned. Could someone > help me find out what I did wrong? Many thanks in advance! > > ** > > ** > Several questions related to your issue: - What TinyOWS version do you use ? - What happen if you use QGIS as WMS/WFS client rather than OpenLayers ? - Could you activate TinyOWS log and check if there's any error message in it ? - Could you use Firebug with OpenLayers to check the TinyOWS output stream ? HTH, -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120202/dc523795/attachment.html ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 49, Issue 4 ********************************************** ------------------------------ Message: 3 Date: Fri, 3 Feb 2012 05:16:47 +0000 From: Rahkonen Jukka Subject: Re: [mapserver-users] Re: Can't get Tinyows WFS Layer to show in OpenLayer To: "mapserver-users at lists.osgeo.org" Message-ID: <84446DEF76453C439E9E97E438E13A63067193 at suutari.haapa.mmm.fi> Content-Type: text/plain; charset="us-ascii" Hi, Did you mention what version you were using? Perhaps it is version 0.9.0 which was indeed using keywords "prefix" and "server". Change into ns_prefix adn ns_uri was done last spring http://tinyows.org/trac/changeset/343 If that is the case I would recommend updating your TinyOWS to the current release canditate. -Jukka Rahkonen- ________________________________________ Wang, Ya wrote: > Hello All, > The problem got solved finally. It seems all I need to do is to add two more lines into my TinyOWS configuration. Maybe fixing the PythonPath helped as well. But this change is what really makes a difference. Before (not working): After (working now): I was relieved of the frustration I have been suffering during the past two days. Thanks everyone. Ya ___________________________________________________________________________ Message: 5 Date: Thu, 2 Feb 2012 08:57:52 +0100 From: Olivier Courtin Subject: Re: [mapserver-users] Can't get Tinyows WFS Layer to show in OpenLayer To: "mapserver-users at lists.osgeo.org" Message-ID: Content-Type: text/plain; charset="windows-1252" On Wed, Feb 1, 2012 at 7:33 PM, Wang, Ya wrote: Hi, I am a newbie of mapserver and other online mapping technologies. > Recently, I have been struggling to load a TinyOWS WFS Layer to an > OpenLayers map. I set up proxy.cgi, which works fine. I checked TinyOWS > using command ?tinyows ?check?, which also seems to be working. The page > http://.../cgi-bin/tinyows.exe?service=wfs&request=getCapabilities&version=1.1.0&typename=tows:lrtstopsdoesn?t return any error either. I can also load a mapserver WMS layer > into the OpenLayers Map with no problem. However, no feature from the WFS > layer would show in the OpenLayers map. Since both the WMS and WFS layers > are of the same projection, which is EPSG:2227, I assume that the > misspecification of projection is not likely to be the caprice here. The > following is the JavaScript I used and the response returned. Could someone > help me find out what I did wrong? Many thanks in advance! > > ** > > ** > Several questions related to your issue: - What TinyOWS version do you use ? - What happen if you use QGIS as WMS/WFS client rather than OpenLayers ? - Could you activate TinyOWS log and check if there's any error message in it ? - Could you use Firebug with OpenLayers to check the TinyOWS output stream ? HTH, -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120202/dc523795/attachment.html ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 49, Issue 4 ********************************************** _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ Message: 4 Date: Fri, 3 Feb 2012 09:16:43 +0100 From: Dejan Gambin Subject: [mapserver-users] Using WFS gml_[item name]_alias To: mapserver-users at lists.osgeo.org Message-ID: Content-Type: text/plain; charset="us-ascii" Hi, I am trying to use gml_[item name]_alias for renaming my columns in wfs GetFeature request with gml output. Everything works fine except I can't use some characters like whitespace for example, because it is not a valid xml element. My question is - is there any way to name my attribute like "my attribute" through WFS GetFeature request? Btw, I am presenting the result in a html table, so would be useful, for example, to be able to handle this and other stuff like type for example (integer, string, ..) through the mapfile. And maybe to use this on the client to align data in a table (numbers right, string left, etc.) Thanks very much on any useful info regards, dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120203/5ce981ff/attachment-0001.html ------------------------------ Message: 5 Date: Fri, 3 Feb 2012 09:33:15 +0100 From: thomas bonfort Subject: Re: [mapserver-users] PostGIS Connection String - Thread Issue? To: Trent Pingenot Cc: mapserver-users at lists.osgeo.org Message-ID: Content-Type: text/plain; charset=UTF-8 There were some changes to string quoting/escaping in version 6 (I think). Are the errors you are seeing intermittent, or is it reproducible consistently on all requests? What happens if you use CONNECTION "dbname=interlocken user=interlocken ..." instead of CONNECTION "dbname='interlocken' user='interlocken' ..." -- thomas On Thu, Feb 2, 2012 at 23:00, Trent Pingenot wrote: > Hi list, > > We recently upgraded from MapServer 5.x to 6.0.1 on Linux.?? We have 21 sites > running all running smoothly with identical configurations off this server. > On one site the MapServer connection to Postgres/PostGIS fails on all > layers.?? The MS debug message is as follows > > [Thu Feb 2 14:41:04 2012].823297 msPostGISLayerOpen(): Query error. > Database connection failed (FATAL: no pg_hba.conf entry for host "[local]", > user "interlocken", database "nterlocNken", SSL off > ) with connect string 'dbname='nterlocNken' user='interlocken' > password=*******************' > > And the entry in the map file > > CONNECTIONTYPE postgis > PROCESSING "CLOSE_CONNECTION=DEFER" > CONNECTION "dbname='interlocken' user='interlocken' > password='**************'" > DATA 'the_geom FROM "ext_lighting_existing_point" USING UNIQUE gid USING > srid=4326' > > I can log into psql on the server as the interlocken user and hit the DB > just fine so it's not the pg_hba.conf file settings which are set that the > db username and db name must match.?? My question is why > does the dbname get corrupted to nterlocNken? Is this a bug or how mapserver > should present the connection items in a debug statement??? I can use our old > copy 5.4 copy of mapserver and it runs the map file fine.?? One difference in > this build is that we don't have the --with-threads support. We are looking > at getting the build rebuilt with this thread locking option included. > Could threading be the problem? I'm not sure how/if threading might be > related but thought I would mention it. > > I've stripped out all layers from the mapfile except a single test layer. > I've got 60+ layers running in other map files and databases with identical > setups?? on the same server without problems, why this one??? We even tried > wiping out the DB and associated user and reloading and still the same > problem. > > Thanks in advance for any help or tips you can provide. > > Thanks, > > Trent > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ------------------------------ Message: 6 Date: Fri, 3 Feb 2012 09:45:49 +0100 From: Dejan Gambin Subject: [mapserver-users] Legend size problem in GetLegendGraphic request To: mapserver-users at lists.osgeo.org Message-ID: <85D8CB63-16B6-43C4-B97D-AC145D8589F0 at coin.hr> Content-Type: text/plain; charset=us-ascii Hi, I have point shapefile and trying to show the points as big circles on the map. So I am using something like: ... SIZEUNITS kilometers CLASS Name "myname" SIZE 10 ... END ... Everything is show ok on the map but the symbol in the legend is very big, and exceeds the symbol key box very much, although KEYSIZE is set to 25 18. Btw, I am using WMS GetLegendGraphic request for getting the legend Thanks very much regards, dejan ------------------------------ Message: 7 Date: Fri, 3 Feb 2012 09:23:35 +0000 From: Rahkonen Jukka Subject: [mapserver-users] WFS GetCapabilities does not work with non-ascii characters in mapfile To: "'mapserver-users at lists.osgeo.org'" Message-ID: <84446DEF76453C439E9E97E438E13A63067246 at suutari.haapa.mmm.fi> Content-Type: text/plain; charset="iso-8859-1" Hi, This should be simple to test and verify. Write into WEB METADATA parameters "wms_title" "test_?" "wfs_title" "test_?" WMS 1.1.1 GetGapabilities does not have any trouble with "?" and request sends back ... OGC:WMS test_? .... However, WFS GetCapabilities response gets truncated. All that Mapserver sends is this test_ The same error occurs if non-ascii characters are used in "wfs_abstract". I was testing on Windows and Mapserver 6.0.1. -Jukka Rahkonen -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120203/0ca913c5/attachment.html ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 49, Issue 7 ********************************************** From Jukka.Rahkonen at mmmtike.fi Fri Feb 3 11:26:37 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 3 Feb 2012 19:26:37 +0000 Subject: [mapserver-users] Run time substitution - Like instead of = In-Reply-To: <1328286648904-4362317.post@n6.nabble.com> References: <1328286648904-4362317.post@n6.nabble.com> Message-ID: <84446DEF76453C439E9E97E438E13A63067589@suutari.haapa.mmm.fi> Hi, Perhaps someone can tell if you could use the default value to "NOT something_very_off", which would then select everything for you. -Jukka Rahkonen- ________________________________________ tellett wrote: > Hi All, > I'm using runtime substitution to replace the value of an expression and thats working fine, however, if I don't set the expression value in the url, I want the layer to show all the records. For example my class looks likes this: CLASS NAME 'FKB-A' EXPRESSION '%pn%' STYLE COLOR 254 150 254 OUTLINECOLOR 1 1 1 END END and when I use this request: .....REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&LAYERS=fkb_prosjektstandard&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:4326&BBOX=58.9930983171506,9.40049150322111,59.8470137571506,10.904184647298&WIDTH=1650&HEIGHT=937&pn=LACHVE11 I get back 1 record which is correct. However, if I drop the &pn=LACHVE11 of course I get no results back. Is there any way of changing this so that I can get all the records of the table returned? I thought about using the 'default_pn' option in the metadata and using wildcards but as this is an '=' expression rather than a 'LIKE' expression wildcards are useless. Maybe its just because its friday afternoon, but I just can't see a way of doing this, help!!! Best Regards Tom -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Run-time-substitution-Like-instead-of-tp4362317p4362317.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 pcreso at pcreso.com Fri Feb 3 11:58:02 2012 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 3 Feb 2012 11:58:02 -0800 (PST) Subject: [mapserver-users] Mapfile Generators In-Reply-To: <4FDD345A70B42F479A0B3329E101EC659E73A2A6A0@mx-02.ijuscol.com> Message-ID: <1328299082.76849.YahooMailClassic@web160701.mail.bf1.yahoo.com> Hi Paul, QGIS has such a tool, I'm not sure about Arc. You should be able to handcraft a generic mapfile as a template you can re-use as required. I had a use case some time ago for this sort of thing & used a Linux shell script to make the text substitutions in such a template from reading a spreadsheet containing the mapfile parameters required for each individual shapefile. These days I tend to manage data in Postgis, & use a filter or mapserver's variable substitution to manage such situations. Using a single mapfile with cgi wrappers to re-use it in this way for different datasets works better for me than maintaining lots of separate mapfiles. In a couple of situations where this is not flexible enough, having a cgi actually contain the mapfile text, so it writes the customised mapfile, then invokes it, also works for me. Cheers, ?? ?? Brent Wood --- On Sat, 2/4/12, Paul Maddock wrote: From: Paul Maddock Subject: [mapserver-users] Mapfile Generators To: "mapserver-users at lists.osgeo.org" Date: Saturday, February 4, 2012, 2:49 AM Hi all, ?Are there any extensions of ArcView 10 which I can export .shp files into mapfiles or possibly any other open source mapfile generators?? It seems time consuming to manually create these map files if I have a large collection of shapefiles. ?Many thanks,Paul -----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 osgeo.mailinglist at gmail.com Sat Feb 4 05:57:26 2012 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Sat, 4 Feb 2012 14:57:26 +0100 Subject: [mapserver-users] Mapfile Generators In-Reply-To: <1328299082.76849.YahooMailClassic@web160701.mail.bf1.yahoo.com> References: <4FDD345A70B42F479A0B3329E101EC659E73A2A6A0@mx-02.ijuscol.com> <1328299082.76849.YahooMailClassic@web160701.mail.bf1.yahoo.com> Message-ID: Hello I never need to play with arc but look at http://www.mxd2map.org/ It may help you and it's opensource. Regards ThomasG -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmypost at yandex.ru Sun Feb 5 13:11:25 2012 From: mmypost at yandex.ru (mmypost mmypost) Date: Mon, 06 Feb 2012 01:11:25 +0400 Subject: [mapserver-users] complex symbol Message-ID: <743301328476285@web130.yandex.ru> Hi! Sorry for my bad English. Can I to create mapserver complex line symbols like attachments? "Offset" and "Angle" to help create the lines for small part line without frequent turnings. Mapserver version is 5.6.6. Yours sincerely, Sev -------------- next part -------------- A non-text attachment was scrubbed... Name: arbitrary_symbol.png Type: application/octet-stream Size: 3105 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: triangle.png Type: application/octet-stream Size: 2531 bytes Desc: not available URL: From matt at wildwalks.com Sun Feb 5 14:54:11 2012 From: matt at wildwalks.com (Matt McClelland) Date: Mon, 6 Feb 2012 09:54:11 +1100 Subject: [mapserver-users] complex symbol In-Reply-To: <743301328476285@web130.yandex.ru> References: <743301328476285@web130.yandex.ru> Message-ID: Hi Sev Yes you can. If you can get a handle on this page http://mapserver.org/mapfile/symbology/construction.html You can do some pretty amazing things. Here is what I did for cliffs This example puts the detail to the right of the line, you can change it to move it to the left side. CLASS EXPRESSION 'cliff' STYLE COLOR "#868f72" WIDTH 2 END # STYLE STYLE COLOR "#868f72" SYMBOL "cliff" SIZE 20.0 WIDTH 1 #ANGLE 25 GAP -20 END # STYLE END SYMBOL ## triangle option NAME "cliff" TYPE vector FILLED true POINTS 0 5 3 10 6 5 0 5 END # POINTS END # SYMBOL SYMBOL ## line option (a little different from your, but you can do it still) NAME "cliff" TYPE vector FILLED true POINTS 0 5 0 10 END # POINTS END # SYMBOL Hope that helps Matt :) On Mon, Feb 6, 2012 at 8:11 AM, mmypost mmypost wrote: > Hi! > > Sorry for my bad English. > Can I to create mapserver complex line symbols like attachments? > "Offset" and "Angle" to help create the lines for small part line without > frequent turnings. > Mapserver version is 5.6.6. > > > Yours sincerely, > Sev > > _______________________________________________ > 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 astrid.emde at wheregroup.com Mon Feb 6 04:34:05 2012 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Mon, 06 Feb 2012 13:34:05 +0100 Subject: [mapserver-users] =?utf-8?q?FOSSGIS_Konferenz_2012_in_Dessau_vom?= =?utf-8?q?_20=2E_bis_22=2E_M=C3=A4rz_2012_-_Anmeldung_er=C3=B6ffnet?= Message-ID: <4F2FC8BD.50404@wheregroup.com> Sehr geehrte Damen und Herren, Neuigkeiten und Hintergr?nde zu Technologien des Geo-Webs / GIS-Applikationen mit Freier Software und Freien Daten werden dieses Jahr auf der FOSSGIS 2012 pr?sentiert. Die FOSSGIS und deutschsprachige Open Street Map Konferenz 2012 ? die gr??te deutschsprachige Anwenderkonferenz f?r Freie Geo-Informationssysteme und freie Geodaten ? findet vom 20. bis 22. M?rz 2012 an der Hochschule Anhalt in Dessau-Ro?lau statt. Der Themenbogen spannt sich von der Datenaufbereitung in OpenStreetMap ?ber Geodateninfrastrukturen bishin zu Technologien zur Prozessierung von umfangreichen Geodaten und spiegelt damit den Trend der steigenden Durchdringung des Internets mit Karten und Geodaten wider. In mehr als 60 Vortr?gen f?r Einsteiger und Experten, Hands-On Workshops und Anwendertreffen erhalten die Besucher Einblick in aktuelle Anwendungsm?glichkeiten und Neuigkeiten von Softwareprojekten, die derartige Anwendungen erm?glichen. ?ber die gleichzeitig stattfindende Firmenausstellung ist ein direkter Kontakt zu Dienstleistern, die professionelle Unterst?tzung bieten, m?glich. Zus?tzlich zum fachlich orientieren Austausch in Community-Sessions und Entwicklertreffen findet ein Social-Event statt, um den Austausch aller Beteiligten - vom Benutzer ?ber Entwickler und Mapper bis zum Entscheider - zu intensivieren, um gegenseitig von Ideen und Herausforderungen zu lernen. Die Konferenzgeb?hr betr?gt f?r die gesamten drei Konferenztage 120,- ?. Auch in diesem Jahr k?nnen wieder zahlreiche Workshops besucht werden f?r die eine Teilnahmegeb?hr von 100,- ? je Teilnehmer und Workshop erhoben wird. Workshop-Teilnehmer erhalten eine Teilnahmebest?tigung f?r die besuchten Workshops. Die Einnahmen gehen wie auch in den Jahren zuvor vollst?ndig in die Finanzierung der Konferenz ein. Da mehr als 400 Teilnehmende erwartet werden, ist eine Registrierung bis zum 16. M?rz 2012 notwendig. Das Anmeldeformular und andere organisatorische Informationen befinden sich auf der Konferenzseite http://www.fossgis.de/konferenz/2012/. Die FOSSGIS Konferenz 2012 wird vom gemeinn?tzigen Verein FOSSGIS e.V, der deutschen OpenStreetMap Community und der Open Source Geospatial Foundation (OSGeo) in Zusammenarbeit mit der Hochschule Anhalt in Dessau durchgef?hrt. Weitere Informationen: Zur Konferenz: http://www.fossgis.de/konferenz/2012/ Zu den Veranstaltern: FOSSGIS e.V. http://www.fossgis.de OSGeo Foundation http://www.osgeo.org/switchuilocale/de?destination=home Deutschsprachige OSM Community http://www.openstreetmap.de Hochschule Anhalt in Dessau http://www.hs-anhalt.de/ From dejan.gambin at coin.hr Mon Feb 6 07:36:47 2012 From: dejan.gambin at coin.hr (Dejan Gambin) Date: Mon, 6 Feb 2012 16:36:47 +0100 Subject: [mapserver-users] Legend size problem in GetLegendGraphic request In-Reply-To: <85D8CB63-16B6-43C4-B97D-AC145D8589F0@coin.hr> References: <85D8CB63-16B6-43C4-B97D-AC145D8589F0@coin.hr> Message-ID: <88F212FE-6977-4F46-9BF9-BBC30FFC0B2D@coin.hr> Does someone know if this is some kind of a bug or it is supposed to be so? Should the legend symbol box size really depend on sizeunits? Or should I report it as a bug? thx, dejan On 3. vel. 2012., at 09:45, Dejan Gambin wrote: > Hi, > > I have point shapefile and trying to show the points as big circles on the map. So I am using something like: > > ... > SIZEUNITS kilometers > CLASS > Name "myname" > SIZE 10 > ... > END > ... > > Everything is show ok on the map but the symbol in the legend is very big, and exceeds the symbol key box very much, although KEYSIZE is set to 25 18. > > Btw, I am using WMS GetLegendGraphic request for getting the legend > > Thanks very much > > regards, dejan_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From qc_mad at hotmail.com Mon Feb 6 08:18:19 2012 From: qc_mad at hotmail.com (maddqc) Date: Mon, 6 Feb 2012 08:18:19 -0800 (PST) Subject: [mapserver-users] Re: Multi-line labels In-Reply-To: <84446DEF76453C439E9E97E438E13A63066F8E@suutari.haapa.mmm.fi> References: <1328193185844-4359187.post@n6.nabble.com> <84446DEF76453C439E9E97E438E13A63066F8E@suutari.haapa.mmm.fi> Message-ID: <1328545099150-4369802.post@n6.nabble.com> Ok, to be more specific, when I comment the line " LABELITEM 'IDENT' " in my mapfile, I can see my layer of point. But when I uncomment the same line, I get a pink screen of death. Why????? By the way, I'm using GeoMOOSE, but I don't know if the problem come from this app. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Multi-line-labels-tp4359187p4369802.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Paul.Maddock at ijus.net Mon Feb 6 14:41:09 2012 From: Paul.Maddock at ijus.net (Paul Maddock) Date: Mon, 6 Feb 2012 17:41:09 -0500 Subject: [mapserver-users] Compiling Mapserver Message-ID: <4FDD345A70B42F479A0B3329E101EC659E73C04B79@mx-02.ijuscol.com> Hi all, When using the command ./configure for setting up mapserver-6.0.1 bash kicks out: checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. I've run... sudo apt-get install build-essential sudo apt-get install g++ sudo apt-get install libc6-dev ...and still no dice. Any suggestions? Many Thanks, Paul Maddock -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Mon Feb 6 14:56:27 2012 From: aboudreault at mapgears.com (Alan Boudreault) Date: Mon, 06 Feb 2012 17:56:27 -0500 Subject: [mapserver-users] Compiling Mapserver In-Reply-To: <4FDD345A70B42F479A0B3329E101EC659E73C04B79@mx-02.ijuscol.com> References: <4FDD345A70B42F479A0B3329E101EC659E73C04B79@mx-02.ijuscol.com> Message-ID: <4F305A9B.1070003@mapgears.com> Have you checked the config.log file? On 12-02-06 05:41 PM, Paul Maddock wrote: > Hi all, > > When using the command ./configure for setting up mapserver-6.0.1 bash > kicks out: > > checking for gcc... gcc > > checking for C compiler default output file name... configure: error: C > compiler cannot create executables > > See `config.log' for more details. > > I?ve run? > > sudo apt-get install build-essential > > sudo apt-get install g++ > > sudo apt-get install libc6-dev > > ?and still no dice. > > Any suggestions? > > Many Thanks, > > Paul Maddock > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ From admin at michiganwxsystem.com Mon Feb 6 16:27:38 2012 From: admin at michiganwxsystem.com (Jeff Lake) Date: Mon, 06 Feb 2012 19:27:38 -0500 Subject: [mapserver-users] Compiling Mapserver In-Reply-To: <4FDD345A70B42F479A0B3329E101EC659E73C04B79@mx-02.ijuscol.com> References: <4FDD345A70B42F479A0B3329E101EC659E73C04B79@mx-02.ijuscol.com> Message-ID: <4F306FFA.4060107@michiganwxsystem.com> um how about gcc thats what its checking for .. and you evidently haven't installed -Jeff Lake MichiganWxSystem.com WeatherMichigan.net TheWeatherCenter.net GRLevelXStuff.com On 2/6/2012 5:41 PM, Paul Maddock wrote: > > Hi all, > > When using the command ./configure for setting up mapserver-6.0.1 bash > kicks out: > > checking for gcc... gcc > > checking for C compiler default output file name... configure: error: > C compiler cannot create executables > > See `config.log' for more details. > > I've run... > > sudo apt-get install build-essential > > sudo apt-get install g++ > > sudo apt-get install libc6-dev > > ...and still no dice. > > Any suggestions? > > Many Thanks, > > Paul Maddock > > > > _______________________________________________ > 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 Laurent.Saez at developpement-durable.gouv.fr Mon Feb 6 23:40:53 2012 From: Laurent.Saez at developpement-durable.gouv.fr (SAEZ Laurent - SG/SPSSI/CPII/DOM/ETER/PNE IG) Date: Tue, 07 Feb 2012 08:40:53 +0100 Subject: [mapserver-users] Is it possible to label the start and end of a line in MapServer? Message-ID: <4F30D585.3010303@developpement-durable.gouv.fr> Hi, I have a line layer representing streets. I have two attributes that represent the address number of start and end of the street. I would like to put these numbers as labels at the beginning and end of a section. I know this is possible with symbols (# http://mapserver.org/mapfile/symbology/construction.html tricks). Is there a similar solution for labels? NB: I work with MapServer 6.1-dev. Thank you in advance From Paul.Maddock at ijus.net Tue Feb 7 05:16:13 2012 From: Paul.Maddock at ijus.net (paulmaddock) Date: Tue, 7 Feb 2012 05:16:13 -0800 (PST) Subject: [mapserver-users] Re: Compiling Mapserver In-Reply-To: <4F306FFA.4060107@michiganwxsystem.com> References: <4FDD345A70B42F479A0B3329E101EC659E73C04B79@mx-02.ijuscol.com> <4F306FFA.4060107@michiganwxsystem.com> Message-ID: <1328620573094-4372461.post@n6.nabble.com> I also ran... sudo apt-get install gcc ... and according to apt-get the newest version is already installed. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Compiling-Mapserver-tp4370929p4372461.html Sent from the Mapserver - User mailing list archive at Nabble.com. From marcandre_trottier at hotmail.com Tue Feb 7 06:17:48 2012 From: marcandre_trottier at hotmail.com (marcandre_trottier at hotmail.com) Date: Tue, 7 Feb 2012 06:17:48 -0800 (PST) Subject: RE [mapserver-users] variable in tag NAME of a CLASS In-Reply-To: References: Message-ID: <1328624268014-4372638.post@n6.nabble.com> i'm using mapserver 6.1. i'm using a timeline and the legend must change each year but don't want to write all 5 class from 1997 to 2011. with a variable i could have only 5 class in my mapfile and when i will insert 2012's data, it will work automatically what's your idea ? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/variable-in-tag-NAME-of-a-CLASS-tp4342830p4372638.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jtaranu at firstbasesolutions.com Tue Feb 7 08:55:48 2012 From: jtaranu at firstbasesolutions.com (John Taranu) Date: Tue, 7 Feb 2012 11:55:48 -0500 Subject: [mapserver-users] MapCache: returning blank tiles when outside restricted extents? Message-ID: <027801cce5b9$57a540a0$06efc1e0$@firstbasesolutions.com> We're having some problems with MapCache with a fully-seeded cache covering a small geographic extent. If the tileset definition doesn't have a restricted_extent, then any requests outside the cache extents are supposed to return blank tiles, and those blank tiles are being saved to the cache directory structure as symlinks. I want to avoid that, for two reasons: 1. There will be lots of requests outside the cache extent, and I want to avoid creating hundreds of thousands of symlinks (and empty directories) 2. The cache was originally seeded as user "root", but the MapCache web service runs as another user (either "apache" or the nginx user), and that user cannot write to the cache directory. If instead I set the grid (inside the tileset definition) to have a restricted_extent, then any requests outside the cache extents throw an error. Is there some way force MapCache to return a blank tile for requests outside the restricted_extent, without saving that tile into the cache? --------------------------------------- John Taranu Senior Web Developer First Base Solutions Inc email: jtaranu at firstbasesolutions.com web: firstbasesolutions.com From thomas.bonfort at gmail.com Tue Feb 7 10:04:32 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 7 Feb 2012 10:04:32 -0800 Subject: [mapserver-users] MapCache: returning blank tiles when outside restricted extents? In-Reply-To: <027801cce5b9$57a540a0$06efc1e0$@firstbasesolutions.com> References: <027801cce5b9$57a540a0$06efc1e0$@firstbasesolutions.com> Message-ID: If your does not contain a element, then it is considered read only and the caches will never be updated. In that sense you would have a slightly different mapcache.xml file for your seeder than for your webserver. As for returning blank tiles, you have the directive that does that (set it to empty_img) -- thomas On Tue, Feb 7, 2012 at 08:55, John Taranu wrote: > We're having some problems with MapCache with a fully-seeded cache covering > a small geographic extent. > > If the tileset definition doesn't have a restricted_extent, then any > requests outside the cache extents are supposed to return blank tiles, and > those blank tiles are being saved to the cache directory structure as > symlinks. ?I want to avoid that, for two reasons: > ? 1. There will be lots of requests outside the cache extent, and I want to > avoid creating hundreds of thousands of symlinks (and empty directories) > ? 2. The cache was originally seeded as user "root", but the MapCache web > service runs as another user (either "apache" or the nginx user), and that > user cannot write to the cache directory. > > If instead I set the grid (inside the tileset definition) to have a > restricted_extent, ?then any requests outside the cache extents throw an > error. > > Is there some way force MapCache to return a blank tile for requests outside > the restricted_extent, without saving that tile into the cache? > > --------------------------------------- > John Taranu > Senior Web Developer > First Base Solutions Inc > email: jtaranu at firstbasesolutions.com > web: firstbasesolutions.com > > > > _______________________________________________ > 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 Feb 7 10:28:53 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 7 Feb 2012 13:28:53 -0500 Subject: [mapserver-users] Problem with mapfile path in MS 6.0.1 Message-ID: <4EFF8BB964547748A07CA32961810C041CF28E29@SOM-TEAQASMAIL1.som.w2k.state.me.us> I'm trying to migrate an application from 5.6 to 6.0.1. The basic HTML loads correctly, but it is having trouble finding the path to the mapfile. Here are two lines of code specifying the map path and file: $_SESSION['map_path']="/ms4w_303/apps/mgs/maps/"; $_SESSION['map_file']="ipmapp1_local_enhanced.map"; And when I try to load the app, here is the error: Warning: mapObj::__construct(): [MapServer Error]: msProcessProjection(): No such file or directory in C:\ms4w_303\apps\mgs\htdocs\drawMap.php on line 219 Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file /ms4w_303/apps/mgs/maps/ipmapp1_local_enhanced.map' in C:\ms4w_303\apps\mgs\htdocs\drawMap.php:219 Stack trace: #0 C:\ms4w_303\apps\mgs\htdocs\drawMap.php(219): mapObj->__construct('/ms4w_303/apps/...') #1 {main} thrown in C:\ms4w_303\apps\mgs\htdocs\drawMap.php on line 219 I triple-checked the path and I know this to be correct. The application had the same file and path structure in 5.6. I'm checking permissions but as far as I can tell these are OK. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Feb 7 13:05:20 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 7 Feb 2012 21:05:20 +0000 Subject: [mapserver-users] Re: Multi-line labels In-Reply-To: <1328545099150-4369802.post@n6.nabble.com> References: <1328193185844-4359187.post@n6.nabble.com> <84446DEF76453C439E9E97E438E13A63066F8E@suutari.haapa.mmm.fi> <1328545099150-4369802.post@n6.nabble.com> Message-ID: Can you call the tile image from outside of the client? You might just be able to right click on the busted image and open it in its own window. In Firefox under "Tools->Page Info" you can also get access to the underlying image call. That will allow you to get at the underlying error message and you can debug from there. Either the attribute 'ident' doesn't exist in the layer or something dies further down the labeling pipeline (missing font?). If you comment out the labelitem and set class TEXT (e.g. TEXT 'testing') do you get the same error? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of maddqc Sent: Monday, February 06, 2012 10:18 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: Multi-line labels Ok, to be more specific, when I comment the line " LABELITEM 'IDENT' " in my mapfile, I can see my layer of point. But when I uncomment the same line, I get a pink screen of death. Why????? By the way, I'm using GeoMOOSE, but I don't know if the problem come from this app. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Multi-line-labels-tp4359187p4369802.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Tue Feb 7 13:11:57 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 7 Feb 2012 21:11:57 +0000 Subject: [mapserver-users] Legend size problem in GetLegendGraphic request In-Reply-To: <88F212FE-6977-4F46-9BF9-BBC30FFC0B2D@coin.hr> References: <85D8CB63-16B6-43C4-B97D-AC145D8589F0@coin.hr> <88F212FE-6977-4F46-9BF9-BBC30FFC0B2D@coin.hr> Message-ID: I'd call this a bug. Question is what size to use if sizeunits are specified. I don't have a good suggestion for that, anyone? One idea for an immediate workaround would be to create an image ahead of time and use KEYIMAGE to reference it instead. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dejan Gambin Sent: Monday, February 06, 2012 9:37 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Legend size problem in GetLegendGraphic request Does someone know if this is some kind of a bug or it is supposed to be so? Should the legend symbol box size really depend on sizeunits? Or should I report it as a bug? thx, dejan On 3. vel. 2012., at 09:45, Dejan Gambin wrote: > Hi, > > I have point shapefile and trying to show the points as big circles on the map. So I am using something like: > > ... > SIZEUNITS kilometers > CLASS > Name "myname" > SIZE 10 > ... > END > ... > > Everything is show ok on the map but the symbol in the legend is very big, and exceeds the symbol key box very much, although KEYSIZE is set to 25 18. > > Btw, I am using WMS GetLegendGraphic request for getting the legend > > Thanks very much > > regards, dejan_______________________________________________ > 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 john.callahan at udel.edu Tue Feb 7 13:41:54 2012 From: john.callahan at udel.edu (John Callahan) Date: Tue, 7 Feb 2012 16:41:54 -0500 Subject: [mapserver-users] mapcache In-Reply-To: References: Message-ID: Thanks for the help but I think I'm misunderstanding mapcache at a more basic level. What is the mapcachealias? In the apache httpd.conf file (using the latest MS4W), there is MapCacheAlias /mapcache "C:/ms4w/apps/mapcache/mapcache.xml" How does that relate to my own mapservices? What changes do I need to make to have them cached? My mapservices typically look like http://servername/myservice?LAYERS=layer1,layer2,...&REQUEST=GetMap&SERVICE=WMS&.. .. Something else that seems strange is when looking at the demo ( http://servername/mapcache/dem/wms), it makes available additional layers based on entries in the current mapcache.xml file. When I try to select my own service through the demo interface, I see that it makes a GetMap request with LAYERS = tileset name. Does the name I define for the tileset in mapcache.xml have to be specific to my map service? or any special requirements? Thanks for your help. - John On Wed, Feb 1, 2012 at 6:56 AM, thomas bonfort wrote: > On Thu, Jan 26, 2012 at 19:30, John Callahan > wrote: > > I'm giving mapcache a try but with no luck. Well, some luck. The module > > loads fine and the demo (vmap0, http://127.0.0.1/mapcache/demo/wms) also > > works fine. I see the tiles being generated on disk. Great. However, > the > > problem comes in with my own data/services. A few questions may help me > > determine the problem. > > > > - in the source element, how do you define multiple layers? Comma > separated > > or separate entries? > > layer1,layer2 > > > > > - in the tileset element, can you have multiple grid entries? It doesn't > > seem like it from reading the documentation but the sample tileset shows > > both the "g" and "WGS84" grids. > which doc part does not show this? > http://www.mapserver.org/trunk/mapcache/config.html#tileset > > > > > - for cache type attributes, what are the possible values? The docs show > > several possibilities (disk, sqllite, memcache) but the sample shows > > type="tiff" which is not listed on the doc page. Can other file > extensions > > be used here? > http://www.mapserver.org/trunk/mapcache/caches.html > > > > > - when I define a FORMAT with name and type, how does that get used? I > see > > that is called in the tileset but how does that relate to the image type > > under getmap/params/format? > > The format is used when recompressing individual tiles after having > cut a larger metatile. It is also used when combining multiple tiles > into a single image for a getmap request. If you want to force a > specific format to be sent to the source wms server when creating a > tile, you can add a foobar to your source definition > (at the same level as the parameter). Both formats don't have > to be equivalent, it is actually a good idea to request the images in > png from the source wms server even when using a jpeg format for the > the tileset, as this will avoid a double jpeg compression (once on the > wms server, once on the mapcache server) when storing an individual > tile to the caches. > > regards, > thomas > > > > > > > The doc page I am referring to is > > at http://www.mapserver.org/trunk/mapcache/config.html. I'm sure I'll > have > > other questions as I work my way through. Thanks for this awesome > addition > > to Mapserver! > > > > - John > > > > *********************************************** > > John Callahan, Research Scientist > > Delaware Geological Survey, University of Delaware > > URL: http://www.dgs.udel.edu > > ************************************************* > > > > > > _______________________________________________ > > 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 Bob.Bistrais at maine.gov Tue Feb 7 13:43:42 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 7 Feb 2012 16:43:42 -0500 Subject: [mapserver-users] Problem with mapfile path in MS 6.0.1 In-Reply-To: <4EFF8BB964547748A07CA32961810C041CF28E29@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041CF28E29@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041CF28FFA@SOM-TEAQASMAIL1.som.w2k.state.me.us> Never mind- worked it out with a string of edits. Part of it was changing "new mapObject" to "ms_newMapObject". ________________________________ From: Bistrais, Bob Sent: Tuesday, February 07, 2012 1:29 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Problem with mapfile path in MS 6.0.1 I'm trying to migrate an application from 5.6 to 6.0.1. The basic HTML loads correctly, but it is having trouble finding the path to the mapfile. Here are two lines of code specifying the map path and file: $_SESSION['map_path']="/ms4w_303/apps/mgs/maps/"; $_SESSION['map_file']="ipmapp1_local_enhanced.map"; And when I try to load the app, here is the error: Warning: mapObj::__construct(): [MapServer Error]: msProcessProjection(): No such file or directory in C:\ms4w_303\apps\mgs\htdocs\drawMap.php on line 219 Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file /ms4w_303/apps/mgs/maps/ipmapp1_local_enhanced.map' in C:\ms4w_303\apps\mgs\htdocs\drawMap.php:219 Stack trace: #0 C:\ms4w_303\apps\mgs\htdocs\drawMap.php(219): mapObj->__construct('/ms4w_303/apps/...') #1 {main} thrown in C:\ms4w_303\apps\mgs\htdocs\drawMap.php on line 219 I triple-checked the path and I know this to be correct. The application had the same file and path structure in 5.6. I'm checking permissions but as far as I can tell these are OK. -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.callahan at udel.edu Tue Feb 7 13:44:39 2012 From: john.callahan at udel.edu (John Callahan) Date: Tue, 7 Feb 2012 16:44:39 -0500 Subject: [mapserver-users] mapcache In-Reply-To: References: Message-ID: Oops! Correction: My map services typically look like: (forgot the cgi-bin path) http://servername/fcgi-bin/myservice?LAYERS=layer1,layer2,...&REQUEST=GetMap&SERVICE=WMS&.. .. - John On Tue, Feb 7, 2012 at 4:41 PM, John Callahan wrote: > Thanks for the help but I think I'm misunderstanding mapcache at a more > basic level. > > What is the mapcachealias? In the apache httpd.conf file (using the > latest MS4W), there is > > MapCacheAlias /mapcache "C:/ms4w/apps/mapcache/mapcache.xml" > > How does that relate to my own mapservices? What changes do I need to > make to have them cached? My mapservices typically look like > > > http://servername/myservice?LAYERS=layer1,layer2,...&REQUEST=GetMap&SERVICE=WMS&.. > .. > > > Something else that seems strange is when looking at the demo ( > http://servername/mapcache/dem/wms), it makes available additional layers > based on entries in the current mapcache.xml file. When I try to select my > own service through the demo interface, I see that it makes a GetMap > request with LAYERS = tileset name. Does the name I define for the tileset > in mapcache.xml have to be specific to my map service? or any special > requirements? > > Thanks for your help. > > - John > > > > > > On Wed, Feb 1, 2012 at 6:56 AM, thomas bonfort wrote: > >> On Thu, Jan 26, 2012 at 19:30, John Callahan >> wrote: >> > I'm giving mapcache a try but with no luck. Well, some luck. The >> module >> > loads fine and the demo (vmap0, http://127.0.0.1/mapcache/demo/wms) >> also >> > works fine. I see the tiles being generated on disk. Great. However, >> the >> > problem comes in with my own data/services. A few questions may help me >> > determine the problem. >> > >> > - in the source element, how do you define multiple layers? Comma >> separated >> > or separate entries? >> >> layer1,layer2 >> >> > >> > - in the tileset element, can you have multiple grid entries? It >> doesn't >> > seem like it from reading the documentation but the sample tileset shows >> > both the "g" and "WGS84" grids. >> which doc part does not show this? >> http://www.mapserver.org/trunk/mapcache/config.html#tileset >> >> > >> > - for cache type attributes, what are the possible values? The docs >> show >> > several possibilities (disk, sqllite, memcache) but the sample shows >> > type="tiff" which is not listed on the doc page. Can other file >> extensions >> > be used here? >> http://www.mapserver.org/trunk/mapcache/caches.html >> >> > >> > - when I define a FORMAT with name and type, how does that get used? I >> see >> > that is called in the tileset but how does that relate to the image type >> > under getmap/params/format? >> >> The format is used when recompressing individual tiles after having >> cut a larger metatile. It is also used when combining multiple tiles >> into a single image for a getmap request. If you want to force a >> specific format to be sent to the source wms server when creating a >> tile, you can add a foobar to your source definition >> (at the same level as the parameter). Both formats don't have >> to be equivalent, it is actually a good idea to request the images in >> png from the source wms server even when using a jpeg format for the >> the tileset, as this will avoid a double jpeg compression (once on the >> wms server, once on the mapcache server) when storing an individual >> tile to the caches. >> >> regards, >> thomas >> >> > >> > >> > The doc page I am referring to is >> > at http://www.mapserver.org/trunk/mapcache/config.html. I'm sure I'll >> have >> > other questions as I work my way through. Thanks for this awesome >> addition >> > to Mapserver! >> > >> > - John >> > >> > *********************************************** >> > John Callahan, Research Scientist >> > Delaware Geological Survey, University of Delaware >> > URL: http://www.dgs.udel.edu >> > ************************************************* >> > >> > >> > _______________________________________________ >> > 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 ebrahim.poorazizi at gmail.com Tue Feb 7 13:56:52 2012 From: ebrahim.poorazizi at gmail.com (Ebrahim Poorazizi) Date: Tue, 7 Feb 2012 14:56:52 -0700 Subject: [mapserver-users] MapServer SOS Configuration In-Reply-To: References: Message-ID: Hi, I tried to set up MapServer SOS but I faced a problem: the SOS doesn't return anything. You may see the map file I have created below: MAP NAME "SOS_DEMO" STATUS ON SIZE 400 300 EXTENT -180 -90 180 90 UNITS METERS SHAPEPATH "C:\ms4w\apps\tutorial\data" IMAGECOLOR 255 255 255 WEB IMAGEPATH "C:\ms4w\apps\tutorial\templates" IMAGEURL "C:\ms4w\apps\tutorial\images" METADATA "sos_onlineresource" " http://127.0.0.1:8282/cgi-bin/mapserv.exe?map=c:/ms4w/mysos.map?" "sos_title" "My SOS Demo Server" "sos_srs" "EPSG:4326" "sos_enable_request" "*" END END PROJECTION "init=epsg:4326" END LAYER NAME "sos_point" METADATA "sos_procedure" "ifgi-sensor-1" "sos_offering_id" "WQ1289" "sos_observedproperty_id" "Water Quality" "sos_describesensor_url" "http://127.0.0.1:8181/DescribeSensor.xml" END TYPE POINT STATUS ON DATA 'sospoint' PROJECTION "init=epsg:4326" END CLASS NAME 'sospoint' STYLE COLOR 255 128 128 END END END END As you see, I tried to retrieve sensor data from a shapefile. The message returned by the SOS is: Although I put 6 observations into the shapefile but the SOS doesn't return any. Would you please let me know what I should do to resolve the problem?! Regards, Ebrahim -------------- next part -------------- An HTML attachment was scrubbed... URL: From Paul.Maddock at ijus.net Wed Feb 8 10:41:27 2012 From: Paul.Maddock at ijus.net (paulmaddock) Date: Wed, 8 Feb 2012 10:41:27 -0800 (PST) Subject: [mapserver-users] Re: Compiling Mapserver In-Reply-To: <4F305A9B.1070003@mapgears.com> References: <4FDD345A70B42F479A0B3329E101EC659E73C04B79@mx-02.ijuscol.com> <4F305A9B.1070003@mapgears.com> Message-ID: <1328726487481-4376868.post@n6.nabble.com> >Have you checked the config.log file? ## --------- ## ## Platform. ## ## --------- ## hostname = MapServerTest uname -m = x86_64 uname -r = uname -s = Linux uname -v = #83-Ubuntu SMP Wed Jan 4 11:26:59 UTC 2012 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games ## ----------- ## ## Core tests. ## ## ----------- ## configure:2487: checking for gcc configure:2503: found /usr/bin/gcc configure:2514: result: gcc configure:2743: checking for C compiler version configure:2752: gcc --version >&5 gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2763: $? = 0 configure:2752: gcc -v >&5 Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) configure:2763: $? = 0 configure:2752: gcc -V >&5 gcc: '-V' option must have argument configure:2763: $? = 1 configure:2752: gcc -qversion >&5 gcc: unrecognized option '-qversion' gcc: no input files configure:2763: $? = 1 configure:2783: checking whether the C compiler works configure:2805: gcc conftest.c >&5 gcc: error trying to exec 'cc1': execvp: No such file or directory configure:2809: $? = 1 configure:2847: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2852: error: in `/usr/local/src/mapserver-6.0.1': configure:2856: error: C compiler cannot create executables See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_YACC_set= ac_cv_env_YACC_value= ac_cv_env_YFLAGS_set= ac_cv_env_YFLAGS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_prog_ac_ct_CC=gcc ## ----------------- ## ## Output variables. ## ## ----------------- ## AGG_INC='' AGG_LIB='' AGG_OBJ='' ALL_ENABLED='' ALL_INC='' ALL_LIB='' ALL_STATIC_LIB='' APACHE_INC='' CAIRO_ENABLED='' CAIRO_INC='' CAIRO_LIB='' CC='gcc' CFLAGS='' CPP='' CPPFLAGS='' CURL_INC='' CURL_LIB='' CXX='' CXXFLAGS='' C_PIC='' DEBUG_FLAGS='' DEFS='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' EXSLT_ENABLED='' EXSLT_INC='' EXSLT_LIB='' FASTCGI_ENABLED='' FASTCGI_INC='' FASTCGI_LIB='' FRIBIDI_CONFIG='' FRIBIDI_ENABLED='' FRIBIDI_INC='' FRIBIDI_LIB='' FTGL_ENABLED='' FTGL_INC='' FTGL_LIB='' FT_BIN='' FT_ENABLED='' FT_INC='' FT_LIB='' GDAL_CONFIG='' GDAL_ENABLED='' GDAL_INC='' GDAL_LIB='' GD_DEF='' GD_INC='' GD_LIB='' GD_STATIC='' GEOS_CONFIG='' GEOS_ENABLED='' GEOS_INC='' GEOS_LIB='' GIF_ENABLED='' GIF_INC='' GIF_LIB='' GREP='' HTTPD='' ICONV_ENABLED='' ICONV_INC='' ICONV_LIB='' IGNORE_MISSING_DATA='' JPEG_ENABLED='' JPEG_INC='' JPEG_LIB='' LDFLAGS='' LD_SHARED='' LEX='' LEXLIB='' LEX_OUTPUT_ROOT='' LIBCURL_CONFIG='' LIBOBJS='' LIBS='' LIBXML2_CONFIG='' LTLIBOBJS='' MAKE_GD='' MAKE_GD_CLEAN='' MAKE_PHPMS='' MAKE_PHPMS_CLEAN='' MS_INC='' MS_LIB='' MS_VERSION='' MYSQL_ENABLED='' MYSQL_INC='' MYSQL_LIB='' MY_CONFIG='' OBJEXT='' OGL_ENABLED='' OGL_INC='' OGL_LIB='' OGR_ENABLED='' ORACLESPATIAL_ENABLED='' ORACLESPATIAL_INC='' ORACLESPATIAL_LIB='' OS_INCLUDE_DIR='' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_URL='' PACKAGE_VERSION='' PATH_SEPARATOR=':' PG_CONFIG='' PHP_CC='' PHP_LD='' PHP_LD_SHARED='' PHP_REGEX_INC='' PHP_REGEX_OBJ='' PHP_SRC_DIR='' PHP_VERSION_FLAG='' PKG_CONFIG='' PNG_ENABLED='' PNG_INC='' PNG_LIB='' POSTGIS_ENABLED='' POSTGIS_INC='' POSTGIS_LIB='' PROJ_ENABLED='' PROJ_INC='' PROJ_LIBS='' RANLIB='' RPATHS='' SDE_ENABLED='' SDE_INC='' SDE_LIB='' SHELL='/bin/bash' SOS_SVR_ENABLED='' SO_COMMAND_NAME='' SO_EXT='' STRINGS='' THREAD_FLAG='' THREAD_LIB='' USE_NINT='' USE_PHP_REGEX='' USE_POINT_Z_M='' WCS_SVR_ENABLED='' WFS_LYR_ENABLED='' WFS_SVR_ENABLED='' WMS_LYR_ENABLED='' WMS_SVR_ENABLED='' XML2_INC='' XML2_LIB='' XSLT_ENABLED='' XSLT_INC='' XSLT_LIB='' XTRALIBS='' YACC='' YFLAGS='' ZLIB_ENABLED='' ZLIB_INC='' ZLIB_LIB='' ac_ct_CC='gcc' ac_ct_CXX='' bindir='${exec_prefix}/bin' build_alias='' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='NONE' host_alias='' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='NONE' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" configure: exit 77 -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Compiling-Mapserver-tp4370929p4376868.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Paul.Maddock at ijus.net Wed Feb 8 10:44:12 2012 From: Paul.Maddock at ijus.net (paulmaddock) Date: Wed, 8 Feb 2012 10:44:12 -0800 (PST) Subject: [mapserver-users] Re: Compiling Mapserver In-Reply-To: <4F305A9B.1070003@mapgears.com> References: <4FDD345A70B42F479A0B3329E101EC659E73C04B79@mx-02.ijuscol.com> <4F305A9B.1070003@mapgears.com> Message-ID: <1328726652490-4376875.post@n6.nabble.com> http://osgeo-org.1560.n6.nabble.com/file/n4376875/config.log config.log -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Compiling-Mapserver-tp4370929p4376875.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aboudreault at mapgears.com Wed Feb 8 11:03:20 2012 From: aboudreault at mapgears.com (Alan Boudreault) Date: Wed, 08 Feb 2012 14:03:20 -0500 Subject: [mapserver-users] Re: Compiling Mapserver In-Reply-To: <1328726652490-4376875.post@n6.nabble.com> References: <4FDD345A70B42F479A0B3329E101EC659E73C04B79@mx-02.ijuscol.com> <4F305A9B.1070003@mapgears.com> <1328726652490-4376875.post@n6.nabble.com> Message-ID: <4F32C6F8.3060802@mapgears.com> Checking the log.. we see that error: gcc: error trying to exec 'cc1': execvp: No such file or directory which is strange to me. I think that you'll get the same error just trying typing gcc or cpp. Could you try to reinstall build-essential? sudo apt-get install --reinstall build-essential otherwise... make sure you are using a bash shell environment. I've seen a post on the web talking about something like that. Alan On 12-02-08 01:44 PM, paulmaddock wrote: > http://osgeo-org.1560.n6.nabble.com/file/n4376875/config.log config.log > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Compiling-Mapserver-tp4370929p4376875.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 -- Alan Boudreault http://www.mapgears.com/ From MarkVolz at co.lyon.mn.us Wed Feb 8 12:17:22 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 8 Feb 2012 20:17:22 +0000 Subject: [mapserver-users] using pattern or nullformat in templates - Mapserver 5.4 Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA30CDA09@swmail01.r8nssis.local> Hello, I am trying to display an address as part of my identify parcel template. The template works fine for parcels that have a valid address. However, for parcels that do not have an address a "0" is displayed (the zip field is a integer). How can I change the results so that either nothing, or a message such as "no site address" is displayed? When I try to use pattern: * [item name="PHYZIP" pattern=/^[1-9]/] - displays the address if there is one, or "1/]" is there is not an address. * [item name="PHYZIP" pattern="/^[1-9]/"] - crashes Nullformat appears to only work with strings that are null, not integers that are 0. Is there a way to set a nullvalue, for example: * [item name="PHYZIP" nullformat="No Physical Address" nullvalue="0"] Thanks Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Wed Feb 8 12:29:43 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 8 Feb 2012 20:29:43 +0000 Subject: [mapserver-users] RE: using pattern or nullformat in templates - Mapserver 5.4 Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA30CDA18@swmail01.r8nssis.local> Hello, I may have answered my own question. The following line works, however it has a mismatched number of brackets so it could be better written. [item name="PHYZIP" nullformat="No Site Address" pattern=/^[1-9] How would I rewrite this line of the template so that it is clean? Thank You Mark Volz GIS Specialist _____________________________________________ From: Mark Volz Sent: Wednesday, February 08, 2012 2:17 PM To: 'mapserver-users at lists.osgeo.org' Subject: using pattern or nullformat in templates - Mapserver 5.4 Hello, I am trying to display an address as part of my identify parcel template. The template works fine for parcels that have a valid address. However, for parcels that do not have an address a "0" is displayed (the zip field is a integer). How can I change the results so that either nothing, or a message such as "no site address" is displayed? When I try to use pattern: * [item name="PHYZIP" pattern=/^[1-9]/] - displays the address if there is one, or "1/]" is there is not an address. * [item name="PHYZIP" pattern="/^[1-9]/"] - crashes Nullformat appears to only work with strings that are null, not integers that are 0. Is there a way to set a nullvalue, for example: * [item name="PHYZIP" nullformat="No Physical Address" nullvalue="0"] Thanks Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Feb 8 13:09:23 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 8 Feb 2012 21:09:23 +0000 Subject: [mapserver-users] RE: using pattern or nullformat in templates - Mapserver 5.4 In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA30CDA18@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA30CDA18@swmail01.r8nssis.local> Message-ID: Patterns are always a regex so the //'s aren't needed. Try: [item name="PHYZIP" pattern="^[1-9]"] Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Wednesday, February 08, 2012 2:30 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: using pattern or nullformat in templates - Mapserver 5.4 Hello, I may have answered my own question. The following line works, however it has a mismatched number of brackets so it could be better written. [item name="PHYZIP" nullformat="No Site Address" pattern=/^[1-9] How would I rewrite this line of the template so that it is clean? Thank You Mark Volz GIS Specialist _____________________________________________ From: Mark Volz Sent: Wednesday, February 08, 2012 2:17 PM To: 'mapserver-users at lists.osgeo.org' Subject: using pattern or nullformat in templates - Mapserver 5.4 Hello, I am trying to display an address as part of my identify parcel template. The template works fine for parcels that have a valid address. However, for parcels that do not have an address a "0" is displayed (the zip field is a integer). How can I change the results so that either nothing, or a message such as "no site address" is displayed? When I try to use pattern: * [item name="PHYZIP" pattern=/^[1-9]/] - displays the address if there is one, or "1/]" is there is not an address. * [item name="PHYZIP" pattern="/^[1-9]/"] - crashes Nullformat appears to only work with strings that are null, not integers that are 0. Is there a way to set a nullvalue, for example: * [item name="PHYZIP" nullformat="No Physical Address" nullvalue="0"] Thanks Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Feb 8 13:12:58 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 08 Feb 2012 16:12:58 -0500 Subject: [mapserver-users] Release of MapServer 6.0.2 and 5.6.8 Message-ID: <4F32E55A.1040402@mapgears.com> The MapServer team announces the release of MapServer versions 6.0.2 and 5.6.8. No new functionality has been added. 6.0.2 is a maintenance release that fixes a few issues found since 6.0.1 including a recently discovered security vulnerability in the handling of WFS filters inside a SLD. The list of fixes since 6.0.1 is included at the end of this message. Versions 5.6.8 includes fixes for the same WFS Filter security vulnerability plus a few bug fixes that were backported since the last official release. See the 5.6.8 HISTORY.TXT file for additional information. Source and binary downloads: ---------------------------- The source code is available at: http://mapserver.org/download.html The binary distributions listed in the download page should be updated shortly with binaries for the new 6.0.2 release (and in some cases 5.6.8). The MapServer Team Version 6.0.2 (2012-02-08): --------------------------- - Fix security issue with quote escape in WFS GetFeature Filter (#4087) - Fixed lexer buffer size issue with single quotes in a string (#4175) - Raster layer fails to be drawn if the window is less than half a pixel (#4172) - Fixed SLD with FILTER doesn't apply properly to database layers (#4112) - Fixed a problem with calls to labelInImage() (maplabel.c) when label gutter and label buffers are both used (#3303). Also changed the usage around that function to make it easier to understand. At a result the "labelcache_map_edge_buffer" processing option (i.e. gutter) can be provided as a positive or negative value. (closes #1355 too) - Added label->style markers to collision detection (#4133) - Fixed single pixel coverages in WCS 2.0 (#4110) - Fixed subsetting in WCS 2.0 (#4099) - Fixed segfault when calling classObj::updateFromString() with SYMBOL (#4062) - fix rendering offset on thick GD lines (#3962) - fix segfault on join with postgresql tables (#4074) - Fixed Python Mapscript does not write COLOR to reference map (#4042) - Fixed cannot add a style to a label in PHP/SWIG Mapscript (#4038) - Add missing outputFormat support in WFS GetFeature POST XML requests (#4052) - Fixed schema validity issue for WCS 1.1 GetCoverage responses (#4047) - fix centroid geomtransform parser (#4029) - PHP MapScript is missing many styleObj properties (#3901) - Added GEOMTRANSFORM in writeStyle function - WCS 1.0: Fix crash with some _rangeset_axes values (#4020) - Changed msDrawVectorLayer() not to cache shapes if attribute binding is present after the first style (#3976) - Fix mapscript to build when TRUE macro is not defined (#3926) - Fix mapscript php build issues with MSVC (#4004) - PHP/Mapscript: Segmentation fault when getting complex object using PHP 5.2 (#3930) - Fixed contains operator in logical expresions (#3974) - Fix incorrect rendering of GD lines between 1 and 2 pixels wide (#3962) From MarkVolz at co.lyon.mn.us Wed Feb 8 14:26:56 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 8 Feb 2012 22:26:56 +0000 Subject: [mapserver-users] RE: using pattern or nullformat in templates - Mapserver 5.4 In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA30CDA18@swmail01.r8nssis.local> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA30CDA64@swmail01.r8nssis.local> Steve, Thank you for your reply. Using [item name="PHYZIP" pattern="^[1-9]"] caused an internal service error. Mark Volz GIS Specialist Lyon County, MN 507-532-8218 From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Wednesday, February 08, 2012 3:09 PM To: Mark Volz; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: using pattern or nullformat in templates - Mapserver 5.4 Patterns are always a regex so the //'s aren't needed. Try: [item name="PHYZIP" pattern="^[1-9]"] Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Wednesday, February 08, 2012 2:30 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: using pattern or nullformat in templates - Mapserver 5.4 Hello, I may have answered my own question. The following line works, however it has a mismatched number of brackets so it could be better written. [item name="PHYZIP" nullformat="No Site Address" pattern=/^[1-9] How would I rewrite this line of the template so that it is clean? Thank You Mark Volz GIS Specialist _____________________________________________ From: Mark Volz Sent: Wednesday, February 08, 2012 2:17 PM To: 'mapserver-users at lists.osgeo.org' Subject: using pattern or nullformat in templates - Mapserver 5.4 Hello, I am trying to display an address as part of my identify parcel template. The template works fine for parcels that have a valid address. However, for parcels that do not have an address a "0" is displayed (the zip field is a integer). How can I change the results so that either nothing, or a message such as "no site address" is displayed? When I try to use pattern: * [item name="PHYZIP" pattern=/^[1-9]/] - displays the address if there is one, or "1/]" is there is not an address. * [item name="PHYZIP" pattern="/^[1-9]/"] - crashes Nullformat appears to only work with strings that are null, not integers that are 0. Is there a way to set a nullvalue, for example: * [item name="PHYZIP" nullformat="No Physical Address" nullvalue="0"] Thanks Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.courtin at gmail.com Wed Feb 8 14:52:00 2012 From: olivier.courtin at gmail.com (Olivier Courtin) Date: Wed, 8 Feb 2012 14:52:00 -0800 Subject: [mapserver-users] [ANN] TinyOWS 1.0.0 release Message-ID: Hi alls, TinyOWS 1.0.0 official release is (finally) out ! You could download it from: (checksum 25c9567848b97a3ad9a111c0053e4248) ChangeLog: - Configuration change with broken backward compatibility: * default config file is now /etc/tinyows.xml * default schema dir is now $PREFIX/share/tinyows/schema * rename server and prefix to ns_uri ans ns_prefix * rename wfs_display_bbox to display_bbox - Encoding support, written by Carlos Ruiz: cruizch at gmail.com - Estimated_bbox option for GetCapabilities response (default is false) - Schema cache for fast-cgi mode (huge performance improvement on transaction operations) - Improve drasticaly GetCapabilities performance on huge layer (Thanks to Nicklas Aven for report) - Add ability to use different names for layer and storage table (table property) - Mapfile config file support (use related TINYOWS_MAPFILE env. var) - Debug option available from configure step (--enable-debug) - Improve result from --check option - Add wfs_default_version config file option, to set server default WFS Version - Add gml_ns config file option, to set if any, layers properties using GML namespace - Add log_level config file option, to allow more granularity in log output - PostGIS version init check (support 1.5 and coming 2.0) - Update XSD schema (WFS, FE, GML), so need a new 'make install' step if you upgrade - CITE WFS-T 1.0.0 SF-0 full compliant (require PostGIS 2.0) - CITE WFS-T 1.1.0 SF-0 full compliant (require PostGIS 2.0) - Lot of debug stuff (a special thanks to Boris Leukert, Jukka Rahkonen and Even Rouault for detailled reports) - Security fixes (SQL Injection vulnerability - Reported by Even Rouault) Thanks again to all folks who contributed on it ! -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.c.cartwright at comcast.net Wed Feb 8 21:05:59 2012 From: john.c.cartwright at comcast.net (John Cartwright) Date: Wed, 8 Feb 2012 22:05:59 -0700 Subject: [mapserver-users] speed up WCS access to large GeoTIFF Message-ID: <27526364-A58A-42A8-9EF1-9C5B192F6B34@comcast.net> Hello All, I have a WCS service on a large GeoTIFF image. Are there any strategies for speeding up the GetCoverage request? Thanks! --john From warmerdam at pobox.com Wed Feb 8 21:34:36 2012 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 08 Feb 2012 21:34:36 -0800 Subject: [mapserver-users] speed up WCS access to large GeoTIFF In-Reply-To: <27526364-A58A-42A8-9EF1-9C5B192F6B34@comcast.net> References: <27526364-A58A-42A8-9EF1-9C5B192F6B34@comcast.net> Message-ID: <4F335AEC.4080303@pobox.com> On 12-02-08 09:05 PM, John Cartwright wrote: > Hello All, > > I have a WCS service on a large GeoTIFF image. Are there any strategies for speeding up the GetCoverage request? John, The usual raster strategies should apply. Build overviews, and tile the image. Beyond that more memory for caching and faster computers may help a bit. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://home.gdal.org/warmerda and watch the world go round - Rush | Geospatial Software Developer From dejan.gambin at coin.hr Wed Feb 8 23:33:13 2012 From: dejan.gambin at coin.hr (Dejan Gambin) Date: Thu, 9 Feb 2012 08:33:13 +0100 Subject: [mapserver-users] Legend size problem in GetLegendGraphic request In-Reply-To: References: <85D8CB63-16B6-43C4-B97D-AC145D8589F0@coin.hr> <88F212FE-6977-4F46-9BF9-BBC30FFC0B2D@coin.hr> Message-ID: Thx Steve, Shouldn't the request somehow take into account the KEYSIZE, that is always in pixels? Anyway, I have reported this (before your email) as a bug: http://trac.osgeo.org/mapserver/ticket/4177 In the mean time, yes I could use KEYIMAGE, I just wanted to avoid it. Or I can make my points circles and use pixels for SIZEUNITS dejan On 7. vel. 2012., at 22:11, Lime, Steve D (DNR) wrote: > I'd call this a bug. Question is what size to use if sizeunits are specified. I don't have a good suggestion for that, anyone? One idea for an immediate workaround would be to create an image ahead of time and use KEYIMAGE to reference it instead. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dejan Gambin > Sent: Monday, February 06, 2012 9:37 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Legend size problem in GetLegendGraphic request > > Does someone know if this is some kind of a bug or it is supposed to be so? Should the legend symbol box size really depend on sizeunits? Or should I report it as a bug? > > thx, dejan > > On 3. vel. 2012., at 09:45, Dejan Gambin wrote: > >> Hi, >> >> I have point shapefile and trying to show the points as big circles on the map. So I am using something like: >> >> ... >> SIZEUNITS kilometers >> CLASS >> Name "myname" >> SIZE 10 >> ... >> END >> ... >> >> Everything is show ok on the map but the symbol in the legend is very big, and exceeds the symbol key box very much, although KEYSIZE is set to 25 18. >> >> Btw, I am using WMS GetLegendGraphic request for getting the legend >> >> Thanks very much >> >> regards, dejan_______________________________________________ >> 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 K.Digeser at gmail.com Wed Feb 8 23:57:13 2012 From: K.Digeser at gmail.com (ElPer) Date: Wed, 8 Feb 2012 23:57:13 -0800 (PST) Subject: [mapserver-users] replacing layer with different scales. Message-ID: <1328774233333-4378365.post@n6.nabble.com> Hello I need help with the mapfile of the mapserver and I hope you can help me. I want to replace one layer with another at different scale, but I get always an Error. In the documentation I read that I can replace it with the same name according to different scales: "The name should be unique, unless one layer replaces another at different scales." Our Mapserver uses also Tilecache and I'm not sure if the error comes from the mapserver or tilecache. Thanks for your help Here is my mapfile: MAP NAME Nautical Map STATUS ON # Spherical Mercator EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34 PROJECTION "init=epsg:900913" END SIZE 2048 2048 IMAGETYPE mypng OUTPUTFORMAT NAME "mypng" DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" TRANSPARENT ON FORMATOPTION "INTERLACE=OFF" END WEB IMAGEPATH "/opt/fgs2/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_srs" "EPSG:4326 EPSG:900913" END END LAYER NAME MIPARE_A_1 GROUP "MIPARE" STATUS ON PROJECTION "init=epsg:4326" END TYPE POLYGON DATA "data/Scale_S57_Shapefile/25000/DE416020/MIPARE/A/MIPARE.shp" PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "LABEL_NO_CLIP=ON" MINSCALEDENOM 0 MAXSCALEDENOM 24999 CLASS EXPRESSION ([CATMPA] == 2) STYLE SIZE 10 OUTLINECOLOR 200 0 255 SYMBOL mipare_torea END END CLASS EXPRESSION (([CATMPA] == 3) || ([CATMPA] == 4)) STYLE SIZE 10 OUTLINECOLOR 200 0 255 SYMBOL mipare_subea END END CLASS STYLE SIZE 1 OUTLINECOLOR 200 0 255 SYMBOL dashed_line END END END LAYER NAME MIPARE_A_1 GROUP "MIPARE" STATUS ON PROJECTION "init=epsg:4326" END TYPE POLYGON DATA "data/Scale_S57_Shapefile/45000/DE316001/MIPARE/A/MIPARE.shp" PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "LABEL_NO_CLIP=ON" MINSCALEDENOM 25000 MAXSCALEDENOM 499999 CLASS EXPRESSION ([CATMPA] == 2) STYLE SIZE 10 OUTLINECOLOR 200 0 255 SYMBOL mipare_torea END END CLASS EXPRESSION (([CATMPA] == 3) || ([CATMPA] == 4)) STYLE SIZE 10 OUTLINECOLOR 200 0 255 SYMBOL mipare_subea END END CLASS STYLE SIZE 1 OUTLINECOLOR 200 0 255 SYMBOL dashed_line END END END END And here is the Exception wich I get: Mapserver message: Did not get image data back. URL: http://127.0.0.1:8181/cgi-bin/mapserv?MAP=/opt/fgs2/www/htdocs/nautical.map&transparent=true&layers=MIPARE_A_1&styles=&service=WMS&width=612&format=image%2Fpng&request=GetMap&height=612&srs=EPSG%3A900913&version=1.1.1&bbox=1104629.71327%2C7248943.79384%2C1116324.57859%2C7260638.65917 Content-Type Header: application/vnd.ogc.se_xml Response: msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. File "/opt/fgs2/www/htdocs/tilecache-2.10/TileCache/Service.py", line 323, in cgiHandler format, image = service.dispatchRequest( params, path_info, req_method, host ) File "/opt/fgs2/www/htdocs/tilecache-2.10/TileCache/Service.py", line 226, in dispatchRequest (format, data) = self.renderTile(t, params.has_key('FORCE')) File "/opt/fgs2/www/htdocs/tilecache-2.10/TileCache/Service.py", line 138, in renderTile data = layer.render(tile, force=force) File "/opt/fgs2/www/htdocs/tilecache-2.10/TileCache/Layer.py", line 435, in render image = self.renderMetaTile(metatile, tile) File "/opt/fgs2/www/htdocs/tilecache-2.10/TileCache/Layer.py", line 395, in renderMetaTile data = self.renderTile(metatile) File "/opt/fgs2/www/htdocs/tilecache-2.10/TileCache/Layers/WMS.py", line 29, in renderTile tile.data, response = wms.fetch() File "/opt/fgs2/www/htdocs/tilecache-2.10/TileCache/Client.py", line 68, in fetch raise Exception("Did not get image data back. \nURL: %s\nContent-Type Header: %s\nResponse: \n%s" % (self.url(), ctype, data)) -- View this message in context: http://osgeo-org.1560.n6.nabble.com/replacing-layer-with-different-scales-tp4378365p4378365.html Sent from the Mapserver - User mailing list archive at Nabble.com. From darren.carman at infoterra-global.com Thu Feb 9 03:25:37 2012 From: darren.carman at infoterra-global.com (Carman, Darren) Date: Thu, 9 Feb 2012 11:25:37 -0000 Subject: [mapserver-users] Mapserver 5.6 and WMS 1.3.0 Message-ID: <715BFDBEEEDA5245AF02E1C1DCE01C370786A342@SV025.infoterra-global.com> Hi, Can I ask whether Mapserver 5.6 is fully WMS 1.3.0 compliant? I see lots of occurrences of OWS_1_3_0 within the code which makes me think it should. I have had to make the following changes in order to get my 1.3 requests going through OK. Could somebody tell me whether or not I should be doing this, i.e. are these separate bits of functionality that shouldn't support 1.3.0 yet: mapwms.c ========= Line 92 in function msWMSException, added: else if (nVersion <= OWS_1_3_0) wms_exception_format = "XML"; /* WMS 1.3.0 */ This was to allow me to get through the exception parameter checking on line 739 of function msWMSLoadGetMapParams (I believe WMS 1.3 has XML as its default exception parameter). mapwmslayer.c ============= Line 518 in function msBuildWMSLayerURL, added: case OWS_1_3_0: Also changed the error message to say it supports up to 1.3.0 rather than 1.1.1. I am hoping these changes won't cause me problems later on, but for now they allow me to make 1.3.0 requests. Regards, Darren Infoterra Ltd. Is part of the Astrium GEO-Information Services Division and a wholly owned subsidiary of Astrium, Europe's leading space systems and services specialist. Disclaimer. The information contained in this e-mail and its attachments are confidential and intended only for the use of the named addressee(s). If you are not the intended addressee, please do not read, copy, use or disclose this message or its attachments. If you have received this message in error, please notify the sender immediately and delete or destroy all copies of this message and attachments in all media. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Infoterra Ltd and shall not form part of any binding agreement. Infoterra Limited a company registered in England under number 2359955 and having its registered office at Atlas House, 41 Wembley Road, Leicester, LE3 1UT. VAT number GB 476 0468 27. P Before printing, think about the environment -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Feb 9 04:09:33 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 9 Feb 2012 12:09:33 +0000 Subject: [mapserver-users] replacing layer with different scales. In-Reply-To: <1328774233333-4378365.post@n6.nabble.com> References: <1328774233333-4378365.post@n6.nabble.com> Message-ID: <84446DEF76453C439E9E97E438E13A6306930D@suutari.haapa.mmm.fi> Hi, Name the real layers as MIPARE_A_CLOSE and MIPARE_A_FAR and then make requests with the grouping layer name &layers=MIPARE and it should start to work. -Jukka Rahkonen- ElPer wrote: > Hello > > I need help with the mapfile of the mapserver and I hope you > can help me. > I want to replace one layer with another at different scale, but I get > always an Error. > In the documentation I read that I can replace it with the same name > according to different scales: > "The name should be unique, unless one layer replaces another > at different > scales." > Our Mapserver uses also Tilecache and I'm not sure if the > error comes from > the mapserver or tilecache. > > Thanks for your help > > Here is my mapfile: > > MAP > NAME Nautical Map > STATUS ON > > # Spherical Mercator > EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34 > PROJECTION > "init=epsg:900913" > END > > SIZE 2048 2048 > > IMAGETYPE mypng > OUTPUTFORMAT > NAME "mypng" > DRIVER AGG/PNG > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > TRANSPARENT ON > FORMATOPTION "INTERLACE=OFF" > END > > WEB > IMAGEPATH "/opt/fgs2/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_srs" "EPSG:4326 EPSG:900913" > END > END > > LAYER > NAME MIPARE_A_1 > GROUP "MIPARE" > STATUS ON > PROJECTION > "init=epsg:4326" > END > TYPE POLYGON > DATA > "data/Scale_S57_Shapefile/25000/DE416020/MIPARE/A/MIPARE.shp" > PROCESSING "CLOSE_CONNECTION=DEFER" > PROCESSING "LABEL_NO_CLIP=ON" > MINSCALEDENOM 0 > MAXSCALEDENOM 24999 > CLASS > EXPRESSION ([CATMPA] == 2) > STYLE > SIZE 10 > OUTLINECOLOR 200 0 255 > SYMBOL mipare_torea > END > END > CLASS > EXPRESSION (([CATMPA] == 3) || ([CATMPA] == 4)) > STYLE > SIZE 10 > OUTLINECOLOR 200 0 255 > SYMBOL mipare_subea > END > END > CLASS > STYLE > SIZE 1 > OUTLINECOLOR 200 0 255 > SYMBOL dashed_line > END > END > END > > LAYER > NAME MIPARE_A_1 > GROUP "MIPARE" > STATUS ON > PROJECTION > "init=epsg:4326" > END > TYPE POLYGON > DATA > "data/Scale_S57_Shapefile/45000/DE316001/MIPARE/A/MIPARE.shp" > PROCESSING "CLOSE_CONNECTION=DEFER" > PROCESSING "LABEL_NO_CLIP=ON" > MINSCALEDENOM 25000 > MAXSCALEDENOM 499999 > CLASS > EXPRESSION ([CATMPA] == 2) > STYLE > SIZE 10 > OUTLINECOLOR 200 0 255 > SYMBOL mipare_torea > END > END > CLASS > EXPRESSION (([CATMPA] == 3) || ([CATMPA] == 4)) > STYLE > SIZE 10 > OUTLINECOLOR 200 0 255 > SYMBOL mipare_subea > END > END > CLASS > STYLE > SIZE 1 > OUTLINECOLOR 200 0 255 > SYMBOL dashed_line > END > END > END > END > > And here is the Exception wich I get: > > Mapserver message: > Did not get image data back. > URL: > http://127.0.0.1:8181/cgi-bin/mapserv?MAP=/opt/fgs2/www/htdocs /nautical.map&transparent=true&layers=MIPARE_A_1> &styles=&service=WMS&width=612&format=image%2Fpng&request=GetM ap&height=612&srs=EPSG%3A900913&version=1.1.1&bbox=1104629.71327%> 2C7248943.79384%2C1116324.57859%2C7260638.65917 > Content-Type Header: application/vnd.ogc.se_xml > Response: > > "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) > given in the > LAYERS parameter. > > > > File > "/opt/fgs2/www/htdocs/tilecache-2.10/TileCache/Service.py", line 323, > in cgiHandler > format, image = service.dispatchRequest( params, > path_info, req_method, > host ) > File > "/opt/fgs2/www/htdocs/tilecache-2.10/TileCache/Service.py", line 226, > in dispatchRequest > (format, data) = self.renderTile(t, params.has_key('FORCE')) > File > "/opt/fgs2/www/htdocs/tilecache-2.10/TileCache/Service.py", line 138, > in renderTile > data = layer.render(tile, force=force) > File > "/opt/fgs2/www/htdocs/tilecache-2.10/TileCache/Layer.py", line 435, > in render > image = self.renderMetaTile(metatile, tile) > File > "/opt/fgs2/www/htdocs/tilecache-2.10/TileCache/Layer.py", line 395, > in renderMetaTile > data = self.renderTile(metatile) > File > "/opt/fgs2/www/htdocs/tilecache-2.10/TileCache/Layers/WMS.py", line > 29, in renderTile > tile.data, response = wms.fetch() > File > "/opt/fgs2/www/htdocs/tilecache-2.10/TileCache/Client.py", line 68, > in fetch > raise Exception("Did not get image data back. \nURL: > %s\nContent-Type > Header: %s\nResponse: \n%s" % (self.url(), ctype, data)) > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/replacing-layer-with-diffe rent-scales-tp4378365p4378365.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 marcandre_trottier at hotmail.com Thu Feb 9 04:34:02 2012 From: marcandre_trottier at hotmail.com (=?ISO-8859-1?Q?Marc=2DAndr=E9_Trottier?=) Date: Thu, 9 Feb 2012 07:34:02 -0500 Subject: RE [mapserver-users] variable in tag NAME of a CLASS In-Reply-To: <1328624268014-4372638.post@n6.nabble.com> References: <1328624268014-4372638.post@n6.nabble.com> Message-ID: to answer your question : Yes. i,m using 6.1-dev here a one of the mapfile's class : CLASS NAME "<70%" EXPRESSION ([taux_infra_personne]<(0.7*[taux_infra_personne_qc])) GROUP "2010" STYLE OUTLINECOLOR 0 0 0 COLOR 0 254 51 END LABEL ALIGN CENTER COLOR 10 0 0 OUTLINECOLOR 250 255 255 ANTIALIAS FALSE TYPE TRUETYPE FONT "arialbd" SIZE 9 END END all i want, it is the NAME would be like the EXPRESSION : NAME ([taux_infra_personne]<(0.7*[taux_infra_personne_qc])) EXPRESSION ([taux_infra_personne]<(0.7*[taux_infra_personne_qc])) 2012/2/7 marcandre_trottier at hotmail.com > i'm using mapserver 6.1. > > i'm using a timeline and the legend must change each year but don't want to > write all 5 class from 1997 to 2011. > with a variable i could have only 5 class in my mapfile and when i will > insert 2012's data, it will work automatically > > what's your idea ? > > > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/variable-in-tag-NAME-of-a-CLASS-tp4342830p4372638.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 > > Le 30 janvier 2012 16:32, Lime, Steve D (DNR) a ?crit : Marc-Andre: Is your end game to change legend text dynamically? What version are you using? I may have a work-around for you. Steve *From:* mapserver-users-bounces at lists.osgeo.org [mailto: mapserver-users-bounces at lists.osgeo.org] *On Behalf Of * Steve.Toutant at inspq.qc.ca *Sent:* Friday, January 27, 2012 8:05 AM *To:* Marc-Andr? Trottier *Cc:* mapserver-users at lists.osgeo.org; mapserver-users-bounces at lists.osgeo.org *Subject:* RE [mapserver-users] variable in tag NAME of a CLASS According to this http://mapserver.org/cgi/runsub.html#parameters-supported it seems that you can not use run-time substitution for a class name *Marc-Andr? Trottier @lists.osgeo.org* Envoy? par : mapserver-users-bounces at lists.osgeo.org 2012-01-27 07:23 A mapserver-users at lists.osgeo.org cc Objet [mapserver-users] variable in tag NAME of a CLASS Can we put a variable or a attribute in the tag NAME of a CLASS ? something like this : NAME "[patate]" according to my tests it do not seems but if someone can confirm Marc-Andr? Trottier_______________________________________________ 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 Thu Feb 9 06:47:18 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 9 Feb 2012 14:47:18 +0000 Subject: [mapserver-users] Legend size problem in GetLegendGraphic request In-Reply-To: References: <85D8CB63-16B6-43C4-B97D-AC145D8589F0@coin.hr> <88F212FE-6977-4F46-9BF9-BBC30FFC0B2D@coin.hr> , Message-ID: We could always size symbols relative to the KEYSIZE but if you do that then relative differences between wide and narrow lines or large and small markers would be lost. If units are in pixels then one could compute a global scaling factor across all layers so that differences are preserved. Doesn't help with non-pixel units. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Dejan Gambin [dejan.gambin at coin.hr] Sent: Thursday, February 09, 2012 1:33 AM To: Lime, Steve D (DNR) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Legend size problem in GetLegendGraphic request Thx Steve, Shouldn't the request somehow take into account the KEYSIZE, that is always in pixels? Anyway, I have reported this (before your email) as a bug: http://trac.osgeo.org/mapserver/ticket/4177 In the mean time, yes I could use KEYIMAGE, I just wanted to avoid it. Or I can make my points circles and use pixels for SIZEUNITS dejan On 7. vel. 2012., at 22:11, Lime, Steve D (DNR) wrote: > I'd call this a bug. Question is what size to use if sizeunits are specified. I don't have a good suggestion for that, anyone? One idea for an immediate workaround would be to create an image ahead of time and use KEYIMAGE to reference it instead. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dejan Gambin > Sent: Monday, February 06, 2012 9:37 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Legend size problem in GetLegendGraphic request > > Does someone know if this is some kind of a bug or it is supposed to be so? Should the legend symbol box size really depend on sizeunits? Or should I report it as a bug? > > thx, dejan > > On 3. vel. 2012., at 09:45, Dejan Gambin wrote: > >> Hi, >> >> I have point shapefile and trying to show the points as big circles on the map. So I am using something like: >> >> ... >> SIZEUNITS kilometers >> CLASS >> Name "myname" >> SIZE 10 >> ... >> END >> ... >> >> Everything is show ok on the map but the symbol in the legend is very big, and exceeds the symbol key box very much, although KEYSIZE is set to 25 18. >> >> Btw, I am using WMS GetLegendGraphic request for getting the legend >> >> Thanks very much >> >> regards, dejan_______________________________________________ >> 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 marcandre_trottier at hotmail.com Thu Feb 9 06:56:29 2012 From: marcandre_trottier at hotmail.com (=?ISO-8859-1?Q?Marc=2DAndr=E9_Trottier?=) Date: Thu, 9 Feb 2012 09:56:29 -0500 Subject: [mapserver-users] label and opacity Message-ID: Can we put OPACITY on a LABEL : CLASS NAME "R?gion administrative" EXPRESSION (([no_reg_admin] in '%RES_CO_REG%' ) AND ('[couleur]' = 'VERT')) GROUP "select" TEXT "[no_reg_admin]" STYLE COLOR 51 204 51 OUTLINECOLOR 139 35 35 WIDTH 10 END LABEL COLOR 212 212 212 OUTLINECOLOR 250 255 255 ANTIALIAS FALSE TYPE TRUETYPE FONT "arialbd" SIZE 50 STYLE OPACITY 23 END END END and my outputformat is : OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGBA TRANSPARENT ON FORMATOPTION "INTERLACE=OFF" END it should work but my label is not transparent is it a FONT problem ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Thu Feb 9 08:22:06 2012 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 09 Feb 2012 11:22:06 -0500 Subject: [mapserver-users] Release of MapServer 6.0.2 and 5.6.8 In-Reply-To: <4F32E55A.1040402@mapgears.com> References: <4F32E55A.1040402@mapgears.com> Message-ID: <4F33F2AE.6000705@mapgears.com> MapServer 6.0.2 is now in the UbuntuGIS unstable PPA for Hardy, Lucid, Natty and Oneiric. Alan On 12-02-08 04:12 PM, Daniel Morissette wrote: > The MapServer team announces the release of MapServer versions 6.0.2 and > 5.6.8. > > No new functionality has been added. 6.0.2 is a maintenance release that > fixes a few issues found since 6.0.1 including a recently discovered > security vulnerability in the handling of WFS filters inside a SLD. The > list of fixes since 6.0.1 is included at the end of this message. > > Versions 5.6.8 includes fixes for the same WFS Filter security > vulnerability plus a few bug fixes that were backported since the last > official release. See the 5.6.8 HISTORY.TXT file for additional > information. > > > Source and binary downloads: > ---------------------------- > > The source code is available at: > > http://mapserver.org/download.html > > The binary distributions listed in the download page should be updated > shortly with binaries for the new 6.0.2 release (and in some cases 5.6.8). > > The MapServer Team > > > > Version 6.0.2 (2012-02-08): > --------------------------- > > - Fix security issue with quote escape in WFS GetFeature Filter (#4087) > > - Fixed lexer buffer size issue with single quotes in a string (#4175) > > - Raster layer fails to be drawn if the window is less than half a pixel > (#4172) > > - Fixed SLD with FILTER doesn't apply properly to database layers (#4112) > > - Fixed a problem with calls to labelInImage() (maplabel.c) when label > gutter > and label buffers are both used (#3303). Also changed the usage around that > function to make it easier to understand. At a result the > "labelcache_map_edge_buffer" processing option (i.e. gutter) can be > provided > as a positive or negative value. (closes #1355 too) > > - Added label->style markers to collision detection (#4133) > > - Fixed single pixel coverages in WCS 2.0 (#4110) > > - Fixed subsetting in WCS 2.0 (#4099) > > - Fixed segfault when calling classObj::updateFromString() with SYMBOL > (#4062) > > - fix rendering offset on thick GD lines (#3962) > > - fix segfault on join with postgresql tables (#4074) > > - Fixed Python Mapscript does not write COLOR to reference map (#4042) > > - Fixed cannot add a style to a label in PHP/SWIG Mapscript (#4038) > > - Add missing outputFormat support in WFS GetFeature POST XML requests > (#4052) > > - Fixed schema validity issue for WCS 1.1 GetCoverage responses (#4047) > > - fix centroid geomtransform parser (#4029) > > - PHP MapScript is missing many styleObj properties (#3901) > > - Added GEOMTRANSFORM in writeStyle function > > - WCS 1.0: Fix crash with some _rangeset_axes values (#4020) > > - Changed msDrawVectorLayer() not to cache shapes if attribute binding is > present after the first style (#3976) > > - Fix mapscript to build when TRUE macro is not defined (#3926) > > - Fix mapscript php build issues with MSVC (#4004) > > - PHP/Mapscript: Segmentation fault when getting complex object using > PHP 5.2 (#3930) > > - Fixed contains operator in logical expresions (#3974) > > - Fix incorrect rendering of GD lines between 1 and 2 pixels wide (#3962) > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ From aboudreault at mapgears.com Thu Feb 9 08:30:02 2012 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 09 Feb 2012 11:30:02 -0500 Subject: [mapserver-users] Release of MapServer 6.0.2 and 5.6.8 In-Reply-To: <4F33F2AE.6000705@mapgears.com> References: <4F32E55A.1040402@mapgears.com> <4F33F2AE.6000705@mapgears.com> Message-ID: <4F33F48A.1010700@mapgears.com> Direct link to UbuntuGIS packages: https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable/+packages Alan On 12-02-09 11:22 AM, Alan Boudreault wrote: > MapServer 6.0.2 is now in the UbuntuGIS unstable PPA for Hardy, Lucid, > Natty and Oneiric. > > Alan > > On 12-02-08 04:12 PM, Daniel Morissette wrote: >> The MapServer team announces the release of MapServer versions 6.0.2 and >> 5.6.8. >> >> No new functionality has been added. 6.0.2 is a maintenance release that >> fixes a few issues found since 6.0.1 including a recently discovered >> security vulnerability in the handling of WFS filters inside a SLD. The >> list of fixes since 6.0.1 is included at the end of this message. >> >> Versions 5.6.8 includes fixes for the same WFS Filter security >> vulnerability plus a few bug fixes that were backported since the last >> official release. See the 5.6.8 HISTORY.TXT file for additional >> information. >> >> >> Source and binary downloads: >> ---------------------------- >> >> The source code is available at: >> >> http://mapserver.org/download.html >> >> The binary distributions listed in the download page should be updated >> shortly with binaries for the new 6.0.2 release (and in some cases >> 5.6.8). >> >> The MapServer Team >> >> >> >> Version 6.0.2 (2012-02-08): >> --------------------------- >> >> - Fix security issue with quote escape in WFS GetFeature Filter (#4087) >> >> - Fixed lexer buffer size issue with single quotes in a string (#4175) >> >> - Raster layer fails to be drawn if the window is less than half a pixel >> (#4172) >> >> - Fixed SLD with FILTER doesn't apply properly to database layers (#4112) >> >> - Fixed a problem with calls to labelInImage() (maplabel.c) when label >> gutter >> and label buffers are both used (#3303). Also changed the usage around >> that >> function to make it easier to understand. At a result the >> "labelcache_map_edge_buffer" processing option (i.e. gutter) can be >> provided >> as a positive or negative value. (closes #1355 too) >> >> - Added label->style markers to collision detection (#4133) >> >> - Fixed single pixel coverages in WCS 2.0 (#4110) >> >> - Fixed subsetting in WCS 2.0 (#4099) >> >> - Fixed segfault when calling classObj::updateFromString() with SYMBOL >> (#4062) >> >> - fix rendering offset on thick GD lines (#3962) >> >> - fix segfault on join with postgresql tables (#4074) >> >> - Fixed Python Mapscript does not write COLOR to reference map (#4042) >> >> - Fixed cannot add a style to a label in PHP/SWIG Mapscript (#4038) >> >> - Add missing outputFormat support in WFS GetFeature POST XML requests >> (#4052) >> >> - Fixed schema validity issue for WCS 1.1 GetCoverage responses (#4047) >> >> - fix centroid geomtransform parser (#4029) >> >> - PHP MapScript is missing many styleObj properties (#3901) >> >> - Added GEOMTRANSFORM in writeStyle function >> >> - WCS 1.0: Fix crash with some _rangeset_axes values (#4020) >> >> - Changed msDrawVectorLayer() not to cache shapes if attribute binding is >> present after the first style (#3976) >> >> - Fix mapscript to build when TRUE macro is not defined (#3926) >> >> - Fix mapscript php build issues with MSVC (#4004) >> >> - PHP/Mapscript: Segmentation fault when getting complex object using >> PHP 5.2 (#3930) >> >> - Fixed contains operator in logical expresions (#3974) >> >> - Fix incorrect rendering of GD lines between 1 and 2 pixels wide (#3962) >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Alan Boudreault http://www.mapgears.com/ From Steve.Lime at state.mn.us Thu Feb 9 10:41:18 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 9 Feb 2012 18:41:18 +0000 Subject: [mapserver-users] label and opacity In-Reply-To: References: Message-ID: At present there is no support for transparent labels. Style properties apply to an accompanying marker or bounding box, not the label itself. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Marc-Andr? Trottier Sent: Thursday, February 09, 2012 8:56 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] label and opacity Can we put OPACITY on a LABEL : CLASS NAME "R?gion administrative" EXPRESSION (([no_reg_admin] in '%RES_CO_REG%' ) AND ('[couleur]' = 'VERT')) GROUP "select" TEXT "[no_reg_admin]" STYLE COLOR 51 204 51 OUTLINECOLOR 139 35 35 WIDTH 10 END LABEL COLOR 212 212 212 OUTLINECOLOR 250 255 255 ANTIALIAS FALSE TYPE TRUETYPE FONT "arialbd" SIZE 50 STYLE OPACITY 23 END END END and my outputformat is : OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGBA TRANSPARENT ON FORMATOPTION "INTERLACE=OFF" END it should work but my label is not transparent is it a FONT problem ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Thu Feb 9 12:02:43 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Thu, 9 Feb 2012 15:02:43 -0500 Subject: [mapserver-users] label and opacity In-Reply-To: References: Message-ID: Label text transparency is a feature we could also use. Regards Ian From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) Sent: Thursday, February 09, 2012 10:41 AM To: Marc-Andr? Trottier; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] label and opacity At present there is no support for transparent labels. Style properties apply to an accompanying marker or bounding box, not the label itself. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Marc-Andr? Trottier Sent: Thursday, February 09, 2012 8:56 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] label and opacity Can we put OPACITY on a LABEL : CLASS NAME "R?gion administrative" EXPRESSION (([no_reg_admin] in '%RES_CO_REG%' ) AND ('[couleur]' = 'VERT')) GROUP "select" TEXT "[no_reg_admin]" STYLE COLOR 51 204 51 OUTLINECOLOR 139 35 35 WIDTH 10 END LABEL COLOR 212 212 212 OUTLINECOLOR 250 255 255 ANTIALIAS FALSE TYPE TRUETYPE FONT "arialbd" SIZE 50 STYLE OPACITY 23 END END END and my outputformat is : OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGBA TRANSPARENT ON FORMATOPTION "INTERLACE=OFF" END it should work but my label is not transparent is it a FONT problem ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at opengeo.org Thu Feb 9 12:04:07 2012 From: pramsey at opengeo.org (Paul Ramsey) Date: Thu, 9 Feb 2012 12:04:07 -0800 Subject: [mapserver-users] PostGIS query In-Reply-To: <4F27E0D7.4080409@ulb.ac.be> References: <4F27E0D7.4080409@ulb.ac.be> Message-ID: http://postgis.org/documentation/manual-1.5/ch05.html#id2634590 On Tue, Jan 31, 2012 at 4:38 AM, Julien Cigar wrote: > Hello, > > Is there a way to (deeply) modify the SQL query in a PostGIS layer? > I would like to add some JOIN, additional WHERE clauses, etc > As I'm afraid that "Run-time Substitution" isn't flexible enough for this > case ... is there any other possibility, other than mapscript? > > I guess there is no possibility to define variables, conditions, etc in a > .map file .. ? > > Thanks, > Julien > > -- > No trees were killed in the creation of this message. > However, many electrons were terribly inconvenienced. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Thu Feb 9 12:11:20 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 9 Feb 2012 12:11:20 -0800 Subject: [mapserver-users] label and opacity In-Reply-To: References: Message-ID: Open a trac ticket and cc me on it, it shouldn't be very difficult to implement. With a bit of funding it could probably be added rather quickly. -- thomas On Thu, Feb 9, 2012 at 12:02, Ian Walberg wrote: > Label text transparency is ?a feature we could also use. > > > > Regards > > > > Ian > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D > (DNR) > Sent: Thursday, February 09, 2012 10:41 AM > To: Marc-Andr? Trottier; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] label and opacity > > > > At present there is no support for transparent labels. Style properties > apply to an accompanying marker or bounding box, not the label itself. > > > > Steve > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Marc-Andr? > Trottier > Sent: Thursday, February 09, 2012 8:56 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] label and opacity > > > > Can we put OPACITY on a LABEL : > > ?CLASS > ??? NAME "R?gion administrative" > ??? EXPRESSION (([no_reg_admin] in '%RES_CO_REG%' ) AND ('[couleur]' = > 'VERT')) > ??? GROUP "select" > ??? TEXT "[no_reg_admin]" > ??? STYLE > ??? ??? COLOR 51 204 51 > ??? ??? OUTLINECOLOR 139 35 35 > ??? ??? WIDTH 10 > ??? END > ??? LABEL > ??????? COLOR 212 212 212 > ??? ??? OUTLINECOLOR??? 250 255 255 > ??? ??? ANTIALIAS?????? FALSE > ??? ??? TYPE??????????? TRUETYPE > ??? ??? FONT??????????? "arialbd" > ??? ??? SIZE?????????? 50 > ??? ??? STYLE > ??? ??? ??? OPACITY 23 > ??? ??? END > ??? END > END > > and my outputformat is : > > OUTPUTFORMAT > ??? NAME "png" > ??? MIMETYPE "image/png" > ??? DRIVER "AGG/PNG" > ??? EXTENSION "png" > ??? IMAGEMODE RGBA > ??? TRANSPARENT ON > ??? FORMATOPTION????????? "INTERLACE=OFF" > END > > it should work but my label is not transparent > is it a FONT problem ? > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From K.Digeser at gmail.com Thu Feb 9 22:56:24 2012 From: K.Digeser at gmail.com (ElPer) Date: Thu, 9 Feb 2012 22:56:24 -0800 (PST) Subject: [mapserver-users] Re: replacing layer with different scales. In-Reply-To: <84446DEF76453C439E9E97E438E13A6306930D@suutari.haapa.mmm.fi> References: <1328774233333-4378365.post@n6.nabble.com> <84446DEF76453C439E9E97E438E13A6306930D@suutari.haapa.mmm.fi> Message-ID: <1328856984391-4382504.post@n6.nabble.com> Hi thank you very much. Now I make the request with the group name and it works very good. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/replacing-layer-with-different-scales-tp4378365p4382504.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vivaldi_albarado at yahoo.com Fri Feb 10 01:27:48 2012 From: vivaldi_albarado at yahoo.com (Vivaldi Al Barado) Date: Fri, 10 Feb 2012 17:27:48 +0800 (SGT) Subject: [mapserver-users] How to read PostGIS data & display into Openlayers? In-Reply-To: References: <027801cce5b9$57a540a0$06efc1e0$@firstbasesolutions.com> Message-ID: <1328866068.73359.YahooMailNeo@web190104.mail.sg3.yahoo.com> Is there someone that can give an example of how to access a PostGIS database from openlayer and then displays it to the openlayer? Best regards Gozali -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Feb 10 07:12:56 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 10 Feb 2012 15:12:56 +0000 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? Message-ID: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> Hi, GDAL was made to utilise Spatialite spatial index effectively if it exists with ticket http://trac.osgeo.org/gdal/ticket/4212 After this change ogr2ogr with -spat bounding box query is much faster. However, when testing MS4W 3.0.4beta1 which comes with GDAL 1.9, the rendering speed of Spatialite data with Mapserver is pretty slow. It is evenly slow when zoomed out and zoomed in which makes me believe that the spatial index is perhaps not used. Could it be that Mapserver does not utilise the improved method that was implemented for GDAL 1.9 when it is doing spatial queries from Spatialite? -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Feb 10 07:17:26 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 10 Feb 2012 15:17:26 +0000 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> Message-ID: There is no native support for Spatialite in MapServer, it's all through GDAL/OGR. 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: Friday, February 10, 2012 9:12 AM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? Hi, GDAL was made to utilise Spatialite spatial index effectively if it exists with ticket http://trac.osgeo.org/gdal/ticket/4212 After this change ogr2ogr with -spat bounding box query is much faster. However, when testing MS4W 3.0.4beta1 which comes with GDAL 1.9, the rendering speed of Spatialite data with Mapserver is pretty slow. It is evenly slow when zoomed out and zoomed in which makes me believe that the spatial index is perhaps not used. Could it be that Mapserver does not utilise the improved method that was implemented for GDAL 1.9 when it is doing spatial queries from Spatialite? -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Feb 10 07:36:28 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 10 Feb 2012 15:36:28 +0000 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> Message-ID: <84446DEF76453C439E9E97E438E13A6306972D@suutari.haapa.mmm.fi> Hi, OK, lets put it this way: Is it sure that Mapserver is firing the BBOX query so that GDAL/OGR understands to follow the path that is implemented in http://trac.osgeo.org/gdal/changeset/23008 instead of making an inefficient MBRIntersects() query or some other slow query? I do not believe that a user like me has a possibility to check what really happens with Spatialite like I can do with PostGIS and Oracle because Spatialite does not collect a log file. -Jukka Rahkonen- Lime, Steve D (DNR) wrote: There is no native support for Spatialite in MapServer, it's all through GDAL/OGR. 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: Friday, February 10, 2012 9:12 AM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? Hi, GDAL was made to utilise Spatialite spatial index effectively if it exists with ticket http://trac.osgeo.org/gdal/ticket/4212 After this change ogr2ogr with -spat bounding box query is much faster. However, when testing MS4W 3.0.4beta1 which comes with GDAL 1.9, the rendering speed of Spatialite data with Mapserver is pretty slow. It is evenly slow when zoomed out and zoomed in which makes me believe that the spatial index is perhaps not used. Could it be that Mapserver does not utilise the improved method that was implemented for GDAL 1.9 when it is doing spatial queries from Spatialite? -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Feb 10 08:45:19 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 10 Feb 2012 16:45:19 +0000 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: <84446DEF76453C439E9E97E438E13A6306972D@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6306972D@suutari.haapa.mmm.fi> Message-ID: The changeset in OGR is in the spatialite driver so it doesn't look like a program using the OGR APIs would need to do anything special. Someone familiar with the OGR driver will have to weigh in I suspect... Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Friday, February 10, 2012 9:36 AM To: 'mapserver-users at lists.osgeo.org' Subject: Re: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? Hi, OK, lets put it this way: Is it sure that Mapserver is firing the BBOX query so that GDAL/OGR understands to follow the path that is implemented in http://trac.osgeo.org/gdal/changeset/23008 instead of making an inefficient MBRIntersects() query or some other slow query? I do not believe that a user like me has a possibility to check what really happens with Spatialite like I can do with PostGIS and Oracle because Spatialite does not collect a log file. -Jukka Rahkonen- Lime, Steve D (DNR) wrote: There is no native support for Spatialite in MapServer, it's all through GDAL/OGR. 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: Friday, February 10, 2012 9:12 AM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? Hi, GDAL was made to utilise Spatialite spatial index effectively if it exists with ticket http://trac.osgeo.org/gdal/ticket/4212 After this change ogr2ogr with -spat bounding box query is much faster. However, when testing MS4W 3.0.4beta1 which comes with GDAL 1.9, the rendering speed of Spatialite data with Mapserver is pretty slow. It is evenly slow when zoomed out and zoomed in which makes me believe that the spatial index is perhaps not used. Could it be that Mapserver does not utilise the improved method that was implemented for GDAL 1.9 when it is doing spatial queries from Spatialite? -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From even.rouault at mines-paris.org Fri Feb 10 09:05:29 2012 From: even.rouault at mines-paris.org (Even Rouault) Date: Fri, 10 Feb 2012 18:05:29 +0100 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6306972D@suutari.haapa.mmm.fi> Message-ID: <1328893529.4f354e59b422f@webmail.free.fr> Selon "Lime, Steve D (DNR)" : > The changeset in OGR is in the spatialite driver so it doesn't look like a > program using the OGR APIs would need to do anything special. Someone > familiar with the OGR driver will have to weigh in I suspect... Does the OGR backend of MapServer always use OGR_L_SetSpatialFilter() ? I've not MapServer source code under my eyes right now, but I'm wondering if there's not a different code path according to if you specify in the mapfile a OGR layer name or a OGR SQL. > > Steve > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka > Sent: Friday, February 10, 2012 9:36 AM > To: 'mapserver-users at lists.osgeo.org' > Subject: Re: [mapserver-users] Does Mapserver utilise Spatialite spatial > index correctly? > > Hi, > > OK, lets put it this way: > Is it sure that Mapserver is firing the BBOX query so that GDAL/OGR > understands to follow the path that is implemented in > http://trac.osgeo.org/gdal/changeset/23008 > instead of making an inefficient MBRIntersects() query or some other slow > query? > > I do not believe that a user like me has a possibility to check what really > happens with Spatialite like I can do with PostGIS and Oracle because > Spatialite does not collect a log file. > > -Jukka Rahkonen- > > Lime, Steve D (DNR) wrote: > There is no native support for Spatialite in MapServer, it's all through > GDAL/OGR. > > 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: Friday, February 10, 2012 9:12 AM > To: 'mapserver-users at lists.osgeo.org' > Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index > correctly? > Hi, > > GDAL was made to utilise Spatialite spatial index effectively if it exists > with ticket > http://trac.osgeo.org/gdal/ticket/4212 > After this change ogr2ogr with -spat bounding box query is much faster. > However, when testing MS4W 3.0.4beta1 which comes with GDAL 1.9, the > rendering speed of Spatialite data with Mapserver is pretty slow. It is > evenly slow when zoomed out and zoomed in which makes me believe that the > spatial index is perhaps not used. > > Could it be that Mapserver does not utilise the improved method that was > implemented for GDAL 1.9 when it is doing spatial queries from Spatialite? > > -Jukka Rahkonen- > From pcreso at pcreso.com Fri Feb 10 09:53:08 2012 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 10 Feb 2012 09:53:08 -0800 (PST) Subject: [mapserver-users] How to read PostGIS data & display into Openlayers? In-Reply-To: <1328866068.73359.YahooMailNeo@web190104.mail.sg3.yahoo.com> Message-ID: <1328896388.38695.YahooMailClassic@web160704.mail.bf1.yahoo.com> I would suggest you use a WMS/WFS service by using Geoserver or mapserver on top of your Postgis database, then connect to the web service with OpenLayers. Cheers, ?? Brent Wood --- On Fri, 2/10/12, Vivaldi Al Barado wrote: From: Vivaldi Al Barado Subject: [mapserver-users] How to read PostGIS data & display into Openlayers? To: "thomas bonfort" , "John Taranu" Cc: "mapserver-users at lists.osgeo.org" Date: Friday, February 10, 2012, 10:27 PM Is there someone that can give an example of how to access a PostGIS database from openlayer and then displays it to the openlayer? Best regards Gozali -----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 mmypost at yandex.ru Fri Feb 10 10:26:43 2012 From: mmypost at yandex.ru (mmypost mmypost) Date: Fri, 10 Feb 2012 22:26:43 +0400 Subject: [mapserver-users] Redraw only one layer Message-ID: <213451328898403@web61.yandex.ru> Hi Sorry for my bad English. I use mapscript for .Net. I have a some layers: layer1: off layer2: off layer3: on layer4: on ...... layer_N: on I turn on layer1 and mapserver very long time redraw map. I turn on layer2 and mapserver very long time redraw map again. I think, that mapserver redraw all layers every time. How I can force mapserver(by mapscript) draw only one layer (layer1 or layer2) if extent not changed and other layers not changed. Yours sincerely, Sev From daithiquinn at gmail.com Fri Feb 10 11:37:07 2012 From: daithiquinn at gmail.com (David Quinn) Date: Fri, 10 Feb 2012 14:37:07 -0500 Subject: [mapserver-users] php_mapscript.so library Message-ID: Hi List, I'm following the instructionson the Mapserver website to install the PHP module, but I'm confused by this line: Copy the php_mapscript.so library to your PHP extensions directory, and then use the dl() function to load the module at the beginning of your PHP scripts. See also the PHP function extension_loaded()to check whether an extension is already loaded. I just re-downloaded and unzipped mapserver-6.0.1 but I don't see the php_mapscript.so library anywhere. Also, is there a way that I check if I compiled Mapserver with '*?with-php=DIR' *I compiled it for CentOS Linux a few months ago and cannot remember all of the options that I chose. Thanks, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Feb 10 12:25:20 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 10 Feb 2012 20:25:20 +0000 Subject: [mapserver-users] Redraw only one layer In-Reply-To: <213451328898403@web61.yandex.ru> References: <213451328898403@web61.yandex.ru> Message-ID: You can't w/MapServer. Layers are composited into a single image. You could use something on the client (e.g. OpenLayers, GeoMoose, etc...) to composite separate images. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mmypost mmypost Sent: Friday, February 10, 2012 12:27 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Redraw only one layer Hi Sorry for my bad English. I use mapscript for .Net. I have a some layers: layer1: off layer2: off layer3: on layer4: on ...... layer_N: on I turn on layer1 and mapserver very long time redraw map. I turn on layer2 and mapserver very long time redraw map again. I think, that mapserver redraw all layers every time. How I can force mapserver(by mapscript) draw only one layer (layer1 or layer2) if extent not changed and other layers not changed. Yours sincerely, Sev _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Sat Feb 11 01:08:07 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 11 Feb 2012 09:08:07 +0000 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: <1328893529.4f354e59b422f@webmail.free.fr> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6306972D@suutari.haapa.mmm.fi> , <1328893529.4f354e59b422f@webmail.free.fr> Message-ID: <84446DEF76453C439E9E97E438E13A630709E0@pasuri.haapa.mmm.fi> Hi, Sorry about long message but I like pretty much about the idea to be able to send Mapserver, mapfiles and data in one single package so that the end user would only need to unzip, launch Mapserver and enjoy. With the package like the one I am pointing later in this message it is already possible, but the resulting service is not fast enough. However, GDAL is pretty fast with Spatialite so I believe and hope that there is just some minory thing to adjust on the Mapserver side for making it ten times faster with Spatialite than it is now. I prepared a package for demonstrating why I believe that Mapserver does not make queries in the best possible way. The package is rather big because it contains the whole MS4W 3.0.4beta1 and mapfiles and a Spatilite database from OpenStreetMap data. It is ready to use on Windows after doing these steps: - Dowload from http://latuviitta.org/documents/MS_GDAL_Spatialite_test.zip - Unzip to a root of any disk drive - Open a command window, go to [disk_letter]:\ms4w\apache\bin and give command "httpd" First, make a query with ogrinfo. GDAL 1.9.0 is included in the package, just go to \ms4w\ first and run the setenv.bat first. D:\ms4w\data>ogrinfo -so berlin.sqlite osm_line -spat 1496458.316816 6889766.373 154 1497120.112054 6890295.209530 This will be pretty fast. Now send the following url with a browser. It will make Mapserver to query the same layer http://localhost:8060/cgi-bin/mapserv.exe?map=/ms4w/osm_maps/osm_wms.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=663&HEIGHT=530&LAYERS=roadsclose_01&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=1496457.8169701756,6889765.873308353,1497120.611899381,6890295.70937544&SRS=EPSG:3857&STYLES= I suppose it will take a few seconds before the image is ready. For me it took 9,1 seconds. Here is the full listing about what I got into log file with DEBUG 5 [Sat Feb 11 10:06:00 2012].726000 msOGRFileOpen(\ms4w\data\berlin.sqlite)... [Sat Feb 11 10:06:00 2012].730000 OGROPen(\ms4w\data\berlin.sqlite) [Sat Feb 11 10:06:03 2012].732000 msConnPoolRegister(roadsclose_01,\ms4w\data\berlin.sqlite,03771718) [Sat Feb 11 10:06:06 2012].435000 msOGRFileWhichShapes: Setting spatial filter to 1496458.316816 6889766.373154 1497120.112054 6890295.209530 [Sat Feb 11 10:06:09 2012].52000 msOGRFileNextShape: Returning shape=801, tile=0 [Sat Feb 11 10:06:09 2012].369000 msOGRFileNextShape: Returning shape=29054, tile=0 [Sat Feb 11 10:06:09 2012].371000 msOGRFileNextShape: Returning shape=29154, tile=0 [Sat Feb 11 10:06:09 2012].372000 msOGRFileNextShape: Returning shape=29173, tile=0 [Sat Feb 11 10:06:09 2012].373000 msOGRFileNextShape: Returning shape=29275, tile=0 [Sat Feb 11 10:06:09 2012].377000 msOGRFileNextShape: Returning shape=29483, tile=0 [Sat Feb 11 10:06:09 2012].378000 msOGRFileNextShape: Returning shape=29485, tile=0 [Sat Feb 11 10:06:09 2012].378000 msOGRFileNextShape: Returning shape=29504, tile=0 [Sat Feb 11 10:06:09 2012].379000 msOGRFileNextShape: Returning shape=29579, tile=0 [Sat Feb 11 10:06:09 2012].380000 msOGRFileNextShape: Returning shape=29645, tile=0 [Sat Feb 11 10:06:09 2012].380000 msOGRFileNextShape: Returning shape=29657, tile=0 [Sat Feb 11 10:06:09 2012].381000 msOGRFileNextShape: Returning shape=29658, tile=0 [Sat Feb 11 10:06:09 2012].381000 msOGRFileNextShape: Returning shape=29674, tile=0 [Sat Feb 11 10:06:09 2012].381000 msOGRFileNextShape: Returning shape=29680, tile=0 [Sat Feb 11 10:06:09 2012].381000 msOGRFileNextShape: Returning shape=29681, tile=0 [Sat Feb 11 10:06:09 2012].381000 msOGRFileNextShape: Returning shape=29695, tile=0 [Sat Feb 11 10:06:09 2012].383000 msOGRFileNextShape: Returning shape=29754, tile=0 [Sat Feb 11 10:06:09 2012].384000 msOGRFileNextShape: Returning shape=29793, tile=0 [Sat Feb 11 10:06:09 2012].385000 msOGRFileNextShape: Returning shape=29802, tile=0 [Sat Feb 11 10:06:09 2012].385000 msOGRFileNextShape: Returning shape=29817, tile=0 [Sat Feb 11 10:06:09 2012].385000 msOGRFileNextShape: Returning shape=29818, tile=0 [Sat Feb 11 10:06:09 2012].386000 msOGRFileNextShape: Returning shape=29819, tile=0 [Sat Feb 11 10:06:09 2012].387000 msOGRFileNextShape: Returning shape=29911, tile=0 [Sat Feb 11 10:06:09 2012].387000 msOGRFileNextShape: Returning shape=29924, tile=0 [Sat Feb 11 10:06:09 2012].387000 msOGRFileNextShape: Returning shape=29926, tile=0 [Sat Feb 11 10:06:09 2012].387000 msOGRFileNextShape: Returning shape=29929, tile=0 [Sat Feb 11 10:06:09 2012].388000 msOGRFileNextShape: Returning shape=29955, tile=0 [Sat Feb 11 10:06:09 2012].388000 msOGRFileNextShape: Returning shape=29969, tile=0 [Sat Feb 11 10:06:09 2012].388000 msOGRFileNextShape: Returning shape=29970, tile=0 [Sat Feb 11 10:06:09 2012].389000 msOGRFileNextShape: Returning shape=29972, tile=0 [Sat Feb 11 10:06:09 2012].389000 msOGRFileNextShape: Returning shape=29973, tile=0 [Sat Feb 11 10:06:09 2012].389000 msOGRFileNextShape: Returning shape=29991, tile=0 [Sat Feb 11 10:06:09 2012].389000 msOGRFileNextShape: Returning shape=30022, tile=0 [Sat Feb 11 10:06:09 2012].390000 msOGRFileNextShape: Returning shape=30065, tile=0 [Sat Feb 11 10:06:09 2012].390000 msOGRFileNextShape: Returning shape=30084, tile=0 [Sat Feb 11 10:06:09 2012].392000 msOGRFileNextShape: Returning shape=30174, tile=0 [Sat Feb 11 10:06:09 2012].393000 msOGRFileNextShape: Returning shape=30175, tile=0 [Sat Feb 11 10:06:09 2012].393000 msOGRFileNextShape: Returning shape=30176, tile=0 [Sat Feb 11 10:06:09 2012].394000 msOGRFileNextShape: Returning shape=30198, tile=0 [Sat Feb 11 10:06:09 2012].395000 msOGRFileNextShape: Returning shape=30255, tile=0 [Sat Feb 11 10:06:09 2012].702000 msOGRFileNextShape: Returning shape=57673, tile=0 [Sat Feb 11 10:06:09 2012].707000 msOGRFileNextShape: Returning shape=57891, tile=0 [Sat Feb 11 10:06:09 2012].708000 msOGRFileNextShape: Returning shape=57929, tile=0 [Sat Feb 11 10:06:09 2012].708000 msOGRFileNextShape: Returning shape=57937, tile=0 [Sat Feb 11 10:06:09 2012].709000 msOGRFileNextShape: Returning shape=57938, tile=0 [Sat Feb 11 10:06:09 2012].710000 msOGRFileNextShape: Returning shape=57965, tile=0 [Sat Feb 11 10:06:09 2012].775000 msOGRFileNextShape: Returning shape=62981, tile=0 [Sat Feb 11 10:06:09 2012].862000 msOGRFileNextShape: Returning shape=69883, tile=0 [Sat Feb 11 10:06:09 2012].864000 msOGRFileNextShape: Returning shape=69972, tile=0 [Sat Feb 11 10:06:09 2012].864000 msOGRFileNextShape: Returning shape=69973, tile=0 [Sat Feb 11 10:06:09 2012].869000 msOGRFileNextShape: Returning shape=70356, tile=0 [Sat Feb 11 10:06:09 2012].869000 msOGRFileNextShape: Returning shape=70359, tile=0 [Sat Feb 11 10:06:09 2012].869000 msOGRFileNextShape: Returning shape=70361, tile=0 [Sat Feb 11 10:06:09 2012].874000 msOGRFileNextShape: Returning shape=70781, tile=0 [Sat Feb 11 10:06:09 2012].874000 msOGRFileNextShape: Returning shape=70782, tile=0 [Sat Feb 11 10:06:09 2012].874000 msOGRFileNextShape: Returning shape=70783, tile=0 [Sat Feb 11 10:06:09 2012].888000 msOGRFileNextShape: Returning MS_DONE (no more shapes) [Sat Feb 11 10:06:09 2012].889000 msOGRLayerClose(\ms4w\data\berlin.sqlite). [Sat Feb 11 10:06:09 2012].889000 msOGRFileClose(\ms4w\data\berlin.sqlite,-1). [Sat Feb 11 10:06:09 2012].889000 msConnPoolRelease(roadsclose_01,\ms4w\data\berlin.sqlite,03771718) [Sat Feb 11 10:06:09 2012].889000 msConnPoolClose(\ms4w\data\berlin.sqlite,03771718) [Sat Feb 11 10:06:09 2012].898000 msDrawMap(): Layer 16 (roadsclose_01), 9.174s [Sat Feb 11 10:06:10 2012].3000 freeLayer(): freeing layer at 036FF3F8. -Jukka Rahkonen- ________________________________________ L?hett?j?: Even Rouault [even.rouault at mines-paris.org] L?hetetty: 10. helmikuuta 2012 19:05 Vastaanottaja: Lime, Steve D (DNR) Kopio: Rahkonen Jukka; 'mapserver-users at lists.osgeo.org' Aihe: RE: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? Selon "Lime, Steve D (DNR)" : > The changeset in OGR is in the spatialite driver so it doesn't look like a > program using the OGR APIs would need to do anything special. Someone > familiar with the OGR driver will have to weigh in I suspect... Does the OGR backend of MapServer always use OGR_L_SetSpatialFilter() ? I've not MapServer source code under my eyes right now, but I'm wondering if there's not a different code path according to if you specify in the mapfile a OGR layer name or a OGR SQL. > > Steve > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka > Sent: Friday, February 10, 2012 9:36 AM > To: 'mapserver-users at lists.osgeo.org' > Subject: Re: [mapserver-users] Does Mapserver utilise Spatialite spatial > index correctly? > > Hi, > > OK, lets put it this way: > Is it sure that Mapserver is firing the BBOX query so that GDAL/OGR > understands to follow the path that is implemented in > http://trac.osgeo.org/gdal/changeset/23008 > instead of making an inefficient MBRIntersects() query or some other slow > query? > > I do not believe that a user like me has a possibility to check what really > happens with Spatialite like I can do with PostGIS and Oracle because > Spatialite does not collect a log file. > > -Jukka Rahkonen- > > Lime, Steve D (DNR) wrote: > There is no native support for Spatialite in MapServer, it's all through > GDAL/OGR. > > 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: Friday, February 10, 2012 9:12 AM > To: 'mapserver-users at lists.osgeo.org' > Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index > correctly? > Hi, > > GDAL was made to utilise Spatialite spatial index effectively if it exists > with ticket > http://trac.osgeo.org/gdal/ticket/4212 > After this change ogr2ogr with -spat bounding box query is much faster. > However, when testing MS4W 3.0.4beta1 which comes with GDAL 1.9, the > rendering speed of Spatialite data with Mapserver is pretty slow. It is > evenly slow when zoomed out and zoomed in which makes me believe that the > spatial index is perhaps not used. > > Could it be that Mapserver does not utilise the improved method that was > implemented for GDAL 1.9 when it is doing spatial queries from Spatialite? > > -Jukka Rahkonen- > From jajalinux at gmail.com Sat Feb 11 01:16:06 2012 From: jajalinux at gmail.com (gabriel munteanu) Date: Sat, 11 Feb 2012 11:16:06 +0200 Subject: [mapserver-users] How to read PostGIS data & display into Openlayers? In-Reply-To: <1328896388.38695.YahooMailClassic@web160704.mail.bf1.yahoo.com> References: <1328866068.73359.YahooMailNeo@web190104.mail.sg3.yahoo.com> <1328896388.38695.YahooMailClassic@web160704.mail.bf1.yahoo.com> Message-ID: Hi, do you want to edit the features in that database? or you just want to render the features ? cheers, Gabi On Fri, Feb 10, 2012 at 7:53 PM, wrote: > > I would suggest you use a WMS/WFS service by using Geoserver or mapserver > on top of your Postgis database, then connect to the web service with > OpenLayers. > > Cheers, > > Brent Wood > > > > --- On *Fri, 2/10/12, Vivaldi Al Barado *wrote: > > > From: Vivaldi Al Barado > Subject: [mapserver-users] How to read PostGIS data & display into > Openlayers? > To: "thomas bonfort" , "John Taranu" < > jtaranu at firstbasesolutions.com> > Cc: "mapserver-users at lists.osgeo.org" > Date: Friday, February 10, 2012, 10:27 PM > > > Is there someone that can give an example > of how to access a PostGIS database from openlayer > and then displays it to the openlayer? > > Best regards > Gozali > > -----Inline Attachment Follows----- > > _______________________________________________ > 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 Jukka.Rahkonen at mmmtike.fi Sat Feb 11 02:42:00 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 11 Feb 2012 10:42:00 +0000 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: <84446DEF76453C439E9E97E438E13A630709E0@pasuri.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6306972D@suutari.haapa.mmm.fi> , <1328893529.4f354e59b422f@webmail.free.fr>, <84446DEF76453C439E9E97E438E13A630709E0@pasuri.haapa.mmm.fi> Message-ID: <84446DEF76453C439E9E97E438E13A63070A0E@pasuri.haapa.mmm.fi> Hi, Perhaps it is not the spatial index at all, or it is not the most important part? It looks like OGR is using Spatialite through a connection pool and creating a new connection and pool is pretty heavy. A first aid with a map with many layers is to use PROCESSING "CLOSE_CONNECTION=DEFER" even when running Mapserver as cgi. It can save a couple of seconds per layer which makes a very big difference with the OSM default WMS group (from 40 sec to 10 sec) . However, "CLOSE_CONNECTION=DEFER" cannot help with the pretty slow initial time but it would need some other kind of optimisation. -Jukka- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] puolesta L?hetetty: 11. helmikuuta 2012 11:08 Vastaanottaja: Even Rouault; Lime, Steve D (DNR) Kopio: 'mapserver-users at lists.osgeo.org' Aihe: Re: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? Hi, Sorry about long message but I like pretty much about the idea to be able to send Mapserver, mapfiles and data in one single package so that the end user would only need to unzip, launch Mapserver and enjoy. With the package like the one I am pointing later in this message it is already possible, but the resulting service is not fast enough. However, GDAL is pretty fast with Spatialite so I believe and hope that there is just some minory thing to adjust on the Mapserver side for making it ten times faster with Spatialite than it is now. I prepared a package for demonstrating why I believe that Mapserver does not make queries in the best possible way. The package is rather big because it contains the whole MS4W 3.0.4beta1 and mapfiles and a Spatilite database from OpenStreetMap data. It is ready to use on Windows after doing these steps: - Dowload from http://latuviitta.org/documents/MS_GDAL_Spatialite_test.zip - Unzip to a root of any disk drive - Open a command window, go to [disk_letter]:\ms4w\apache\bin and give command "httpd" First, make a query with ogrinfo. GDAL 1.9.0 is included in the package, just go to \ms4w\ first and run the setenv.bat first. D:\ms4w\data>ogrinfo -so berlin.sqlite osm_line -spat 1496458.316816 6889766.373 154 1497120.112054 6890295.209530 This will be pretty fast. Now send the following url with a browser. It will make Mapserver to query the same layer http://localhost:8060/cgi-bin/mapserv.exe?map=/ms4w/osm_maps/osm_wms.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=663&HEIGHT=530&LAYERS=roadsclose_01&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=1496457.8169701756,6889765.873308353,1497120.611899381,6890295.70937544&SRS=EPSG:3857&STYLES= I suppose it will take a few seconds before the image is ready. For me it took 9,1 seconds. Here is the full listing about what I got into log file with DEBUG 5 [Sat Feb 11 10:06:00 2012].726000 msOGRFileOpen(\ms4w\data\berlin.sqlite)... [Sat Feb 11 10:06:00 2012].730000 OGROPen(\ms4w\data\berlin.sqlite) [Sat Feb 11 10:06:03 2012].732000 msConnPoolRegister(roadsclose_01,\ms4w\data\berlin.sqlite,03771718) [Sat Feb 11 10:06:06 2012].435000 msOGRFileWhichShapes: Setting spatial filter to 1496458.316816 6889766.373154 1497120.112054 6890295.209530 [Sat Feb 11 10:06:09 2012].52000 msOGRFileNextShape: Returning shape=801, tile=0 [Sat Feb 11 10:06:09 2012].369000 msOGRFileNextShape: Returning shape=29054, tile=0 [Sat Feb 11 10:06:09 2012].371000 msOGRFileNextShape: Returning shape=29154, tile=0 [Sat Feb 11 10:06:09 2012].372000 msOGRFileNextShape: Returning shape=29173, tile=0 [Sat Feb 11 10:06:09 2012].373000 msOGRFileNextShape: Returning shape=29275, tile=0 [Sat Feb 11 10:06:09 2012].377000 msOGRFileNextShape: Returning shape=29483, tile=0 [Sat Feb 11 10:06:09 2012].378000 msOGRFileNextShape: Returning shape=29485, tile=0 [Sat Feb 11 10:06:09 2012].378000 msOGRFileNextShape: Returning shape=29504, tile=0 [Sat Feb 11 10:06:09 2012].379000 msOGRFileNextShape: Returning shape=29579, tile=0 [Sat Feb 11 10:06:09 2012].380000 msOGRFileNextShape: Returning shape=29645, tile=0 [Sat Feb 11 10:06:09 2012].380000 msOGRFileNextShape: Returning shape=29657, tile=0 [Sat Feb 11 10:06:09 2012].381000 msOGRFileNextShape: Returning shape=29658, tile=0 [Sat Feb 11 10:06:09 2012].381000 msOGRFileNextShape: Returning shape=29674, tile=0 [Sat Feb 11 10:06:09 2012].381000 msOGRFileNextShape: Returning shape=29680, tile=0 [Sat Feb 11 10:06:09 2012].381000 msOGRFileNextShape: Returning shape=29681, tile=0 [Sat Feb 11 10:06:09 2012].381000 msOGRFileNextShape: Returning shape=29695, tile=0 [Sat Feb 11 10:06:09 2012].383000 msOGRFileNextShape: Returning shape=29754, tile=0 [Sat Feb 11 10:06:09 2012].384000 msOGRFileNextShape: Returning shape=29793, tile=0 [Sat Feb 11 10:06:09 2012].385000 msOGRFileNextShape: Returning shape=29802, tile=0 [Sat Feb 11 10:06:09 2012].385000 msOGRFileNextShape: Returning shape=29817, tile=0 [Sat Feb 11 10:06:09 2012].385000 msOGRFileNextShape: Returning shape=29818, tile=0 [Sat Feb 11 10:06:09 2012].386000 msOGRFileNextShape: Returning shape=29819, tile=0 [Sat Feb 11 10:06:09 2012].387000 msOGRFileNextShape: Returning shape=29911, tile=0 [Sat Feb 11 10:06:09 2012].387000 msOGRFileNextShape: Returning shape=29924, tile=0 [Sat Feb 11 10:06:09 2012].387000 msOGRFileNextShape: Returning shape=29926, tile=0 [Sat Feb 11 10:06:09 2012].387000 msOGRFileNextShape: Returning shape=29929, tile=0 [Sat Feb 11 10:06:09 2012].388000 msOGRFileNextShape: Returning shape=29955, tile=0 [Sat Feb 11 10:06:09 2012].388000 msOGRFileNextShape: Returning shape=29969, tile=0 [Sat Feb 11 10:06:09 2012].388000 msOGRFileNextShape: Returning shape=29970, tile=0 [Sat Feb 11 10:06:09 2012].389000 msOGRFileNextShape: Returning shape=29972, tile=0 [Sat Feb 11 10:06:09 2012].389000 msOGRFileNextShape: Returning shape=29973, tile=0 [Sat Feb 11 10:06:09 2012].389000 msOGRFileNextShape: Returning shape=29991, tile=0 [Sat Feb 11 10:06:09 2012].389000 msOGRFileNextShape: Returning shape=30022, tile=0 [Sat Feb 11 10:06:09 2012].390000 msOGRFileNextShape: Returning shape=30065, tile=0 [Sat Feb 11 10:06:09 2012].390000 msOGRFileNextShape: Returning shape=30084, tile=0 [Sat Feb 11 10:06:09 2012].392000 msOGRFileNextShape: Returning shape=30174, tile=0 [Sat Feb 11 10:06:09 2012].393000 msOGRFileNextShape: Returning shape=30175, tile=0 [Sat Feb 11 10:06:09 2012].393000 msOGRFileNextShape: Returning shape=30176, tile=0 [Sat Feb 11 10:06:09 2012].394000 msOGRFileNextShape: Returning shape=30198, tile=0 [Sat Feb 11 10:06:09 2012].395000 msOGRFileNextShape: Returning shape=30255, tile=0 [Sat Feb 11 10:06:09 2012].702000 msOGRFileNextShape: Returning shape=57673, tile=0 [Sat Feb 11 10:06:09 2012].707000 msOGRFileNextShape: Returning shape=57891, tile=0 [Sat Feb 11 10:06:09 2012].708000 msOGRFileNextShape: Returning shape=57929, tile=0 [Sat Feb 11 10:06:09 2012].708000 msOGRFileNextShape: Returning shape=57937, tile=0 [Sat Feb 11 10:06:09 2012].709000 msOGRFileNextShape: Returning shape=57938, tile=0 [Sat Feb 11 10:06:09 2012].710000 msOGRFileNextShape: Returning shape=57965, tile=0 [Sat Feb 11 10:06:09 2012].775000 msOGRFileNextShape: Returning shape=62981, tile=0 [Sat Feb 11 10:06:09 2012].862000 msOGRFileNextShape: Returning shape=69883, tile=0 [Sat Feb 11 10:06:09 2012].864000 msOGRFileNextShape: Returning shape=69972, tile=0 [Sat Feb 11 10:06:09 2012].864000 msOGRFileNextShape: Returning shape=69973, tile=0 [Sat Feb 11 10:06:09 2012].869000 msOGRFileNextShape: Returning shape=70356, tile=0 [Sat Feb 11 10:06:09 2012].869000 msOGRFileNextShape: Returning shape=70359, tile=0 [Sat Feb 11 10:06:09 2012].869000 msOGRFileNextShape: Returning shape=70361, tile=0 [Sat Feb 11 10:06:09 2012].874000 msOGRFileNextShape: Returning shape=70781, tile=0 [Sat Feb 11 10:06:09 2012].874000 msOGRFileNextShape: Returning shape=70782, tile=0 [Sat Feb 11 10:06:09 2012].874000 msOGRFileNextShape: Returning shape=70783, tile=0 [Sat Feb 11 10:06:09 2012].888000 msOGRFileNextShape: Returning MS_DONE (no more shapes) [Sat Feb 11 10:06:09 2012].889000 msOGRLayerClose(\ms4w\data\berlin.sqlite). [Sat Feb 11 10:06:09 2012].889000 msOGRFileClose(\ms4w\data\berlin.sqlite,-1). [Sat Feb 11 10:06:09 2012].889000 msConnPoolRelease(roadsclose_01,\ms4w\data\berlin.sqlite,03771718) [Sat Feb 11 10:06:09 2012].889000 msConnPoolClose(\ms4w\data\berlin.sqlite,03771718) [Sat Feb 11 10:06:09 2012].898000 msDrawMap(): Layer 16 (roadsclose_01), 9.174s [Sat Feb 11 10:06:10 2012].3000 freeLayer(): freeing layer at 036FF3F8. -Jukka Rahkonen- ________________________________________ L?hett?j?: Even Rouault [even.rouault at mines-paris.org] L?hetetty: 10. helmikuuta 2012 19:05 Vastaanottaja: Lime, Steve D (DNR) Kopio: Rahkonen Jukka; 'mapserver-users at lists.osgeo.org' Aihe: RE: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? Selon "Lime, Steve D (DNR)" : > The changeset in OGR is in the spatialite driver so it doesn't look like a > program using the OGR APIs would need to do anything special. Someone > familiar with the OGR driver will have to weigh in I suspect... Does the OGR backend of MapServer always use OGR_L_SetSpatialFilter() ? I've not MapServer source code under my eyes right now, but I'm wondering if there's not a different code path according to if you specify in the mapfile a OGR layer name or a OGR SQL. > > Steve > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka > Sent: Friday, February 10, 2012 9:36 AM > To: 'mapserver-users at lists.osgeo.org' > Subject: Re: [mapserver-users] Does Mapserver utilise Spatialite spatial > index correctly? > > Hi, > > OK, lets put it this way: > Is it sure that Mapserver is firing the BBOX query so that GDAL/OGR > understands to follow the path that is implemented in > http://trac.osgeo.org/gdal/changeset/23008 > instead of making an inefficient MBRIntersects() query or some other slow > query? > > I do not believe that a user like me has a possibility to check what really > happens with Spatialite like I can do with PostGIS and Oracle because > Spatialite does not collect a log file. > > -Jukka Rahkonen- > > Lime, Steve D (DNR) wrote: > There is no native support for Spatialite in MapServer, it's all through > GDAL/OGR. > > 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: Friday, February 10, 2012 9:12 AM > To: 'mapserver-users at lists.osgeo.org' > Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index > correctly? > Hi, > > GDAL was made to utilise Spatialite spatial index effectively if it exists > with ticket > http://trac.osgeo.org/gdal/ticket/4212 > After this change ogr2ogr with -spat bounding box query is much faster. > However, when testing MS4W 3.0.4beta1 which comes with GDAL 1.9, the > rendering speed of Spatialite data with Mapserver is pretty slow. It is > evenly slow when zoomed out and zoomed in which makes me believe that the > spatial index is perhaps not used. > > Could it be that Mapserver does not utilise the improved method that was > implemented for GDAL 1.9 when it is doing spatial queries from Spatialite? > > -Jukka Rahkonen- > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From even.rouault at mines-paris.org Sat Feb 11 03:53:08 2012 From: even.rouault at mines-paris.org (Even Rouault) Date: Sat, 11 Feb 2012 12:53:08 +0100 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: <84446DEF76453C439E9E97E438E13A63070A0E@pasuri.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A630709E0@pasuri.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A63070A0E@pasuri.haapa.mmm.fi> Message-ID: <201202111253.08664.even.rouault@mines-paris.org> Le samedi 11 f?vrier 2012 11:42:00, Rahkonen Jukka a ?crit : > Hi, > > Perhaps it is not the spatial index at all, or it is not the most important > part? It looks like OGR is using Spatialite through a connection pool and > creating a new connection and pool is pretty heavy. A first aid with a > map with many layers is to use PROCESSING "CLOSE_CONNECTION=DEFER" even > when running Mapserver as cgi. It can save a couple of seconds per layer > which makes a very big difference with the OSM default WMS group (from 40 > sec to 10 sec) . However, "CLOSE_CONNECTION=DEFER" cannot help with the > pretty slow initial time but it would need some other kind of > optimisation. Jukka, I'm currently analyzing your test case. Currently, I'm just using the mapserv executable from command line and after several consecutive runs, it stabilizes around 1.7 second to run REQUEST_METHOD=GET QUERY_STRING="map=/ms4w/osm_maps/osm_wms.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=663&HEIGHT=530&LAYERS=roadsclose_01&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=1496457.8169701756,6889765.873308353,1497120.611899381,6890295.70937544&SRS=EPSG:3857&STYLES=" mapserv > /dev/null Not as bad as what you are seing, but I believe it could be made faster. For the record my machine is a Core i5 750 with 4GB RAM, Ubuntu 10.04 64bit. I've found 2 main areas that are time inefficient : 1) The opening of the DB needs some time to enumerate the layers. 2) The spatial index is not taken into account with your mapfiles. This is due to using stuff like "DATA "select geometry, osm_id ,highway,ref, name, tunnel from osm_line where highway is not null order by z_order"" that causes OGR to return a 'select layer' and not a table layer. Table layer currently benefit from spatial index when SetSpatialFilter() is called on them, but select layers do not. So you end up enumerating all features returned by the SQL request in the DATA. For 1), I'm looking if it wouldn't be possible for the OGR SQLite driver to defer that enumeration For 2), I'm looking if it wouldn't be possible for the OGR SQLite driver to modify the provided SQL request to insert in it the spatial filter, at least in simple cases (no join, no union). Even From even.rouault at mines-paris.org Sat Feb 11 07:03:04 2012 From: even.rouault at mines-paris.org (Even Rouault) Date: Sat, 11 Feb 2012 16:03:04 +0100 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: <201202111253.08664.even.rouault@mines-paris.org> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A63070A0E@pasuri.haapa.mmm.fi> <201202111253.08664.even.rouault@mines-paris.org> Message-ID: <201202111603.04597.even.rouault@mines-paris.org> Le samedi 11 f?vrier 2012 12:53:08, Even Rouault a ?crit : > Le samedi 11 f?vrier 2012 11:42:00, Rahkonen Jukka a ?crit : > > Hi, > > > > Perhaps it is not the spatial index at all, or it is not the most > > important part? It looks like OGR is using Spatialite through a > > connection pool and creating a new connection and pool is pretty heavy. > > A first aid with a map with many layers is to use PROCESSING > > "CLOSE_CONNECTION=DEFER" even when running Mapserver as cgi. It can > > save a couple of seconds per layer which makes a very big difference > > with the OSM default WMS group (from 40 sec to 10 sec) . However, > > "CLOSE_CONNECTION=DEFER" cannot help with the pretty slow initial time > > but it would need some other kind of > > optimisation. > > Jukka, > > I'm currently analyzing your test case. Currently, I'm just using the > mapserv executable from command line and after several consecutive runs, > it stabilizes around 1.7 second to run > > REQUEST_METHOD=GET > QUERY_STRING="map=/ms4w/osm_maps/osm_wms.map&REQUEST=GetMap&SERVICE=WMS&VER > SION=1.1.1&WIDTH=663&HEIGHT=530&LAYERS=roadsclose_01&TRANSPARENT=TRUE&FORMA > T=image%2Fpng&BBOX=1496457.8169701756,6889765.873308353,1497120.611899381,6 > 890295.70937544&SRS=EPSG:3857&STYLES=" mapserv > /dev/null > > Not as bad as what you are seing, but I believe it could be made faster. > For the record my machine is a Core i5 750 with 4GB RAM, Ubuntu 10.04 > 64bit. > > I've found 2 main areas that are time inefficient : > > 1) The opening of the DB needs some time to enumerate the layers. > > 2) The spatial index is not taken into account with your mapfiles. This is > due to using stuff like "DATA "select geometry, osm_id ,highway,ref, name, > tunnel from osm_line where highway is not null order by z_order"" that > causes OGR to return a 'select layer' and not a table layer. Table layer > currently benefit from spatial index when SetSpatialFilter() is called on > them, but select layers do not. So you end up enumerating all features > returned by the SQL request in the DATA. > > For 1), I'm looking if it wouldn't be possible for the OGR SQLite driver to > defer that enumeration > For 2), I'm looking if it wouldn't be possible for the OGR SQLite driver to > modify the provided SQL request to insert in it the spatial filter, at > least in simple cases (no join, no union). I've commited improvements in GDAL trunk for both points ( http://trac.osgeo.org/gdal/changeset/23944 and http://trac.osgeo.org/gdal/changeset/23945 ) that make the above request go from 1.7 sec to 0.54 sec . I don't think there's any more significant speed gain to expect now (at least on OGR side). > > Even > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From even.rouault at mines-paris.org Sat Feb 11 08:00:06 2012 From: even.rouault at mines-paris.org (Even Rouault) Date: Sat, 11 Feb 2012 17:00:06 +0100 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: <201202111603.04597.even.rouault@mines-paris.org> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <201202111253.08664.even.rouault@mines-paris.org> <201202111603.04597.even.rouault@mines-paris.org> Message-ID: <201202111700.06255.even.rouault@mines-paris.org> > > I've commited improvements in GDAL trunk for both points ( > http://trac.osgeo.org/gdal/changeset/23944 and > http://trac.osgeo.org/gdal/changeset/23945 ) that make the above request go > from 1.7 sec to 0.54 sec . I don't think there's any more significant speed > gain to expect now (at least on OGR side). Actually, I found a new improvement (committed in http://trac.osgeo.org/gdal/changeset/23946) that make the query time go down to 0.07 sec (*) ! There was a slowness when opening the layer due to the presence of an ORDER BY clause in the DATA string, that was evaluated before setting the spatial filter. (*) For comparison, I translated your database to Postgis, and set-up the connection mapfile to use that Postgis database (still through OGR, not the MapServer Postgis backend). The same request with OGR PG is run in 0.18 sec. > > > Even > > _______________________________________________ > > 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 Jukka.Rahkonen at mmmtike.fi Sat Feb 11 13:43:15 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 11 Feb 2012 21:43:15 +0000 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: <201202111700.06255.even.rouault@mines-paris.org> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <201202111253.08664.even.rouault@mines-paris.org> <201202111603.04597.even.rouault@mines-paris.org>, <201202111700.06255.even.rouault@mines-paris.org> Message-ID: <84446DEF76453C439E9E97E438E13A63070B00@pasuri.haapa.mmm.fi> Even Rouault wrote: > >> I've commited improvements in GDAL trunk for both points ( >> http://trac.osgeo.org/gdal/changeset/23944 and >> http://trac.osgeo.org/gdal/changeset/23945 ) that make the above request go >> from 1.7 sec to 0.54 sec . I don't think there's any more significant speed >> gain to expect now (at least on OGR side). > Actually, I found a new improvement (committed in > http://trac.osgeo.org/gdal/changeset/23946) that make the query time go down > to 0.07 sec (*) ! There was a slowness when opening the layer due to the > presence of an ORDER BY clause in the DATA string, that was evaluated before > setting the spatial filter. > (*) For comparison, I translated your database to Postgis, and set-up the > connection mapfile to use that Postgis database (still through OGR, not the > MapServer Postgis backend). The same request with OGR PG is run in 0.18 sec. Awesome! About 25 times faster in the evening than it was in the morning. My opinion is that because Spatialite seems to be, at least in this case, more that two times faster backend for Mapserver than PostGIS it should lead to some intensive and controlled testing now. Regards, -Jukka Rahkonen- From even.rouault at mines-paris.org Sat Feb 11 13:44:10 2012 From: even.rouault at mines-paris.org (Even Rouault) Date: Sat, 11 Feb 2012 22:44:10 +0100 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: <201202111700.06255.even.rouault@mines-paris.org> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <201202111603.04597.even.rouault@mines-paris.org> <201202111700.06255.even.rouault@mines-paris.org> Message-ID: <201202112244.10943.even.rouault@mines-paris.org> Jukka, I've continued playing with your OSM data. I've got extra performance by adding attribute indexes, so that every field you use in a WHERE clause is indexed. For example for the roadsclose, railways and landuse layers, you could create the following indexes: CREATE INDEX idx_osm_line_railway ON osm_line(railway) CREATE INDEX idx_osm_line_highway ON osm_line(highway) CREATE INDEX idx_osm_polygon_landuse ON osm_polygon(landuse) CREATE INDEX idx_osm_polygon_leisure ON osm_polygon(leisure) CREATE INDEX idx_osm_polygon_amenity ON osm_polygon(amenity) CREATE INDEX idx_osm_polygon_aeroway ON osm_polygon(aeroway) CREATE INDEX idx_osm_polygon_natural ON osm_polygon(natural) CREATE INDEX idx_osm_polygon_highway ON osm_polygon(highway) CREATE INDEX idx_osm_polygon_waterway ON osm_polygon(waterway) Best regards, Even From ian.walberg at airborne.aero Sat Feb 11 20:05:41 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sat, 11 Feb 2012 23:05:41 -0500 Subject: [mapserver-users] Circles around points in miles Message-ID: We need to draw circles of 50 and 100 miles around a list of points. How can we do this? Thanks Ian From cheryl.bckl at gmail.com Sun Feb 12 08:43:36 2012 From: cheryl.bckl at gmail.com (cheryl buckley) Date: Sun, 12 Feb 2012 17:43:36 +0100 Subject: [mapserver-users] Mapserver + PostGIS ==> Blank Screen Message-ID: Hi, I'm trying to get Mapserver connected with PostGIS. PostGIS is holding a shape2pgsql contourline import in the table "atest" while a test has the following columns (shape2pgsql default): -------------------------------------- | Actions | gid | id | height | geom | -------------------------------------- Quantum GIS picks the conection up perfectly to atest but with Mapserver I just get a blank screen - or the color of IMAGECOLOR [. . .] definition in test-2.map definitions. Somehow it seems like I got the connection between Mapserver and PostGIS running - at least the debug.log doesn't complain. But still I'm not seeing any of my contour lines as I'm used to by Quantum GIS ;( Could someone give me a hint of what I'm missing out or where my mistake is? I got the feeling that it is either has something to do with the DATA property or the projection properties ? The Link with which I call the mapserv binary is: http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map&mode=map But then it complains: msDrawMap(): Image handling error. Unable to initialize image. msPrepareImage(): General error message. Image dimensions not specified. msCalculateScale(): General error message. Invalid image width or height. So I changed it to the following: http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map&mode=map&mapsize=600+800 which results in no errors but therefore in a blank screen with a clean debug.log ... Even this one wont change anything: http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map&mode=map&mapsize=600+800&layer=Contour . . . my test-2.map definition is below: P.S.: TEMPLATE "./Maps/test.map" does exist and is read and writeable to the user which runs the webserver (Apache => User: www) CONFIG "PROJ_LIB" "/usr/local/share/proj/" should also be valid: FreeBSD [~]# ls /usr/local/share/proj FL WO hawaii null stlrnc GL27 alaska nad.lst nzgd2kgrid0005.gsb stpaul IGNF conus nad27 other.extra world MD epsg nad83 proj_def.dat TN esri ntf_r93.gsb prvi WI esri.extra ntv1_can.dat stgeorge # =================================== test-2.map =================================== # MAP CONFIG "PROJ_LIB" "/usr/local/share/proj/" CONFIG "MS_ERRORFILE" "./debug.log" DEBUG 5 IMAGECOLOR 100 100 100 NAME "Contour" EXTENT -90 -180 90 180 STATUS ON PROJECTION "init=epsg:4326" END WEB METADATA WMS_NAME "Contour" WMS_TITLE "SRTM - ContourLines" WMS_ABSTRACT "My First Web Map Server" WMS_SERVER_VERSION "1.1.1" WMS_SRS "EPSG:4326" WMS_ONLINERESOURCE "http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map" WMS_ATTRIBUTION_TITLE "Some Attribute Title" WMS_ATTRIBUTION_ONLINERESOURCE "http://www.myHomepage.com/" WMS_KEYWORDLIST "DEM,SRTM,Contourlines,Contour,Lines,Digital,Area,Model" WMS_FEATURE_INFO_MIME_TYPE "text/html" WMS_CONTACTELECTRONICMAILADDRESS "User at Domain.tld" WMS_CONTACTPERSON "Some Reference Person" WMS_CONTACTVOICETELEPHONE "+49-phoneNumber" WMS_CONTACTORGANIZATION "Private" WMS_ENCODING "utf-8" END END LAYER # query layer from PostgreSQL table NAME "Contour" EXTENT 143 -20 145 -19 TYPE LINE STATUS ON DEBUG ON TEMPLATE "./Maps/test.map" DUMP true METADATA WMS_NAME "Contour" WMS_TITLE "Contour Lines - 90m" WMS_ABSTRACT "Contour Lines - 90m" WMS_SRS "EPSG:4326" GML_INCLUDE_ITEMS "all" END CONNECTIONTYPE POSTGIS CONNECTION "host=192.168.10.15 port=5432 dbname=my_spatial_db user=admin password=******" DATA "geom FROM atest using unique gid using srid=4326" CLASS STYLE COLOR 000 000 000 OUTLINECOLOR 199 199 199 END END END END # ================================================================================== # # =================================== debug.log =================================== # FreeBSD [/usr/local/www/cgi-bin/Maps]# cat ./debug.log [Sat Feb 11 19:02:01 2012].3032 CGI Request 1 on process 2663 [Sat Feb 11 19:02:01 2012].10325 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Sat Feb 11 19:02:01 2012].10365 msDrawMap(): WMS/WFS set-up and query, 0.000s [Sat Feb 11 19:02:01 2012].10388 msDrawMap(): Drawing Label Cache, 0.000s [Sat Feb 11 19:02:01 2012].10398 msDrawMap() total time: 0.007s [Sat Feb 11 19:02:01 2012].76893 msSaveImage(stdout) total time: 0.066s [Sat Feb 11 19:02:01 2012].77721 mapserv request processing time (loadmap not incl.): 0.075s [Sat Feb 11 19:02:01 2012].77749 msFreeMap(): freeing map at 0x29879800. [Sat Feb 11 19:02:01 2012].77839 msPostGISLayerIsOpen called. # ================================================================================== # From bfraser at geoanalytic.com Sun Feb 12 09:49:48 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 12 Feb 2012 10:49:48 -0700 Subject: [mapserver-users] Mapserver + PostGIS ==> Blank Screen In-Reply-To: References: Message-ID: <4F37FBBC.6010602@geoanalytic.com> Cherly, One issue could be that you've asked Mapserver to render the entire world: EXTENT -90 -180 90 180 into a small image: mapsize=600+800 Adjust the extents of the output image to be the extent of you contour data. I see that you've given that in your LAYER definition EXTENT 143 -20 145 -19 so try that for the map extent (but I think it would be valid only if the contours were stored in a Geographic system and not a Projected system). What SRS are you storing your data in? The same as your display (EPSG:4326)? Best Regards, Brent Fraser On 2/12/2012 9:43 AM, cheryl buckley wrote: > Hi, > > I'm trying to get Mapserver connected with PostGIS. PostGIS is holding > a shape2pgsql contourline import in the table "atest" while a test has > the following columns (shape2pgsql default): > > -------------------------------------- > | Actions | gid | id | height | geom | > -------------------------------------- > > Quantum GIS picks the conection up perfectly to atest but with > Mapserver I just get a blank screen - or the color of IMAGECOLOR [. . > .] definition in test-2.map definitions. > > Somehow it seems like I got the connection between Mapserver and > PostGIS running - at least the debug.log doesn't complain. But still > I'm not seeing any of my contour lines as I'm used to by Quantum GIS > ;( > > Could someone give me a hint of what I'm missing out or where my mistake is? > I got the feeling that it is either has something to do with the DATA > property or the projection properties ? > > The Link with which I call the mapserv binary is: > > http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map&mode=map > But then it complains: > msDrawMap(): Image handling error. Unable to initialize image. > msPrepareImage(): General error message. Image dimensions not > specified. msCalculateScale(): General error message. Invalid image > width or height. > > So I changed it to the following: > http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map&mode=map&mapsize=600+800 > which results in no errors but therefore in a blank screen with a > clean debug.log ... > > Even this one wont change anything: > http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map&mode=map&mapsize=600+800&layer=Contour > > > . . . my test-2.map definition is below: > > P.S.: TEMPLATE "./Maps/test.map" does exist and is read and writeable > to the user which runs the webserver (Apache => User: www) > CONFIG "PROJ_LIB" "/usr/local/share/proj/" should also be valid: > > FreeBSD [~]# ls /usr/local/share/proj > FL WO hawaii null stlrnc > GL27 alaska nad.lst nzgd2kgrid0005.gsb stpaul > IGNF conus nad27 other.extra world > MD epsg nad83 proj_def.dat > TN esri ntf_r93.gsb prvi > WI esri.extra ntv1_can.dat stgeorge > > > > # =================================== test-2.map > =================================== # > > > MAP > > CONFIG "PROJ_LIB" "/usr/local/share/proj/" > CONFIG "MS_ERRORFILE" "./debug.log" > DEBUG 5 > > IMAGECOLOR 100 100 100 > > NAME "Contour" > EXTENT -90 -180 90 180 > STATUS ON > > PROJECTION > "init=epsg:4326" > END > > WEB > METADATA > WMS_NAME "Contour" > WMS_TITLE "SRTM - ContourLines" > WMS_ABSTRACT "My First Web Map Server" > WMS_SERVER_VERSION "1.1.1" > WMS_SRS "EPSG:4326" > WMS_ONLINERESOURCE > "http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map" > WMS_ATTRIBUTION_TITLE "Some Attribute Title" > WMS_ATTRIBUTION_ONLINERESOURCE "http://www.myHomepage.com/" > WMS_KEYWORDLIST > "DEM,SRTM,Contourlines,Contour,Lines,Digital,Area,Model" > WMS_FEATURE_INFO_MIME_TYPE "text/html" > WMS_CONTACTELECTRONICMAILADDRESS "User at Domain.tld" > WMS_CONTACTPERSON "Some Reference Person" > WMS_CONTACTVOICETELEPHONE "+49-phoneNumber" > WMS_CONTACTORGANIZATION "Private" > WMS_ENCODING "utf-8" > END > END > > > LAYER # query layer from PostgreSQL table > NAME "Contour" > EXTENT 143 -20 145 -19 > TYPE LINE > STATUS ON > DEBUG ON > TEMPLATE "./Maps/test.map" > DUMP true > METADATA > WMS_NAME "Contour" > WMS_TITLE "Contour Lines - 90m" > WMS_ABSTRACT "Contour Lines - 90m" > WMS_SRS "EPSG:4326" > GML_INCLUDE_ITEMS "all" > END > > CONNECTIONTYPE POSTGIS > CONNECTION "host=192.168.10.15 port=5432 > dbname=my_spatial_db user=admin password=******" > DATA "geom FROM atest using unique gid using srid=4326" > > CLASS > STYLE > COLOR 000 000 000 > OUTLINECOLOR 199 199 199 > END > END > > END > END > > > # ================================================================================== > # > > > > > > > > > # =================================== debug.log > =================================== # > > FreeBSD [/usr/local/www/cgi-bin/Maps]# cat ./debug.log > > [Sat Feb 11 19:02:01 2012].3032 CGI Request 1 on process 2663 > [Sat Feb 11 19:02:01 2012].10325 msDrawMap(): rendering using > outputformat named png (AGG/PNG). > [Sat Feb 11 19:02:01 2012].10365 msDrawMap(): WMS/WFS set-up and query, 0.000s > [Sat Feb 11 19:02:01 2012].10388 msDrawMap(): Drawing Label Cache, 0.000s > [Sat Feb 11 19:02:01 2012].10398 msDrawMap() total time: 0.007s > [Sat Feb 11 19:02:01 2012].76893 msSaveImage(stdout) total time: 0.066s > [Sat Feb 11 19:02:01 2012].77721 mapserv request processing time > (loadmap not incl.): 0.075s > [Sat Feb 11 19:02:01 2012].77749 msFreeMap(): freeing map at 0x29879800. > [Sat Feb 11 19:02:01 2012].77839 msPostGISLayerIsOpen called. > > # ================================================================================== > # > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From cheryl.bckl at gmail.com Sun Feb 12 14:06:48 2012 From: cheryl.bckl at gmail.com (cheryl buckley) Date: Sun, 12 Feb 2012 23:06:48 +0100 Subject: [mapserver-users] Mapserver + PostGIS ==> Blank Screen In-Reply-To: <4F37FBBC.6010602@geoanalytic.com> References: <4F37FBBC.6010602@geoanalytic.com> Message-ID: Hi Brent, Thanks for your reply. The SRS my data is stored in WGS84. Unfortunately, I am not getting configuration file right. I adjusted the map EXTENT to something smaller, Map Extent 16 -28 25 -16 The layer extent I also adjusted to the output image of the contour data, Layer Extent 17.002 -20.965 18.007 -20.002 I played around with the figures a little but I get this error message at all times, "msDrawMap(): Image handling error. Failed to draw layer named 'Contour'. msPostGISLayerWhichShapes(): Query error. Error (ERROR: function geomfromtext(unknown, integer) does not exist LINE 1: ...R'),'hex') as geom,"gid" from atest where geom && GeomFromTe... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. ) executing query: select encode(ST_AsBinary(ST_Force_2D("geom"),'NDR'),'hex') as geom,"gid" from atest where geom && GeomFromText('POLYGON((15.8348164627364 -28,15.8348164627364 -16,25.1651835372636 -16,25.1651835372636 -28,15.8348164627364 -28))',4326)" Since this is my first time configurating a mapfile, I am unsure of what is essential and what not, thus, I copied and pasted the script and adjusted it to my CONNECTION details. I am not too sure whether it is vital to have both a "map extent" and a "layer extend"? Do you perhaps have any hints in this regard? Best Regards Cheryl On Sun, Feb 12, 2012 at 6:49 PM, Brent Fraser wrote: > Cherly, > > One issue could be that you've asked Mapserver to render the entire world: > > > EXTENT -90 -180 90 180 > > into a small image: > > mapsize=600+800 > > Adjust the extents of the output image to be the extent of you contour > data. I see that you've given that in your LAYER definition > > > EXTENT 143 -20 145 -19 > > so try that for the map extent (but I think it would be valid only if the > contours were stored in a Geographic system and not a Projected system). > What SRS are you storing your data in? The same as your display > (EPSG:4326)? > > Best Regards, > Brent Fraser > > > > On 2/12/2012 9:43 AM, cheryl buckley wrote: > >> Hi, >> >> I'm trying to get Mapserver connected with PostGIS. PostGIS is holding >> a shape2pgsql contourline import in the table "atest" while a test has >> the following columns (shape2pgsql default): >> >> ------------------------------**-------- >> | Actions | gid | id | height | geom | >> ------------------------------**-------- >> >> Quantum GIS picks the conection up perfectly to atest but with >> Mapserver I just get a blank screen - or the color of IMAGECOLOR [. . >> .] definition in test-2.map definitions. >> >> Somehow it seems like I got the connection between Mapserver and >> PostGIS running - at least the debug.log doesn't complain. But still >> I'm not seeing any of my contour lines as I'm used to by Quantum GIS >> ;( >> >> Could someone give me a hint of what I'm missing out or where my mistake >> is? >> I got the feeling that it is either has something to do with the DATA >> property or the projection properties ? >> >> The Link with which I call the mapserv binary is: >> >> http://192.168.10.15/cgi-bin/**mapserv?map=./Maps/test.map&**mode=map >> But then it complains: >> msDrawMap(): Image handling error. Unable to initialize image. >> msPrepareImage(): General error message. Image dimensions not >> specified. msCalculateScale(): General error message. Invalid image >> width or height. >> >> So I changed it to the following: >> http://192.168.10.15/cgi-bin/**mapserv?map=./Maps/test.map&** >> mode=map&mapsize=600+800 >> which results in no errors but therefore in a blank screen with a >> clean debug.log ... >> >> Even this one wont change anything: >> http://192.168.10.15/cgi-bin/**mapserv?map=./Maps/test.map&** >> mode=map&mapsize=600+800&**layer=Contour >> >> >> . . . my test-2.map definition is below: >> >> P.S.: TEMPLATE "./Maps/test.map" does exist and is read and writeable >> to the user which runs the webserver (Apache => User: www) >> CONFIG "PROJ_LIB" "/usr/local/share/proj/" should also be valid: >> >> FreeBSD [~]# ls /usr/local/share/proj >> FL WO hawaii >> null stlrnc >> GL27 alaska nad.lst >> nzgd2kgrid0005.gsb stpaul >> IGNF conus nad27 other.extra >> world >> MD epsg nad83 >> proj_def.dat >> TN esri ntf_r93.gsb >> prvi >> WI esri.extra ntv1_can.dat >> stgeorge >> >> >> >> # ==============================**===== test-2.map >> ==============================**===== # >> >> >> MAP >> >> CONFIG "PROJ_LIB" "/usr/local/share/proj/" >> CONFIG "MS_ERRORFILE" "./debug.log" >> DEBUG 5 >> >> IMAGECOLOR 100 100 100 >> >> NAME "Contour" >> EXTENT -90 -180 90 180 >> STATUS ON >> >> PROJECTION >> "init=epsg:4326" >> END >> >> WEB >> METADATA >> WMS_NAME "Contour" >> WMS_TITLE "SRTM - ContourLines" >> WMS_ABSTRACT "My First Web Map Server" >> WMS_SERVER_VERSION "1.1.1" >> WMS_SRS "EPSG:4326" >> WMS_ONLINERESOURCE >> "http://192.168.10.15/cgi-bin/**mapserv?map=./Maps/test.map >> " >> WMS_ATTRIBUTION_TITLE "Some Attribute Title" >> WMS_ATTRIBUTION_ONLINERESOURCE "http://www.myHomepage.com/" >> WMS_KEYWORDLIST >> "DEM,SRTM,Contourlines,**Contour,Lines,Digital,Area,**Model" >> WMS_FEATURE_INFO_MIME_TYPE "text/html" >> WMS_**CONTACTELECTRONICMAILADDRESS "User at Domain.tld" >> WMS_CONTACTPERSON "Some Reference Person" >> WMS_CONTACTVOICETELEPHONE "+49-phoneNumber" >> WMS_CONTACTORGANIZATION "Private" >> WMS_ENCODING "utf-8" >> END >> END >> >> >> LAYER # query layer from PostgreSQL table >> NAME "Contour" >> EXTENT 143 -20 145 -19 >> TYPE LINE >> STATUS ON >> DEBUG ON >> TEMPLATE "./Maps/test.map" >> DUMP true >> METADATA >> WMS_NAME "Contour" >> WMS_TITLE "Contour Lines - 90m" >> WMS_ABSTRACT "Contour Lines - 90m" >> WMS_SRS "EPSG:4326" >> GML_INCLUDE_ITEMS "all" >> END >> >> CONNECTIONTYPE POSTGIS >> CONNECTION "host=192.168.10.15 port=5432 >> dbname=my_spatial_db user=admin password=******" >> DATA "geom FROM atest using unique gid using >> srid=4326" >> >> CLASS >> STYLE >> COLOR 000 000 000 >> OUTLINECOLOR 199 199 199 >> END >> END >> >> END >> END >> >> >> # ==============================**==============================** >> ====================== >> # >> >> >> >> >> >> >> >> >> # ==============================**===== debug.log >> ==============================**===== # >> >> FreeBSD [/usr/local/www/cgi-bin/Maps]# cat ./debug.log >> >> [Sat Feb 11 19:02:01 2012].3032 CGI Request 1 on process 2663 >> [Sat Feb 11 19:02:01 2012].10325 msDrawMap(): rendering using >> outputformat named png (AGG/PNG). >> [Sat Feb 11 19:02:01 2012].10365 msDrawMap(): WMS/WFS set-up and query, >> 0.000s >> [Sat Feb 11 19:02:01 2012].10388 msDrawMap(): Drawing Label Cache, 0.000s >> [Sat Feb 11 19:02:01 2012].10398 msDrawMap() total time: 0.007s >> [Sat Feb 11 19:02:01 2012].76893 msSaveImage(stdout) total time: 0.066s >> [Sat Feb 11 19:02:01 2012].77721 mapserv request processing time >> (loadmap not incl.): 0.075s >> [Sat Feb 11 19:02:01 2012].77749 msFreeMap(): freeing map at 0x29879800. >> [Sat Feb 11 19:02:01 2012].77839 msPostGISLayerIsOpen called. >> >> # ==============================**==============================** >> ====================== >> # >> ______________________________**_________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.**org >> http://lists.osgeo.org/**mailman/listinfo/mapserver-**users >> >> > -- Greetings Cheryl -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Sun Feb 12 16:10:35 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Sun, 12 Feb 2012 17:10:35 -0700 Subject: [mapserver-users] Mapserver + PostGIS ==> Blank Screen In-Reply-To: References: <4F37FBBC.6010602@geoanalytic.com> Message-ID: <4F3854FB.6060904@geoanalytic.com> Yikes! That looks like a compatibility problem. PostGIS has been changing their function names (e.g. from "GeomFromText" to "ST_GeomFromText"), and I don't think Mapserver has kept up. Can you use an older version of PostGIS (<2.0)? http://postgis.refractions.net/pipermail/postgis-devel/2012-January/017272.html Best Regards, Brent Fraser On 2/12/2012 3:06 PM, cheryl buckley wrote: > Hi Brent, > > Thanks for your reply. > > The SRS my data is stored in WGS84. > > Unfortunately, I am not getting configuration file right. I adjusted > the map EXTENT to something smaller, > > Map > > Extent 16 -28 25 -16 > > > The layer extent I also adjusted to the output image of the contour data, > > Layer > > Extent 17.002 -20.965 18.007 -20.002 > > I played around with the figures a little but I get this error message > at all times, > > "msDrawMap(): Image handling error. Failed to draw layer named > 'Contour'. msPostGISLayerWhichShapes(): Query error. Error (ERROR: > function geomfromtext(unknown, integer) does not exist LINE 1: > ...R'),'hex') as geom,"gid" from atest where geom && GeomFromTe... ^ > HINT: No function matches the given name and argument types. You might > need to add explicit type casts. ) executing query: select > encode(ST_AsBinary(ST_Force_2D("geom"),'NDR'),'hex') as geom,"gid" > from atest where geom && GeomFromText('POLYGON((15.8348164627364 > -28,15.8348164627364 -16,25.1651835372636 -16,25.1651835372636 > -28,15.8348164627364 -28))',4326)" > > Since this is my first time configurating a mapfile, I am unsure of > what is essential and what not, thus, I copied and pasted the script > and adjusted it to my CONNECTION details. I am not too sure whether it > is vital to have both a "map extent" and a "layer extend"? > > Do you perhaps have any hints in this regard? > > Best Regards > Cheryl > > > > On Sun, Feb 12, 2012 at 6:49 PM, Brent Fraser > wrote: > > Cherly, > > One issue could be that you've asked Mapserver to render the > entire world: > > > EXTENT -90 -180 90 180 > > into a small image: > > mapsize=600+800 > > Adjust the extents of the output image to be the extent of you > contour data. I see that you've given that in your LAYER definition > > > EXTENT 143 -20 145 -19 > > so try that for the map extent (but I think it would be valid only > if the contours were stored in a Geographic system and not a > Projected system). What SRS are you storing your data in? The > same as your display (EPSG:4326)? > > Best Regards, > Brent Fraser > > > > On 2/12/2012 9:43 AM, cheryl buckley wrote: > > Hi, > > I'm trying to get Mapserver connected with PostGIS. PostGIS is > holding > a shape2pgsql contourline import in the table "atest" while a > test has > the following columns (shape2pgsql default): > > -------------------------------------- > | Actions | gid | id | height | geom | > -------------------------------------- > > Quantum GIS picks the conection up perfectly to atest but with > Mapserver I just get a blank screen - or the color of > IMAGECOLOR [. . > .] definition in test-2.map definitions. > > Somehow it seems like I got the connection between Mapserver and > PostGIS running - at least the debug.log doesn't complain. But > still > I'm not seeing any of my contour lines as I'm used to by > Quantum GIS > ;( > > Could someone give me a hint of what I'm missing out or where > my mistake is? > I got the feeling that it is either has something to do with > the DATA > property or the projection properties ? > > The Link with which I call the mapserv binary is: > > http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map&mode=map > > But then it complains: > msDrawMap(): Image handling error. Unable to initialize image. > msPrepareImage(): General error message. Image dimensions not > specified. msCalculateScale(): General error message. Invalid > image > width or height. > > So I changed it to the following: > http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map&mode=map&mapsize=600+800 > > which results in no errors but therefore in a blank screen with a > clean debug.log ... > > Even this one wont change anything: > http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map&mode=map&mapsize=600+800&layer=Contour > > > > . . . my test-2.map definition is below: > > P.S.: TEMPLATE "./Maps/test.map" does exist and is read and > writeable > to the user which runs the webserver (Apache => User: www) > CONFIG "PROJ_LIB" "/usr/local/share/proj/" should also be valid: > > FreeBSD [~]# ls /usr/local/share/proj > FL WO hawaii > null stlrnc > GL27 alaska nad.lst > nzgd2kgrid0005.gsb stpaul > IGNF conus nad27 > other.extra world > MD epsg nad83 > proj_def.dat > TN esri ntf_r93.gsb > prvi > WI esri.extra ntv1_can.dat > stgeorge > > > > # =================================== test-2.map > =================================== # > > > MAP > > CONFIG "PROJ_LIB" "/usr/local/share/proj/" > CONFIG "MS_ERRORFILE" "./debug.log" > DEBUG 5 > > IMAGECOLOR 100 100 100 > > NAME "Contour" > EXTENT -90 -180 90 180 > STATUS ON > > PROJECTION > "init=epsg:4326" > END > > WEB > METADATA > WMS_NAME "Contour" > WMS_TITLE "SRTM - ContourLines" > WMS_ABSTRACT "My First Web Map > Server" > WMS_SERVER_VERSION "1.1.1" > WMS_SRS "EPSG:4326" > WMS_ONLINERESOURCE > "http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map" > WMS_ATTRIBUTION_TITLE "Some Attribute > Title" > WMS_ATTRIBUTION_ONLINERESOURCE > "http://www.myHomepage.com/" > WMS_KEYWORDLIST > "DEM,SRTM,Contourlines,Contour,Lines,Digital,Area,Model" > WMS_FEATURE_INFO_MIME_TYPE "text/html" > WMS_CONTACTELECTRONICMAILADDRESS "User at Domain.tld" > WMS_CONTACTPERSON "Some Reference > Person" > WMS_CONTACTVOICETELEPHONE "+49-phoneNumber" > WMS_CONTACTORGANIZATION "Private" > WMS_ENCODING "utf-8" > END > END > > > LAYER # query layer from PostgreSQL table > NAME "Contour" > EXTENT 143 -20 145 -19 > TYPE LINE > STATUS ON > DEBUG ON > TEMPLATE "./Maps/test.map" > DUMP true > METADATA > WMS_NAME "Contour" > WMS_TITLE "Contour Lines - 90m" > WMS_ABSTRACT "Contour Lines - 90m" > WMS_SRS "EPSG:4326" > GML_INCLUDE_ITEMS "all" > END > > CONNECTIONTYPE POSTGIS > CONNECTION "host=192.168.10.15 port=5432 > dbname=my_spatial_db user=admin password=******" > DATA "geom FROM atest using unique gid > using srid=4326" > > CLASS > STYLE > COLOR 000 000 000 > OUTLINECOLOR 199 199 199 > END > END > > END > END > > > # > ================================================================================== > # > > > > > > > > > # =================================== debug.log > =================================== # > > FreeBSD [/usr/local/www/cgi-bin/Maps]# cat ./debug.log > > [Sat Feb 11 19:02:01 2012].3032 CGI Request 1 on process 2663 > [Sat Feb 11 19:02:01 2012].10325 msDrawMap(): rendering using > outputformat named png (AGG/PNG). > [Sat Feb 11 19:02:01 2012].10365 msDrawMap(): WMS/WFS set-up > and query, 0.000s > [Sat Feb 11 19:02:01 2012].10388 msDrawMap(): Drawing Label > Cache, 0.000s > [Sat Feb 11 19:02:01 2012].10398 msDrawMap() total time: 0.007s > [Sat Feb 11 19:02:01 2012].76893 msSaveImage(stdout) total > time: 0.066s > [Sat Feb 11 19:02:01 2012].77721 mapserv request processing time > (loadmap not incl.): 0.075s > [Sat Feb 11 19:02:01 2012].77749 msFreeMap(): freeing map at > 0x29879800. > [Sat Feb 11 19:02:01 2012].77839 msPostGISLayerIsOpen called. > > # > ================================================================================== > # > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > Greetings > Cheryl > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sun Feb 12 16:48:15 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 12 Feb 2012 19:48:15 -0500 Subject: [mapserver-users] Mapserver + PostGIS ==> Blank Screen In-Reply-To: <4F3854FB.6060904@geoanalytic.com> References: <4F37FBBC.6010602@geoanalytic.com> <4F3854FB.6060904@geoanalytic.com> Message-ID: <4F385DCF.70006@swoodbridge.com> Opened a ticket for this problem: http://trac.osgeo.org/mapserver/ticket/4186 Add yourselves to the CC list if you want to track it. -Steve W On 2/12/2012 7:10 PM, Brent Fraser wrote: > Yikes! That looks like a compatibility problem. PostGIS has been > changing their function names (e.g. from "GeomFromText" to > "ST_GeomFromText"), and I don't think Mapserver has kept up. Can you > use an older version of PostGIS (<2.0)? > > http://postgis.refractions.net/pipermail/postgis-devel/2012-January/017272.html > > Best Regards, > Brent Fraser > > > On 2/12/2012 3:06 PM, cheryl buckley wrote: >> Hi Brent, >> >> Thanks for your reply. >> >> The SRS my data is stored in WGS84. >> >> Unfortunately, I am not getting configuration file right. I adjusted >> the map EXTENT to something smaller, >> >> Map >> >> Extent 16 -28 25 -16 >> >> >> The layer extent I also adjusted to the output image of the contour data, >> >> Layer >> >> Extent 17.002 -20.965 18.007 -20.002 >> >> I played around with the figures a little but I get this error message >> at all times, >> >> "msDrawMap(): Image handling error. Failed to draw layer named >> 'Contour'. msPostGISLayerWhichShapes(): Query error. Error (ERROR: >> function geomfromtext(unknown, integer) does not exist LINE 1: >> ...R'),'hex') as geom,"gid" from atest where geom && GeomFromTe... ^ >> HINT: No function matches the given name and argument types. You might >> need to add explicit type casts. ) executing query: select >> encode(ST_AsBinary(ST_Force_2D("geom"),'NDR'),'hex') as geom,"gid" >> from atest where geom && GeomFromText('POLYGON((15.8348164627364 >> -28,15.8348164627364 -16,25.1651835372636 -16,25.1651835372636 >> -28,15.8348164627364 -28))',4326)" >> >> Since this is my first time configurating a mapfile, I am unsure of >> what is essential and what not, thus, I copied and pasted the script >> and adjusted it to my CONNECTION details. I am not too sure whether it >> is vital to have both a "map extent" and a "layer extend"? >> >> Do you perhaps have any hints in this regard? >> >> Best Regards >> Cheryl >> >> >> >> On Sun, Feb 12, 2012 at 6:49 PM, Brent Fraser > > wrote: >> >> Cherly, >> >> One issue could be that you've asked Mapserver to render the >> entire world: >> >> >> EXTENT -90 -180 90 180 >> >> into a small image: >> >> mapsize=600+800 >> >> Adjust the extents of the output image to be the extent of you >> contour data. I see that you've given that in your LAYER definition >> >> >> EXTENT 143 -20 145 -19 >> >> so try that for the map extent (but I think it would be valid only >> if the contours were stored in a Geographic system and not a >> Projected system). What SRS are you storing your data in? The >> same as your display (EPSG:4326)? >> >> Best Regards, >> Brent Fraser >> >> >> >> On 2/12/2012 9:43 AM, cheryl buckley wrote: >> >> Hi, >> >> I'm trying to get Mapserver connected with PostGIS. PostGIS is >> holding >> a shape2pgsql contourline import in the table "atest" while a >> test has >> the following columns (shape2pgsql default): >> >> -------------------------------------- >> | Actions | gid | id | height | geom | >> -------------------------------------- >> >> Quantum GIS picks the conection up perfectly to atest but with >> Mapserver I just get a blank screen - or the color of >> IMAGECOLOR [. . >> .] definition in test-2.map definitions. >> >> Somehow it seems like I got the connection between Mapserver and >> PostGIS running - at least the debug.log doesn't complain. But >> still >> I'm not seeing any of my contour lines as I'm used to by >> Quantum GIS >> ;( >> >> Could someone give me a hint of what I'm missing out or where >> my mistake is? >> I got the feeling that it is either has something to do with >> the DATA >> property or the projection properties ? >> >> The Link with which I call the mapserv binary is: >> >> http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map&mode=map >> >> But then it complains: >> msDrawMap(): Image handling error. Unable to initialize image. >> msPrepareImage(): General error message. Image dimensions not >> specified. msCalculateScale(): General error message. Invalid >> image >> width or height. >> >> So I changed it to the following: >> http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map&mode=map&mapsize=600+800 >> >> which results in no errors but therefore in a blank screen with a >> clean debug.log ... >> >> Even this one wont change anything: >> http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map&mode=map&mapsize=600+800&layer=Contour >> >> >> >> . . . my test-2.map definition is below: >> >> P.S.: TEMPLATE "./Maps/test.map" does exist and is read and >> writeable >> to the user which runs the webserver (Apache => User: www) >> CONFIG "PROJ_LIB" "/usr/local/share/proj/" should also be valid: >> >> FreeBSD [~]# ls /usr/local/share/proj >> FL WO hawaii >> null stlrnc >> GL27 alaska nad.lst >> nzgd2kgrid0005.gsb stpaul >> IGNF conus nad27 >> other.extra world >> MD epsg nad83 >> proj_def.dat >> TN esri ntf_r93.gsb >> prvi >> WI esri.extra ntv1_can.dat >> stgeorge >> >> >> >> # =================================== test-2.map >> =================================== # >> >> >> MAP >> >> CONFIG "PROJ_LIB" "/usr/local/share/proj/" >> CONFIG "MS_ERRORFILE" "./debug.log" >> DEBUG 5 >> >> IMAGECOLOR 100 100 100 >> >> NAME "Contour" >> EXTENT -90 -180 90 180 >> STATUS ON >> >> PROJECTION >> "init=epsg:4326" >> END >> >> WEB >> METADATA >> WMS_NAME "Contour" >> WMS_TITLE "SRTM - ContourLines" >> WMS_ABSTRACT "My First Web Map Server" >> WMS_SERVER_VERSION "1.1.1" >> WMS_SRS "EPSG:4326" >> WMS_ONLINERESOURCE >> "http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map" >> WMS_ATTRIBUTION_TITLE "Some Attribute Title" >> WMS_ATTRIBUTION_ONLINERESOURCE >> "http://www.myHomepage.com/" >> WMS_KEYWORDLIST >> "DEM,SRTM,Contourlines,Contour,Lines,Digital,Area,Model" >> WMS_FEATURE_INFO_MIME_TYPE "text/html" >> WMS_CONTACTELECTRONICMAILADDRESS "User at Domain.tld" >> >> WMS_CONTACTPERSON "Some Reference Person" >> WMS_CONTACTVOICETELEPHONE "+49-phoneNumber" >> WMS_CONTACTORGANIZATION "Private" >> WMS_ENCODING "utf-8" >> END >> END >> >> >> LAYER # query layer from PostgreSQL table >> NAME "Contour" >> EXTENT 143 -20 145 -19 >> TYPE LINE >> STATUS ON >> DEBUG ON >> TEMPLATE "./Maps/test.map" >> DUMP true >> METADATA >> WMS_NAME "Contour" >> WMS_TITLE "Contour Lines - 90m" >> WMS_ABSTRACT "Contour Lines - 90m" >> WMS_SRS "EPSG:4326" >> GML_INCLUDE_ITEMS "all" >> END >> >> CONNECTIONTYPE POSTGIS >> CONNECTION "host=192.168.10.15 port=5432 >> dbname=my_spatial_db user=admin password=******" >> DATA "geom FROM atest using unique gid using >> srid=4326" >> >> CLASS >> STYLE >> COLOR 000 000 000 >> OUTLINECOLOR 199 199 199 >> END >> END >> >> END >> END >> >> >> # >> ================================================================================== >> # >> >> >> >> >> >> >> >> >> # =================================== debug.log >> =================================== # >> >> FreeBSD [/usr/local/www/cgi-bin/Maps]# cat ./debug.log >> >> [Sat Feb 11 19:02:01 2012].3032 CGI Request 1 on process 2663 >> [Sat Feb 11 19:02:01 2012].10325 msDrawMap(): rendering using >> outputformat named png (AGG/PNG). >> [Sat Feb 11 19:02:01 2012].10365 msDrawMap(): WMS/WFS set-up >> and query, 0.000s >> [Sat Feb 11 19:02:01 2012].10388 msDrawMap(): Drawing Label >> Cache, 0.000s >> [Sat Feb 11 19:02:01 2012].10398 msDrawMap() total time: 0.007s >> [Sat Feb 11 19:02:01 2012].76893 msSaveImage(stdout) total >> time: 0.066s >> [Sat Feb 11 19:02:01 2012].77721 mapserv request processing time >> (loadmap not incl.): 0.075s >> [Sat Feb 11 19:02:01 2012].77749 msFreeMap(): freeing map at >> 0x29879800. >> [Sat Feb 11 19:02:01 2012].77839 msPostGISLayerIsOpen called. >> >> # >> ================================================================================== >> # >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> -- >> Greetings >> Cheryl >> >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mmypost at yandex.ru Sun Feb 12 23:05:32 2012 From: mmypost at yandex.ru (mmypost mmypost) Date: Mon, 13 Feb 2012 11:05:32 +0400 Subject: [mapserver-users] complex label Message-ID: <79061329116732@web138.yandex.ru> Hi Sorry for my bad English. Can I draw complex label as attachment file by mapserver? I think I can draw the label if I separate the label for 3 field and apply "offset" property, but may be exists more standard path? Yours sincerely, Sev -------------- next part -------------- A non-text attachment was scrubbed... Name: Lbl.png Type: application/octet-stream Size: 609 bytes Desc: not available URL: From jmckenna at gatewaygeomatics.com Mon Feb 13 05:26:10 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 13 Feb 2012 09:26:10 -0400 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: <201202112244.10943.even.rouault@mines-paris.org> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <201202111603.04597.even.rouault@mines-paris.org> <201202111700.06255.even.rouault@mines-paris.org> <201202112244.10943.even.rouault@mines-paris.org> Message-ID: <4F390F72.407@gatewaygeomatics.com> Quite an interesting discussion! Thanks guys. -jeff On 12-02-11 5:44 PM, Even Rouault wrote: > Jukka, > > I've continued playing with your OSM data. > > I've got extra performance by adding attribute indexes, so that every field you > use in a WHERE clause is indexed. For example for the roadsclose, railways and > landuse layers, you could create the following indexes: > > CREATE INDEX idx_osm_line_railway ON osm_line(railway) > CREATE INDEX idx_osm_line_highway ON osm_line(highway) > CREATE INDEX idx_osm_polygon_landuse ON osm_polygon(landuse) > CREATE INDEX idx_osm_polygon_leisure ON osm_polygon(leisure) > CREATE INDEX idx_osm_polygon_amenity ON osm_polygon(amenity) > CREATE INDEX idx_osm_polygon_aeroway ON osm_polygon(aeroway) > CREATE INDEX idx_osm_polygon_natural ON osm_polygon(natural) > CREATE INDEX idx_osm_polygon_highway ON osm_polygon(highway) > CREATE INDEX idx_osm_polygon_waterway ON osm_polygon(waterway) > -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Thomas.Ellett at statkart.no Mon Feb 13 06:44:07 2012 From: Thomas.Ellett at statkart.no (Thomas Ellett) Date: Mon, 13 Feb 2012 15:44:07 +0100 Subject: SV: [mapserver-users] Run time substitution - Like instead of = In-Reply-To: References: <1328286648904-4362317.post@n6.nabble.com> Message-ID: Hi Mike, Thanks for getting back to me. Worked a treat, thanks!! Ended up with "prosjektnu = '%pn%' or '%pn%' = '\%pn\%'" on the filter Tom -----Opprinnelig melding----- Fra: Smith, Michael ERDC-CRREL-NH [mailto:Michael.Smith at usace.army.mil] Sendt: 3. februar 2012 17:57 Til: Thomas Ellett; mapserver-users at lists.osgeo.org Emne: Re: [mapserver-users] Run time substitution - Like instead of = Tom, What I am using with a database connection is a default value of "1=1" so that is always true, it returns all records. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 2/3/12 11:30 AM, "tellett" wrote: >Hi All, > >I'm using runtime substitution to replace the value of an expression and >thats working fine, however, if I don't set the expression value in the >url, >I want the layer to show all the records. For example my class looks likes >this: > >CLASS > NAME 'FKB-A' > EXPRESSION '%pn%' > STYLE > COLOR 254 150 254 > OUTLINECOLOR 1 1 1 > END > END > >and when I use this request: > >.....REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&LAYERS=fkb_prosjektstanda rd& >STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&CRS=EPSG:432 6&B >BOX=58.9930983171506,9.40049150322111,59.8470137571506,10.904184647298& WID >TH=1650&HEIGHT=937&pn=LACHVE11 > >I get back 1 record which is correct. However, if I drop the &pn=LACHVE11 >of >course I get no results back. Is there any way of changing this so that I >can get all the records of the table returned? > >I thought about using the 'default_pn' option in the metadata and using >wildcards but as this is an '=' expression rather than a 'LIKE' expression >wildcards are useless. Maybe its just because its friday afternoon, but I >just can't see a way of doing this, help!!! > >Best Regards > >Tom > >-- >View this message in context: >http://osgeo-org.1560.n6.nabble.com/Run-time-substitution-Like-instead- of- >tp4362317p4362317.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 aboudreault at mapgears.com Mon Feb 13 08:02:00 2012 From: aboudreault at mapgears.com (Alan Boudreault) Date: Mon, 13 Feb 2012 11:02:00 -0500 Subject: [mapserver-users] php_mapscript.so library In-Reply-To: References: Message-ID: <4F3933F8.9060206@mapgears.com> The php_mapscript.so will be in the mapscript/php directory IIF you compiled MapServer with the appropriate option. I think you can open the config.log file to see if you have enabled the php binding when you compiled MS initially. Alan On 12-02-10 02:37 PM, David Quinn wrote: > Hi List, > > I'm following the instructions > > on the Mapserver website to install the PHP module, but I'm confused by > this line: > > Copy the php_mapscript.so library to your PHP extensions directory, and > then use the dl() function to load the module at the beginning of your > PHP scripts. See also the PHP function extension_loaded() > to check > whether an extension is already loaded. > > I just re-downloaded and unzipped mapserver-6.0.1 but I don't see the > php_mapscript.so library anywhere. > > Also, is there a way that I check if I compiled Mapserver with > '/?with-php=DIR' /I compiled it for CentOS Linux a few months ago and > cannot remember all of the options that I chose. > > Thanks, > David > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ From David.Fawcett at state.mn.us Mon Feb 13 07:56:07 2012 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Mon, 13 Feb 2012 15:56:07 +0000 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: <84446DEF76453C439E9E97E438E13A63070B00@pasuri.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <201202111253.08664.even.rouault@mines-paris.org> <201202111603.04597.even.rouault@mines-paris.org>, <201202111700.06255.even.rouault@mines-paris.org> <84446DEF76453C439E9E97E438E13A63070B00@pasuri.haapa.mmm.fi> Message-ID: A pretty good story to tell when talking about the advantages of OpenSource software... -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Saturday, February 11, 2012 3:43 PM To: Even Rouault; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? Even Rouault wrote: > >> I've commited improvements in GDAL trunk for both points ( Awesome! About 25 times faster in the evening than it was in the morning. My opinion is that because Spatialite seems to be, at least in this case, more that two times faster backend for Mapserver than PostGIS it should lead to some intensive and controlled testing now. Regards, -Jukka Rahkonen-_______________________________________________ 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 Mon Feb 13 09:17:35 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 13 Feb 2012 17:17:35 +0000 Subject: [mapserver-users] complex label In-Reply-To: <79061329116732@web138.yandex.ru> References: <79061329116732@web138.yandex.ru> Message-ID: With existing versions you'd have to use multiple layers and offsets but it's possible that collision detection would mess with the 3 components and you'd be left with partials. That said we just committed an initial implementation of RFC 77 which allows for the definition of multiple labels within a class. Each can draw content from different fields in the data and is rendered with different settings so you can change font, size, color etc... They're considered 1 label for collision detection purposes so no partials... Configuration looks like: LABELITEM 'big_letter' CLASS ... styles ... LABEL FONT 'arial-bold' SIZE 24 POSITION CC ... END LABEL FONT 'arial' SIZE 8 TEXT '[subscript_number]' # behaves just like class->text POSITION LR OFFSET ... # probably have to play with values here ... END LABEL FONT 'arial-bold' SIZE 8 TEXT '([superscript_number])' # behaves just like class->text POSITION UR OFFSET ... # probably have to play with values here ... END END Labels can also have expressions defined so you can conditionally display label components. Anyway, if you're brave you'd need to use trunk. Remember this is brand new and perhaps a bit buggy but any testing/feedback is appreciated. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mmypost mmypost Sent: Monday, February 13, 2012 1:06 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] complex label Hi Sorry for my bad English. Can I draw complex label as attachment file by mapserver? I think I can draw the label if I separate the label for 3 field and apply "offset" property, but may be exists more standard path? Yours sincerely, Sev From qc_mad at hotmail.com Mon Feb 13 09:29:13 2012 From: qc_mad at hotmail.com (maddqc) Date: Mon, 13 Feb 2012 09:29:13 -0800 (PST) Subject: [mapserver-users] type Truetype error for label angle Message-ID: <1329154153245-4465768.post@n6.nabble.com> Hi all, I have a projet that I need to place the label with a specific angle. But, if I understand it well, to use the angle, we need to have a TYPE TRUETYPE, but I always get an error (pink screen of death) when I use this type. Seriously, I don't know how to solve this. Thanks in advance. Here is the error from the apache log file. agg2GetTruetypeTextBBox(): TrueType Font error. AGG error loading font (/opt/mapping/maps/fonts/tahoma.ttf), referer: http:......... Here is my MAPFILE MAP NAME "Val Joli" SIZE 800 650 STATUS ON CONFIG "MS_ERRORFILE" stderr DEBUG 3 PROJECTION "init=epsg:32188" END #projection EXTENT 414540 5040590 435170 5058350 UNITS meters FONTSET "/opt/mapping/maps/fonts/fontset.list" SYMBOLSET "/opt/mapping/maps/symbols/symbol.sym" # prevent the pink screen of death on large monitors MAXSIZE 10000 TRANSPARENT TRUE #INCLUDE "../../mapping_globals.map" WEB METADATA 'ows_title' 'M.R.C. Val-St-Fran?ois' 'ows_srs' 'EPSG:26915 EPSG:900913 EPSG:32188 EPSG:4326' END END SYMBOL NAME 'hatch-test' TYPE HATCH END #symbol LAYER NAME 'habillage1000' DATA '../420_MRC_Val_St_Francois/42095_ValJoli/42095_Habillage_1000_mtm8_text.shp' STATUS ON TYPE POINT LABELITEM 'TEXTSTRING' LABELCACHE ON LABELMAXSCALE 20000 CLASS NAME 'habillage1000' STYLE SIZE 7.0 COLOR 0 0 0 END LABEL FONT tahoma TYPE TRUETYPE SIZE 12 COLOR 0 0 0 ANGLE [TEXT_ANGLE] POSITION cc FORCE true ANTIALIAS true PARTIALS true END END TRANSPARENCY 100 END END -- View this message in context: http://osgeo-org.1560.n6.nabble.com/type-Truetype-error-for-label-angle-tp4465768p4465768.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Mon Feb 13 09:32:08 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 13 Feb 2012 17:32:08 +0000 Subject: [mapserver-users] type Truetype error for label angle In-Reply-To: <1329154153245-4465768.post@n6.nabble.com> References: <1329154153245-4465768.post@n6.nabble.com> Message-ID: If you take angles out of it do you still see the error? The message you reference makes me think it's a more basic problem like a file not existing or permissions being wrong on that file. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of maddqc Sent: Monday, February 13, 2012 11:29 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] type Truetype error for label angle Hi all, I have a projet that I need to place the label with a specific angle. But, if I understand it well, to use the angle, we need to have a TYPE TRUETYPE, but I always get an error (pink screen of death) when I use this type. Seriously, I don't know how to solve this. Thanks in advance. Here is the error from the apache log file. agg2GetTruetypeTextBBox(): TrueType Font error. AGG error loading font (/opt/mapping/maps/fonts/tahoma.ttf), referer: http:......... Here is my MAPFILE MAP NAME "Val Joli" SIZE 800 650 STATUS ON CONFIG "MS_ERRORFILE" stderr DEBUG 3 PROJECTION "init=epsg:32188" END #projection EXTENT 414540 5040590 435170 5058350 UNITS meters FONTSET "/opt/mapping/maps/fonts/fontset.list" SYMBOLSET "/opt/mapping/maps/symbols/symbol.sym" # prevent the pink screen of death on large monitors MAXSIZE 10000 TRANSPARENT TRUE #INCLUDE "../../mapping_globals.map" WEB METADATA 'ows_title' 'M.R.C. Val-St-Fran?ois' 'ows_srs' 'EPSG:26915 EPSG:900913 EPSG:32188 EPSG:4326' END END SYMBOL NAME 'hatch-test' TYPE HATCH END #symbol LAYER NAME 'habillage1000' DATA '../420_MRC_Val_St_Francois/42095_ValJoli/42095_Habillage_1000_mtm8_text.shp' STATUS ON TYPE POINT LABELITEM 'TEXTSTRING' LABELCACHE ON LABELMAXSCALE 20000 CLASS NAME 'habillage1000' STYLE SIZE 7.0 COLOR 0 0 0 END LABEL FONT tahoma TYPE TRUETYPE SIZE 12 COLOR 0 0 0 ANGLE [TEXT_ANGLE] POSITION cc FORCE true ANTIALIAS true PARTIALS true END END TRANSPARENCY 100 END END -- View this message in context: http://osgeo-org.1560.n6.nabble.com/type-Truetype-error-for-label-angle-tp4465768p4465768.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Mon Feb 13 09:37:07 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 13 Feb 2012 17:37:07 +0000 Subject: [mapserver-users] RE: Circles around points in miles In-Reply-To: References: Message-ID: Couple of options depending on version: 1) 6.x: buffer the points using a style geomtransform 2) all versions: use layer SIZEUNITS to draw a circle symbol in miles I think option 1 is more flexible but option 2 is probably faster. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Saturday, February 11, 2012 10:06 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Circles around points in miles We need to draw circles of 50 and 100 miles around a list of points. How can we do this? Thanks Ian _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From qc_mad at hotmail.com Mon Feb 13 09:39:31 2012 From: qc_mad at hotmail.com (maddqc) Date: Mon, 13 Feb 2012 09:39:31 -0800 (PST) Subject: [mapserver-users] RE: type Truetype error for label angle In-Reply-To: References: <1329154153245-4465768.post@n6.nabble.com> Message-ID: <1329154771411-4465803.post@n6.nabble.com> Thanks for your quick reply... but no, if I comment the angle line, the error is still there. It really comes from the truetype line. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/type-Truetype-error-for-label-angle-tp4465768p4465803.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Mon Feb 13 09:46:36 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 13 Feb 2012 18:46:36 +0100 Subject: [mapserver-users] RE: type Truetype error for label angle In-Reply-To: <1329154771411-4465803.post@n6.nabble.com> References: <1329154153245-4465768.post@n6.nabble.com> <1329154771411-4465803.post@n6.nabble.com> Message-ID: does /opt/mapping/maps/fonts/tahoma.ttf exist, and is it accessible by your web user ? On Mon, Feb 13, 2012 at 18:39, maddqc wrote: > Thanks for your quick reply... > > but no, if I comment the angle line, the error is still there. It really > comes from the truetype line. > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/type-Truetype-error-for-label-angle-tp4465768p4465803.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 bfraser at geoanalytic.com Mon Feb 13 09:50:37 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 13 Feb 2012 10:50:37 -0700 Subject: [mapserver-users] type Truetype error for label angle In-Reply-To: <1329154153245-4465768.post@n6.nabble.com> References: <1329154153245-4465768.post@n6.nabble.com> Message-ID: <4F394D6D.3010207@geoanalytic.com> Have a look in your FONTSET file FONTSET "/opt/mapping/maps/fonts/fontset.list" and make sure the font file referenced by "tahoma" actually exists. For example GeoMoose delivers a fontset.list file but not most of the fonts listed (it only delivers Open Data Bitstream Vera fonts). E.g. try "vera_sans" as a font name. Best Regards, Brent Fraser On 2/13/2012 10:29 AM, maddqc wrote: > Hi all, > > I have a projet that I need to place the label with a specific angle. > > But, if I understand it well, to use the angle, we need to have a TYPE > TRUETYPE, but I always get an error (pink screen of death) when I use this > type. > > Seriously, I don't know how to solve this. > > Thanks in advance. > > Here is the error from the apache log file. > > agg2GetTruetypeTextBBox(): TrueType Font error. AGG error loading font > (/opt/mapping/maps/fonts/tahoma.ttf), referer: http:......... > > Here is my MAPFILE > > MAP > NAME "Val Joli" > SIZE 800 650 > STATUS ON > > CONFIG "MS_ERRORFILE" stderr > DEBUG 3 > > PROJECTION > "init=epsg:32188" > END #projection > > EXTENT 414540 5040590 435170 5058350 > > UNITS meters > > FONTSET "/opt/mapping/maps/fonts/fontset.list" > SYMBOLSET "/opt/mapping/maps/symbols/symbol.sym" > > # prevent the pink screen of death on large monitors > MAXSIZE 10000 > > TRANSPARENT TRUE > > #INCLUDE "../../mapping_globals.map" > > WEB > METADATA > 'ows_title' 'M.R.C. Val-St-Fran?ois' > 'ows_srs' 'EPSG:26915 EPSG:900913 EPSG:32188 EPSG:4326' > END > END > > SYMBOL > NAME 'hatch-test' > TYPE HATCH > END #symbol > > LAYER > NAME 'habillage1000' > DATA > '../420_MRC_Val_St_Francois/42095_ValJoli/42095_Habillage_1000_mtm8_text.shp' > STATUS ON > TYPE POINT > > LABELITEM 'TEXTSTRING' > LABELCACHE ON > LABELMAXSCALE 20000 > > CLASS > NAME 'habillage1000' > STYLE > SIZE 7.0 > COLOR 0 0 0 > END > LABEL > FONT tahoma > TYPE TRUETYPE > SIZE 12 > COLOR 0 0 0 > ANGLE [TEXT_ANGLE] > POSITION cc > FORCE true > ANTIALIAS true > PARTIALS true > END > END > TRANSPARENCY 100 > END > END > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/type-Truetype-error-for-label-angle-tp4465768p4465768.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 richard.greenwood at gmail.com Mon Feb 13 09:56:07 2012 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Mon, 13 Feb 2012 10:56:07 -0700 Subject: [mapserver-users] RE: type Truetype error for label angle In-Reply-To: References: <1329154153245-4465768.post@n6.nabble.com> <1329154771411-4465803.post@n6.nabble.com> Message-ID: On Mon, Feb 13, 2012 at 10:46 AM, thomas bonfort wrote: > does /opt/mapping/maps/fonts/tahoma.ttf exist, and is it accessible by > your web user ? Also check the case of the file name on both the file system and in /opt/mapping/maps/fonts/fontset.list -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From qc_mad at hotmail.com Mon Feb 13 10:02:48 2012 From: qc_mad at hotmail.com (maddqc) Date: Mon, 13 Feb 2012 10:02:48 -0800 (PST) Subject: [mapserver-users] Re: type Truetype error for label angle In-Reply-To: <4F394D6D.3010207@geoanalytic.com> References: <1329154153245-4465768.post@n6.nabble.com> <4F394D6D.3010207@geoanalytic.com> Message-ID: <1329156168087-4465889.post@n6.nabble.com> Okay...now I'm ashamed... Haha I've already looked inside the file fontset, but I've never asked myself if the file "tahoma" was existing in the folder...I thought that GeoMOOSE/MapServer was automatically loading the Microsoft Font... Thanks to all of you guys!!! Now it works!!!! :D -- View this message in context: http://osgeo-org.1560.n6.nabble.com/type-Truetype-error-for-label-angle-tp4465768p4465889.html Sent from the Mapserver - User mailing list archive at Nabble.com. From richard.greenwood at gmail.com Mon Feb 13 12:22:23 2012 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Mon, 13 Feb 2012 13:22:23 -0700 Subject: [mapserver-users] mapserv 5 -> 6 symbol question Message-ID: I'm upgrading a site from mapserver 5.6 to 6.0 and the attached symbol has me stumped. I can't seem to replicate the style in 6.0. My mapserver 5.6 definition that created the attached GIF is here: SYMBOL ?NAME 'Circle_Open' ?TYPE ELLIPSE ?FILLED false ?POINTS 1 1 END END LAYER ?TYPE polygon ?TRANSPARENCY alpha ?CLASS ? ?STYLE ? ? ?COLOR 69 158 239 ? ? ?OUTLINECOLOR 0 0 255 ? ? ?SYMBOL 'Circle_Open' ? ? ?SIZE 1 ? ?END ?END END In mapserver 6.0 I'm using the same SYMBOL definition. I have split the outline into a separate STYLE block. But regardless of the SIZE or WIDTH that I specify for the STYLE all I get is a solid fill. What am I missing? Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com -------------- next part -------------- A non-text attachment was scrubbed... Name: fema1.gif Type: image/gif Size: 71 bytes Desc: not available URL: From bfraser at geoanalytic.com Mon Feb 13 12:46:28 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 13 Feb 2012 13:46:28 -0700 Subject: [mapserver-users] mapserv 5 -> 6 symbol question In-Reply-To: References: Message-ID: <4F3976A4.1000208@geoanalytic.com> Rich, For my Intermittent Waterways in v6, I've used CLASS # intermittent NAME 'intermittent' EXPRESSION '1480132' STYLE SYMBOL "SmallDots" COLOR 221 230 254 GAP 2 END STYLE SYMBOL "dashed5" PATTERN 5 5 END WIDTH 1 OUTLINECOLOR 0 122 194 END END where the symbol def is: SYMBOL NAME 'dashed5' TYPE SIMPLE END SYMBOL NAME 'SmallDots' TYPE ELLIPSE POINTS 1 1 END END Best Regards, Brent Fraser On 2/13/2012 1:22 PM, Richard Greenwood wrote: > I'm upgrading a site from mapserver 5.6 to 6.0 and the attached symbol > has me stumped. I can't seem to replicate the style in 6.0. > > My mapserver 5.6 definition that created the attached GIF is here: > > SYMBOL > NAME 'Circle_Open' > TYPE ELLIPSE > FILLED false > POINTS 1 1 END > END > > LAYER > TYPE polygon > TRANSPARENCY alpha > CLASS > STYLE > COLOR 69 158 239 > OUTLINECOLOR 0 0 255 > SYMBOL 'Circle_Open' > SIZE 1 > END > END > END > > In mapserver 6.0 I'm using the same SYMBOL definition. I have split > the outline into a separate STYLE block. But regardless of the SIZE or > WIDTH that I specify for the STYLE all I get is a solid fill. What am > I missing? > > Thanks, > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: intermittent2.PNG Type: image/png Size: 25408 bytes Desc: not available URL: From Bob.Bistrais at maine.gov Mon Feb 13 13:11:44 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 13 Feb 2012 16:11:44 -0500 Subject: [mapserver-users] Trouble connecting to PostGIS Message-ID: <4EFF8BB964547748A07CA32961810C041CFF0639@SOM-TEAQASMAIL1.som.w2k.state.me.us> First of all, let me state that I am brand new to PostGIS and don't know much about what I'm doing with it. That being said, I am having trouble displaying a PostGIS layer through MapServer. Right now I'm just experimenting with PostGIS and simply trying to get a layer to display. I installed the Postgre and PostGIS 1.5. I used the shapefile loader to convert a couple shapefiles to PostGIS data. Looking in pgAdmin, I see the tables do indeed exist for these layers. So I built a MapServer map file. Here is my connection strings: DATA "the_geom from MylayerPoly" CONNECTION "user=postgisuser password=MyPassword! dbname=postgistest host=localhost port=5432" CONNECTIONTYPE postgis But the layer does not display. Incidentally, I'm using GeoMoose as a front end for testing, but that shouldn't matter here. I did a mapserv -v at commandline, and I see the parameter INPUT=POSTGIS. So as far as I know it should work. Can anyone offer suggestions as to what I'm doing wrong? Thanks, Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Mon Feb 13 13:24:43 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 13 Feb 2012 14:24:43 -0700 Subject: [mapserver-users] Trouble connecting to PostGIS In-Reply-To: <4EFF8BB964547748A07CA32961810C041CFF0639@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041CFF0639@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4F397F9B.3090002@geoanalytic.com> Bob, Typical problems are - the connecting user (postgisuser) does not have privilege to access the table - coordinate system is not specified in data (SRID=-1) and not in the mapfile either - and others Turn on the layer debug logging by adding DEBUG 5 to your mapfile and looking a the log. You can also execute the SQL statements shown in the log file using pgAdmin's SQL tool to see additional information. Best Regards, Brent Fraser On 2/13/2012 2:11 PM, Bistrais, Bob wrote: > > First of all, let me state that I am brand new to PostGIS and don't > know much about what I'm doing with it. That being said, I am having > trouble displaying a PostGIS layer through MapServer. > > Right now I'm just experimenting with PostGIS and simply trying to get > a layer to display. I installed the Postgre and PostGIS 1.5. I used > the shapefile loader to convert a couple shapefiles to PostGIS data. > Looking in pgAdmin, I see the tables do indeed exist for these layers. > > So I built a MapServer map file. Here is my connection strings: > > DATA "the_geom from MylayerPoly" > > CONNECTION "user=postgisuser password=MyPassword! dbname=postgistest > host=localhost port=5432" > > CONNECTIONTYPE postgis > > But the layer does not display. Incidentally, I'm using GeoMoose as a > front end for testing, but that shouldn't matter here. > > I did a mapserv --v at commandline, and I see the parameter INPUT=POSTGIS. > > So as far as I know it should work. Can anyone offer suggestions as to > what I'm doing wrong? > > Thanks, > > Bob > > > > _______________________________________________ > 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 Bob.Bistrais at maine.gov Mon Feb 13 13:35:19 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 13 Feb 2012 16:35:19 -0500 Subject: [mapserver-users] Trouble connecting to PostGIS In-Reply-To: <4F397F9B.3090002@geoanalytic.com> References: <4EFF8BB964547748A07CA32961810C041CFF0639@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4F397F9B.3090002@geoanalytic.com> Message-ID: <4EFF8BB964547748A07CA32961810C041CFF065C@SOM-TEAQASMAIL1.som.w2k.state.me.us> Thanks Brent. The postgis user SHOULD have access to the table, as that is the table's owner. Coordinate system is in the map file under Projection. Here is what the debug log showed me (Metwp100Poly is the actual name of the table, and MAINE is the layer name): [Mon Feb 13 16:31:32 2012].453000 CGI Request 1 on process 1300 [Mon Feb 13 16:31:32 2012].687000 msPOSTGISLayerRetrievePGVersion(): Query error. Error executing POSTGIS statement (msPOSTGISLayerRetrievePGVersion():select substring(version() from 12 for (position('on' in version()) - 13)) [Mon Feb 13 16:31:32 2012].687000 prepare_database(): Query error. Error declaring cursor: ERROR: relation "metwp100poly" does not exist LINE 1: ...lection(force_2d(the_geom)),'NDR'),OID::text from Metwp100Po... ^ With query string: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from Metwp100Poly WHERE the_geom && setSRID('BOX3D(134000 4692598.18523154,890900 5307401.81476846)'::BOX3D, find_srid('','Metwp100Poly','the_geom') ) [Mon Feb 13 16:31:32 2012].687000 msDrawMap(): Image handling error. Failed to draw layer named 'MAINE'. [Mon Feb 13 16:31:32 2012].687000 msFreeMap(): freeing map at 015258C8. ________________________________ From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Monday, February 13, 2012 4:25 PM To: Bistrais, Bob Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Trouble connecting to PostGIS Bob, Typical problems are - the connecting user (postgisuser) does not have privilege to access the table - coordinate system is not specified in data (SRID=-1) and not in the mapfile either - and others Turn on the layer debug logging by adding DEBUG 5 to your mapfile and looking a the log. You can also execute the SQL statements shown in the log file using pgAdmin's SQL tool to see additional information. Best Regards, Brent Fraser On 2/13/2012 2:11 PM, Bistrais, Bob wrote: First of all, let me state that I am brand new to PostGIS and don't know much about what I'm doing with it. That being said, I am having trouble displaying a PostGIS layer through MapServer. Right now I'm just experimenting with PostGIS and simply trying to get a layer to display. I installed the Postgre and PostGIS 1.5. I used the shapefile loader to convert a couple shapefiles to PostGIS data. Looking in pgAdmin, I see the tables do indeed exist for these layers. So I built a MapServer map file. Here is my connection strings: DATA "the_geom from MylayerPoly" CONNECTION "user=postgisuser password=MyPassword! dbname=postgistest host=localhost port=5432" CONNECTIONTYPE postgis But the layer does not display. Incidentally, I'm using GeoMoose as a front end for testing, but that shouldn't matter here. I did a mapserv -v at commandline, and I see the parameter INPUT=POSTGIS. So as far as I know it should work. Can anyone offer suggestions as to what I'm doing wrong? Thanks, Bob _______________________________________________ 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 Bob.Bistrais at maine.gov Mon Feb 13 13:38:04 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 13 Feb 2012 16:38:04 -0500 Subject: [mapserver-users] RE: mapserver-users Digest, Vol 49, Issue 34 In-Reply-To: <20120213213512.16BF5E0079C@lists.osgeo.org> References: <20120213213512.16BF5E0079C@lists.osgeo.org> Message-ID: <4EFF8BB964547748A07CA32961810C041CFF0660@SOM-TEAQASMAIL1.som.w2k.state.me.us> Is this a clue? Looking at the debug, I see the following: find_srid('','Metwp100Poly','the_geom') ) Notice the first parameter is blank. What should be there? -----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: Monday, February 13, 2012 4:35 PM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 49, Issue 34 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..." From bfraser at geoanalytic.com Mon Feb 13 13:42:16 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 13 Feb 2012 14:42:16 -0700 Subject: [mapserver-users] RE: mapserver-users Digest, Vol 49, Issue 34 In-Reply-To: <4EFF8BB964547748A07CA32961810C041CFF0660@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <20120213213512.16BF5E0079C@lists.osgeo.org> <4EFF8BB964547748A07CA32961810C041CFF0660@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4F3983B8.9080200@geoanalytic.com> Maybe. I was just doing a load of a table to test TinyOWS and noticed the default is "-1" for shp2pgsql. So I used the -s option: shp2pgsql -s 4269 tl_2010_27_place10.shp public.CensusCities > CensusCities.sql Can you reload the table using an SRID on the commandline? Best Regards, Brent Fraser On 2/13/2012 2:38 PM, Bistrais, Bob wrote: > Is this a clue? Looking at the debug, I see the following: > > find_srid('','Metwp100Poly','the_geom') ) > > Notice the first parameter is blank. What should be there? > > > > -----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: Monday, February 13, 2012 4:35 PM > To: mapserver-users at lists.osgeo.org > Subject: mapserver-users Digest, Vol 49, Issue 34 > > 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..." > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Mon Feb 13 13:50:35 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 13 Feb 2012 17:50:35 -0400 Subject: [mapserver-users] Trouble connecting to PostGIS In-Reply-To: <4EFF8BB964547748A07CA32961810C041CFF065C@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041CFF0639@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4F397F9B.3090002@geoanalytic.com> <4EFF8BB964547748A07CA32961810C041CFF065C@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4F3985AB.2060702@gatewaygeomatics.com> I'd use Brent's advice of always specifying a projection when loading the data into PG. Then make sure your DATA statement uses that SRID: DATA "the_geom from test using SRID=4326 using unique id" or DATA "the_geom from test using SRID=-1 using unique id" I try to document my usual steps at http://www.mapserver.org/input/vector/postgis.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From pcreso at pcreso.com Mon Feb 13 14:01:09 2012 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Mon, 13 Feb 2012 14:01:09 -0800 (PST) Subject: [mapserver-users] Trouble connecting to PostGIS In-Reply-To: <4EFF8BB964547748A07CA32961810C041CFF0639@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <1329170469.67359.YahooMailClassic@web160701.mail.bf1.yahoo.com> Hi Bob, I suggest you try testing with QGIS. Easy to open the native postgis table & a mapserver WFS/WMS layer concurrently to ensure it is all working as it should. Also ensure you have configured your Postgis (Postgres) database to allow applications such as mapserver to connect. For testing purposes, set access to the database to trusted for all in pb_hba.conf, & enable external connections in postgresql.conf, then restart the server to ensure the changes are activated. You can also enable mapserver debugging & specify a log file to see what error is reported. http://mapserver.org/optimization/debugging.html You may also need to specify the unique ID column name & the SRID you are using in your DATA string, much like this one: DATA "track_line from (select * from trip_track where trip_code = 'ind0701') as foo using unique id using srid 4326" HTH, ?? Brent Wood --- On Tue, 2/14/12, Bistrais, Bob wrote: From: Bistrais, Bob Subject: [mapserver-users] Trouble connecting to PostGIS To: mapserver-users at lists.osgeo.org Date: Tuesday, February 14, 2012, 10:11 AM First of all, let me state that I am brand new to PostGIS and don?t know much about what I?m doing with it.? That being said, I am having trouble displaying a PostGIS layer through MapServer. ? Right now I?m just experimenting with PostGIS and simply trying to get a layer to display.? I installed the Postgre and PostGIS 1.5.? I used the shapefile loader to convert a couple shapefiles to PostGIS data.? Looking in pgAdmin, I see the tables do indeed exist for these layers. ? So I built a MapServer map file.? Here is my connection strings: ? DATA "the_geom from MylayerPoly" CONNECTION "user=postgisuser password=MyPassword! dbname=postgistest host=localhost port=5432" CONNECTIONTYPE postgis ? But the layer does not display.? Incidentally, I?m using GeoMoose as a front end for testing, but that shouldn?t matter here. ? I did a mapserv ?v at commandline, and I see the parameter INPUT=POSTGIS. ? So as far as I know it should work. Can anyone offer suggestions as to what I?m doing wrong? ? Thanks, Bob -----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 punk.kish at gmail.com Mon Feb 13 14:05:42 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Mon, 13 Feb 2012 16:05:42 -0600 Subject: [mapserver-users] Trouble connecting to PostGIS In-Reply-To: <4EFF8BB964547748A07CA32961810C041CFF065C@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041CFF0639@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4F397F9B.3090002@geoanalytic.com> <4EFF8BB964547748A07CA32961810C041CFF065C@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <1CAAF566-D2C5-4AF9-BBBA-CC36D5C79315@gmail.com> On Feb 13, 2012, at 3:35 PM, Bistrais, Bob wrote: > Thanks Brent. The postgis user SHOULD have access to the table, as that > is the table's owner. Coordinate system is in the map file under > Projection. > > > > Here is what the debug log showed me (Metwp100Poly is the actual name of > the table, and MAINE is the layer name): > > > > [Mon Feb 13 16:31:32 2012].453000 CGI Request 1 on process 1300 > > [Mon Feb 13 16:31:32 2012].687000 msPOSTGISLayerRetrievePGVersion(): > Query error. Error executing POSTGIS statement > (msPOSTGISLayerRetrievePGVersion():select substring(version() from 12 > for (position('on' in version()) - 13)) > > [Mon Feb 13 16:31:32 2012].687000 prepare_database(): Query error. Error > declaring cursor: ERROR: relation "metwp100poly" does not exist > .. The error above is telling you that it can't even find the said table. Can you SELECT from this table successfully in PgAdmin? Is it in a different schema than public, and perhaps that schema is not in the searchpath? Does the postgisuser have access to this table? -- Puneet Kishor From Bob.Bistrais at maine.gov Mon Feb 13 14:05:23 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 13 Feb 2012 17:05:23 -0500 Subject: [mapserver-users] RE: mapserver-users Digest, Vol 49, Issue 34 In-Reply-To: <4F3983B8.9080200@geoanalytic.com> References: <20120213213512.16BF5E0079C@lists.osgeo.org> <4EFF8BB964547748A07CA32961810C041CFF0660@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4F3983B8.9080200@geoanalytic.com> Message-ID: <4EFF8BB964547748A07CA32961810C041CFF0687@SOM-TEAQASMAIL1.som.w2k.state.me.us> I've been using the shapefile loader utility, and it also defaults to an srs of -1. I'm not sure of the command line syntax for this command, after the shapefile name, so I was using the utility. But entering an SRS in that box, I still get the same thing in the error message with the blank parameter. -----Original Message----- From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Monday, February 13, 2012 4:42 PM To: Bistrais, Bob Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: mapserver-users Digest, Vol 49, Issue 34 Maybe. I was just doing a load of a table to test TinyOWS and noticed the default is "-1" for shp2pgsql. So I used the -s option: shp2pgsql -s 4269 tl_2010_27_place10.shp public.CensusCities > CensusCities.sql Can you reload the table using an SRID on the commandline? Best Regards, Brent Fraser On 2/13/2012 2:38 PM, Bistrais, Bob wrote: > Is this a clue? Looking at the debug, I see the following: > > find_srid('','Metwp100Poly','the_geom') ) > > Notice the first parameter is blank. What should be there? > > > > -----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: Monday, February 13, 2012 4:35 PM > To: mapserver-users at lists.osgeo.org > Subject: mapserver-users Digest, Vol 49, Issue 34 > > 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..." > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From even.rouault at mines-paris.org Mon Feb 13 14:06:25 2012 From: even.rouault at mines-paris.org (Even Rouault) Date: Mon, 13 Feb 2012 23:06:25 +0100 Subject: [mapserver-users] Re: [gdal-dev] Re: Unreliable names for temporary files In-Reply-To: References: <201202122216.37104.even.rouault@mines-paris.org> Message-ID: <201202132306.25699.even.rouault@mines-paris.org> Le lundi 13 f?vrier 2012 06:22:31, Jukka Rahkonen a ?crit : > Even Rouault mines-paris.org> writes: > > Le dimanche 12 f?vrier 2012 14:25:07, Jukka Rahkonen a ?crit : > > > Hi, > > > > > > I noticed a ticket http://trac.osgeo.org/gdal/ticket/4510 and started > > > to wonder if something similar can happen also elsewhere. I have had > > > troubles with Mapserver OGR output and they are somehow related to > > > temporary files (both physisical and vsimem files). See > > > http://lists.maptools.org/pipermail/ms4w-users/2012-February/001948.htm > > > l for some details. > > > > Jukka, > > > > The issue with the mapfile in http://lists.maptools.org/pipermail/ms4w- > > users/2012-February/001948.html is the default filename. For the CSV > > driver to create a single file, you need to change the filename to > > something ending with .csv (for example "default_outfile" "out.csv"), > > otherwise the CSV driver will create a directory, and when MapServer > > tries to read the filename, it is confused because it finds a directory, > > and not a file. > > Now I have these outputformats > > OUTPUTFORMAT > NAME "SHAPEZIP" > DRIVER "OGR/ESRI Shapefile" > MIMETYPE "application/shapefile" > FORMATOPTION "STORAGE=memory" > FORMATOPTION "FORM=zip" > FORMATOPTION "FILENAME=shape.zip" > END > OUTPUTFORMAT > NAME "CSV" > DRIVER "OGR/CSV" > MIMETYPE "text/csv" > FORMATOPTION "LCO:GEOMETRY=AS_WKT" > FORMATOPTION "STORAGE=filesystem" > FORMATOPTION "FORM=simple" > FORMATOPTION "FILENAME=out.csv" > END > > You can try them: > > http://188.64.1.61/cgi-bin/mapserver_wfs?service=wfs&version=1.1.0&request= > getfeature&typename=municipalities&outputformat=CSV Result is probably > "Failed to open result file" > > http://188.64.1.61/cgi-bin/mapserver_wfs?service=wfs&version=1.1.0&request= > getfeature&typename=municipalities&outputformat=SHAPEZIP Result is probably > an empty zip file. CC'ing to mapserver-users list. Similar requests with the 2 above outputformats work great on my local mapserver instance, so I suspect something wrong in your setup. If I issue the CSV request on your server, I see the following error message : msOGRWriteFromQuery(): General error message. Failed to open result file '/usr/temp/4f3988d4_287f_0/out.csv'. The /usr/temp/ path look suspicious to me... > > > -Jukka Rahkonen- > > _______________________________________________ > gdal-dev mailing list > gdal-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev From jmckenna at gatewaygeomatics.com Mon Feb 13 14:15:05 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 13 Feb 2012 18:15:05 -0400 Subject: [mapserver-users] Trouble connecting to PostGIS In-Reply-To: <1CAAF566-D2C5-4AF9-BBBA-CC36D5C79315@gmail.com> References: <4EFF8BB964547748A07CA32961810C041CFF0639@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4F397F9B.3090002@geoanalytic.com> <4EFF8BB964547748A07CA32961810C041CFF065C@SOM-TEAQASMAIL1.som.w2k.state.me.us> <1CAAF566-D2C5-4AF9-BBBA-CC36D5C79315@gmail.com> Message-ID: <4F398B69.5040100@gatewaygeomatics.com> On 12-02-13 6:05 PM, Puneet Kishor wrote: > The error above is telling you that it can't even find the said table. > > Can you SELECT from this table successfully in PgAdmin? > > Is it in a different schema than public, and perhaps that schema is not in the searchpath? > > Does the postgisuser have access to this table? > For any dataset, I always always always (did I say always?) start with an ogrinfo command, to test the connection (in this case the connection to PG). The syntax is documented on that same page: http://www.mapserver.org/input/vector/postgis.html I don't ever move to MapServer testing before ogrinfo is happy. (hint: you can pass SQL queries to your database through ogrinfo with the -sql switch) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From bfraser at geoanalytic.com Mon Feb 13 14:27:42 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 13 Feb 2012 15:27:42 -0700 Subject: [mapserver-users] Trouble connecting to PostGIS In-Reply-To: <1CAAF566-D2C5-4AF9-BBBA-CC36D5C79315@gmail.com> References: <4EFF8BB964547748A07CA32961810C041CFF0639@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4F397F9B.3090002@geoanalytic.com> <4EFF8BB964547748A07CA32961810C041CFF065C@SOM-TEAQASMAIL1.som.w2k.state.me.us> <1CAAF566-D2C5-4AF9-BBBA-CC36D5C79315@gmail.com> Message-ID: <4F398E5E.2040907@geoanalytic.com> And I seem to recall needing to give some privileges on the spatial_ref_sys and geometry_columns tables to the user. Best Regards, Brent Fraser On 2/13/2012 3:05 PM, Puneet Kishor wrote: > On Feb 13, 2012, at 3:35 PM, Bistrais, Bob wrote: > >> Thanks Brent. The postgis user SHOULD have access to the table, as that >> is the table's owner. Coordinate system is in the map file under >> Projection. >> >> >> >> Here is what the debug log showed me (Metwp100Poly is the actual name of >> the table, and MAINE is the layer name): >> >> >> >> [Mon Feb 13 16:31:32 2012].453000 CGI Request 1 on process 1300 >> >> [Mon Feb 13 16:31:32 2012].687000 msPOSTGISLayerRetrievePGVersion(): >> Query error. Error executing POSTGIS statement >> (msPOSTGISLayerRetrievePGVersion():select substring(version() from 12 >> for (position('on' in version()) - 13)) >> >> [Mon Feb 13 16:31:32 2012].687000 prepare_database(): Query error. Error >> declaring cursor: ERROR: relation "metwp100poly" does not exist >> .. > The error above is telling you that it can't even find the said table. > > Can you SELECT from this table successfully in PgAdmin? > > Is it in a different schema than public, and perhaps that schema is not in the searchpath? > > Does the postgisuser have access to this table? > > -- > Puneet Kishor_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ian.walberg at airborne.aero Mon Feb 13 14:37:40 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 13 Feb 2012 17:37:40 -0500 Subject: [mapserver-users] RE: Circles around points in miles In-Reply-To: References: Message-ID: Steve, Many thanks for the help and we have just tested option 2 and that works. We are using 6.x but are not exactly sure how to use the geomtransform to do this. Do you have an example? Regards Ian -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, February 13, 2012 9:37 AM To: Ian Walberg; mapserver-users at lists.osgeo.org Subject: RE: Circles around points in miles Couple of options depending on version: 1) 6.x: buffer the points using a style geomtransform 2) all versions: use layer SIZEUNITS to draw a circle symbol in miles I think option 1 is more flexible but option 2 is probably faster. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Saturday, February 11, 2012 10:06 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Circles around points in miles We need to draw circles of 50 and 100 miles around a list of points. How can we do this? Thanks Ian _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Bistrais at maine.gov Mon Feb 13 14:38:51 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 13 Feb 2012 17:38:51 -0500 Subject: [mapserver-users] Trouble connecting to PostGIS In-Reply-To: <1329170469.67359.YahooMailClassic@web160701.mail.bf1.yahoo.com> References: <4EFF8BB964547748A07CA32961810C041CFF0639@SOM-TEAQASMAIL1.som.w2k.state.me.us> <1329170469.67359.YahooMailClassic@web160701.mail.bf1.yahoo.com> Message-ID: <4EFF8BB964547748A07CA32961810C041CFF06B9@SOM-TEAQASMAIL1.som.w2k.state.me.us> I changed my Data statement similar to what you did here, Brent, and it still comes up with an error, but the message shows that there is something wrong with the select statement, so maybe this is another clue: prepare_database(): Query error. Error declaring cursor: ERROR: syntax error at or near "select" LINE 1: ..._2d(the_geom)),'NDR'),gid::text from Metwp100Poly(select * f... ^ With query string: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from Metwp100Poly(select * from Metwp100Poly where land='y') as foo WHERE the_geom && setSRID('BOX3D(134000 4692598.18523154,890900 5307401.81476846)'::BOX3D, 26919 ) ________________________________ From: pcreso at pcreso.com [mailto:pcreso at pcreso.com] Sent: Monday, February 13, 2012 5:01 PM To: mapserver-users at lists.osgeo.org; Bistrais, Bob Subject: Re: [mapserver-users] Trouble connecting to PostGIS Hi Bob, I suggest you try testing with QGIS. Easy to open the native postgis table & a mapserver WFS/WMS layer concurrently to ensure it is all working as it should. Also ensure you have configured your Postgis (Postgres) database to allow applications such as mapserver to connect. For testing purposes, set access to the database to trusted for all in pb_hba.conf, & enable external connections in postgresql.conf, then restart the server to ensure the changes are activated. You can also enable mapserver debugging & specify a log file to see what error is reported. http://mapserver.org/optimization/debugging.html You may also need to specify the unique ID column name & the SRID you are using in your DATA string, much like this one: DATA "track_line from (select * from trip_track where trip_code = 'ind0701') as foo using unique id using srid 4326" HTH, Brent Wood --- On Tue, 2/14/12, Bistrais, Bob wrote: From: Bistrais, Bob Subject: [mapserver-users] Trouble connecting to PostGIS To: mapserver-users at lists.osgeo.org Date: Tuesday, February 14, 2012, 10:11 AM First of all, let me state that I am brand new to PostGIS and don't know much about what I'm doing with it. That being said, I am having trouble displaying a PostGIS layer through MapServer. Right now I'm just experimenting with PostGIS and simply trying to get a layer to display. I installed the Postgre and PostGIS 1.5. I used the shapefile loader to convert a couple shapefiles to PostGIS data. Looking in pgAdmin, I see the tables do indeed exist for these layers. So I built a MapServer map file. Here is my connection strings: DATA "the_geom from MylayerPoly" CONNECTION "user=postgisuser password=MyPassword! dbname=postgistest host=localhost port=5432" CONNECTIONTYPE postgis But the layer does not display. Incidentally, I'm using GeoMoose as a front end for testing, but that shouldn't matter here. I did a mapserv -v at commandline, and I see the parameter INPUT=POSTGIS. So as far as I know it should work. Can anyone offer suggestions as to what I'm doing wrong? Thanks, Bob -----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 Bob.Bistrais at maine.gov Mon Feb 13 14:54:05 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 13 Feb 2012 17:54:05 -0500 Subject: [mapserver-users] Trouble connecting to PostGIS In-Reply-To: <1329170469.67359.YahooMailClassic@web160701.mail.bf1.yahoo.com> References: <4EFF8BB964547748A07CA32961810C041CFF0639@SOM-TEAQASMAIL1.som.w2k.state.me.us> <1329170469.67359.YahooMailClassic@web160701.mail.bf1.yahoo.com> Message-ID: <4EFF8BB964547748A07CA32961810C041CFF06C7@SOM-TEAQASMAIL1.som.w2k.state.me.us> I think we're out of the woods, and special thanks to TC Haddad for the solution... TC suggested that I check the upper/lower case of the table name. I had this correct, but it gave me an idea of something to try- I created a new table of the same shapefile, only this time the table name is all lower case. Using that in my map file, the map image appears correctly. Thanks everyone for their input! I'm sure it won't be the last ou hear from me on PostGIS, but at least we're off and running! BB ________________________________ From: pcreso at pcreso.com [mailto:pcreso at pcreso.com] Sent: Monday, February 13, 2012 5:01 PM To: mapserver-users at lists.osgeo.org; Bistrais, Bob Subject: Re: [mapserver-users] Trouble connecting to PostGIS Hi Bob, I suggest you try testing with QGIS. Easy to open the native postgis table & a mapserver WFS/WMS layer concurrently to ensure it is all working as it should. Also ensure you have configured your Postgis (Postgres) database to allow applications such as mapserver to connect. For testing purposes, set access to the database to trusted for all in pb_hba.conf, & enable external connections in postgresql.conf, then restart the server to ensure the changes are activated. You can also enable mapserver debugging & specify a log file to see what error is reported. http://mapserver.org/optimization/debugging.html You may also need to specify the unique ID column name & the SRID you are using in your DATA string, much like this one: DATA "track_line from (select * from trip_track where trip_code = 'ind0701') as foo using unique id using srid 4326" HTH, Brent Wood --- On Tue, 2/14/12, Bistrais, Bob wrote: From: Bistrais, Bob Subject: [mapserver-users] Trouble connecting to PostGIS To: mapserver-users at lists.osgeo.org Date: Tuesday, February 14, 2012, 10:11 AM First of all, let me state that I am brand new to PostGIS and don't know much about what I'm doing with it. That being said, I am having trouble displaying a PostGIS layer through MapServer. Right now I'm just experimenting with PostGIS and simply trying to get a layer to display. I installed the Postgre and PostGIS 1.5. I used the shapefile loader to convert a couple shapefiles to PostGIS data. Looking in pgAdmin, I see the tables do indeed exist for these layers. So I built a MapServer map file. Here is my connection strings: DATA "the_geom from MylayerPoly" CONNECTION "user=postgisuser password=MyPassword! dbname=postgistest host=localhost port=5432" CONNECTIONTYPE postgis But the layer does not display. Incidentally, I'm using GeoMoose as a front end for testing, but that shouldn't matter here. I did a mapserv -v at commandline, and I see the parameter INPUT=POSTGIS. So as far as I know it should work. Can anyone offer suggestions as to what I'm doing wrong? Thanks, Bob -----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 Steve.Lime at state.mn.us Mon Feb 13 14:56:32 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 13 Feb 2012 22:56:32 +0000 Subject: [mapserver-users] RE: Circles around points in miles In-Reply-To: References: Message-ID: I jumped the gun on the geomtransform idea. The support is there but because it operates at the style level buffer distances must be given in pixels and there's no easy way to convert a map distance (e.g. 10 miles) to pixels. I really should make some runtime constants (for example, extent, scale and cellsize) available to expressions- then you could do this. Glad you picked option 2 to start. Steve -----Original Message----- From: Ian Walberg [mailto:ian.walberg at airborne.aero] Sent: Monday, February 13, 2012 4:38 PM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: RE: Circles around points in miles Steve, Many thanks for the help and we have just tested option 2 and that works. We are using 6.x but are not exactly sure how to use the geomtransform to do this. Do you have an example? Regards Ian -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, February 13, 2012 9:37 AM To: Ian Walberg; mapserver-users at lists.osgeo.org Subject: RE: Circles around points in miles Couple of options depending on version: 1) 6.x: buffer the points using a style geomtransform 2) all versions: use layer SIZEUNITS to draw a circle symbol in miles I think option 1 is more flexible but option 2 is probably faster. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Saturday, February 11, 2012 10:06 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Circles around points in miles We need to draw circles of 50 and 100 miles around a list of points. How can we do this? Thanks Ian _______________________________________________ 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 Feb 13 21:21:37 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 14 Feb 2012 05:21:37 +0000 Subject: [mapserver-users] Re: [gdal-dev] Re: Unreliable names for temporary files In-Reply-To: <201202132306.25699.even.rouault@mines-paris.org> References: <201202122216.37104.even.rouault@mines-paris.org> , <201202132306.25699.even.rouault@mines-paris.org> Message-ID: <84446DEF76453C439E9E97E438E13A63074075@pasuri.haapa.mmm.fi> ________________________________________ Even Rouault wrote: Le lundi 13 f?vrier 2012 06:22:31, Jukka Rahkonen a ?crit : >> Even Rouault mines-paris.org> writes: >> > Le dimanche 12 f?vrier 2012 14:25:07, Jukka Rahkonen a ?crit : >> > > Hi, >> > > >> > > I noticed a ticket http://trac.osgeo.org/gdal/ticket/4510 and started >> > > to wonder if something similar can happen also elsewhere. I have had >> > > troubles with Mapserver OGR output and they are somehow related to >> > > temporary files (both physisical and vsimem files). See >> > > http://lists.maptools.org/pipermail/ms4w-users/2012-February/001948.htm >> > > l for some details. >> > >> > Jukka, >> > >> > The issue with the mapfile in http://lists.maptools.org/pipermail/ms4w- >> > users/2012-February/001948.html is the default filename. For the CSV >> > driver to create a single file, you need to change the filename to >> > something ending with .csv (for example "default_outfile" "out.csv"), >> > otherwise the CSV driver will create a directory, and when MapServer >> > tries to read the filename, it is confused because it finds a directory, >> > and not a file. >> >> Now I have these outputformats >> >> OUTPUTFORMAT >> NAME "SHAPEZIP" >> DRIVER "OGR/ESRI Shapefile" >> MIMETYPE "application/shapefile" >> FORMATOPTION "STORAGE=memory" >> FORMATOPTION "FORM=zip" >> FORMATOPTION "FILENAME=shape.zip" >> END >> OUTPUTFORMAT >> NAME "CSV" >> DRIVER "OGR/CSV" >> MIMETYPE "text/csv" >> FORMATOPTION "LCO:GEOMETRY=AS_WKT" >> FORMATOPTION "STORAGE=filesystem" >> FORMATOPTION "FORM=simple" >> FORMATOPTION "FILENAME=out.csv" >> END >> >> You can try them: > >> http://188.64.1.61/cgi-bin/mapserver_wfs?service=wfs&version=1.1.0&request= >> getfeature&typename=municipalities&outputformat=CSV Result is probably >> "Failed to open result file" >> >> http://188.64.1.61/cgi-bin/mapserver_wfs?service=wfs&version=1.1.0&request= >> getfeature&typename=municipalities&outputformat=SHAPEZIP Result is probably >> an empty zip file. > CC'ing to mapserver-users list. > Similar requests with the 2 above outputformats work great on my local > mapserver instance, so I suspect something wrong in your setup. If I issue the > CSV request on your server, I see the following error message : > > xmlns:ows="http://www.opengis.net/ows" version="1.1.0" language="en-US" > xsi:schemaLocation="http://www.opengis.net/ows > http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"> > > msOGRWriteFromQuery(): General error message. Failed to > open result file '/usr/temp/4f3988d4_287f_0/out.csv'. > > > The /usr/temp/ path look suspicious to me... Hi, /usr/temp/ has 7777 rights and it is good enough for the MS_ERRORFILE... Short history of my trials: - half a year ago tried to set up ogroutput with no success - read a message about using "temppath" in the mapfile and added that parameter - SHPZIP and CSV outpur started to work and I was happy - but in the same evening the "Failed to open result file" errors came back - never again had a new success with that Linux server - not a single success with several Windows computers - last week tried the new MS4W 3.0.4beta1 on Windows - succeeded to make ogroutput to work for a while - was suspicious and restarted Apache and started to get "Failed to open result" file errors again It can of course be that I am just repeating my own errors but weird is that I have received valid CSV an SHAPEZIP outputs but only for a while. -Jukka Rahkonen- From Jukka.Rahkonen at mmmtike.fi Tue Feb 14 00:24:15 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 14 Feb 2012 08:24:15 +0000 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: <84446DEF76453C439E9E97E438E13A63070B00@pasuri.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <201202111253.08664.even.rouault@mines-paris.org> <201202111603.04597.even.rouault@mines-paris.org>, <201202111700.06255.even.rouault@mines-paris.org> <84446DEF76453C439E9E97E438E13A63070B00@pasuri.haapa.mmm.fi> Message-ID: <84446DEF76453C439E9E97E438E13A6307410E@pasuri.haapa.mmm.fi> Rahkonen Jukka wrote: > > Even Rouault wrote: > > > > >> I've commited improvements in GDAL trunk for both points ( > >> http://trac.osgeo.org/gdal/changeset/23944 and > >> http://trac.osgeo.org/gdal/changeset/23945 ) that make the > above request go > >> from 1.7 sec to 0.54 sec . I don't think there's any more > significant speed > >> gain to expect now (at least on OGR side). > > > Actually, I found a new improvement (committed in > > http://trac.osgeo.org/gdal/changeset/23946) that make the > query time go down > > to 0.07 sec (*) ! There was a slowness when opening the > layer due to the > > presence of an ORDER BY clause in the DATA string, that was > evaluated before > > setting the spatial filter. > > > (*) For comparison, I translated your database to Postgis, > and set-up the > > connection mapfile to use that Postgis database (still > through OGR, not the > > MapServer Postgis backend). The same request with OGR PG is > run in 0.18 sec. > > Awesome! About 25 times faster in the evening than it was in > the morning. My opinion is that because Spatialite seems to > be, at least in this case, more that two times faster backend > for Mapserver than PostGIS it should lead to some intensive > and controlled testing now. I updated the cgi-bin directory of my MS4W 3.0.4beta1 with the mapserv.exe and dll files taken from the brand new binaries from http://www.gisinternals.com/sdk/ (contains Mapserver and GDAL revisions r13144, r23972, respectively). As a result Mapserver is really serving me 10, or 25 or even 40 times faster than it did before the update measured as WMS throughput (images/minute). The times include rendering times and all the lags in the system so the difference tells exactly how the end user feels it. Greatest enhancement is with close zooms because then the apatial index bites hardest. And at least with my computer Spatialite backend is clearly faster than PostGIS with the same data and it may be even faster than shapefiles but it is too early to say that really. But this is absolutely something worth more testing. My test database is moderately sized and contains 100000 points, 90000 lines and 149000 polygons from OpenStreetMap data. I will myself do next trials with ten times bigger Spatialite database with something like million points, lines, and polygons. We do not have much bigger tables in our production. However, I do not believe we are changing from Oracle to SQLite/Spatialite very rapidly in our core business :) -Jukka Rahkonen- From Jukka.Rahkonen at mmmtike.fi Tue Feb 14 00:37:38 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 14 Feb 2012 08:37:38 +0000 Subject: [mapserver-users] Topology error prevents rendering Message-ID: <84446DEF76453C439E9E97E438E13A6307416D@pasuri.haapa.mmm.fi> Hi, OpenStreetMap data tend to contain topology errors and Mapserver sends an empty map when it finds an error on one layer of a multi-layer map. Cases are like this: msOGRFileNextShape(): OGR error. TopologyException: side location conflict at 1.48639e+006 6.89386e+006 [Tue Feb 14 09:41:37 2012].113000 msDrawMap(): Image handling error. Failed to draw layer named 'landuse_layer1'. Topology errors would be best to correct in the data but I wonder if Mapserver could be somehow more robust and just skip the faulty feature or that certain layer instead of giving in totally. Sometimes it would be better to get an incomplete map than no map at all. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From pedrocostaarma at sapo.pt Tue Feb 14 05:15:31 2012 From: pedrocostaarma at sapo.pt (Pedro Costa) Date: Tue, 14 Feb 2012 13:15:31 +0000 Subject: [mapserver-users] layers =?iso-8859-1?q?don=B4t_appear_on_the_map?= Message-ID: <4F3A5E73.1090002@sapo.pt> Hello to all, This is my first email on the list. I have a problem, i cannot add layers to the map and i don?t why. I added anothers and led all perfect. Now I can not. Iadded in the mapfile and config_default.xml but do not appear on the map. I'm working with pmapper modifying the demo. Can everybody give me any possible errors to the layers are not being added now? Is there a variable that limits the maximum number of layers? os: windows 7 64 bits mapserver 6.02 thank you Pedro From David.Fawcett at state.mn.us Tue Feb 14 06:01:29 2012 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 14 Feb 2012 14:01:29 +0000 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: <84446DEF76453C439E9E97E438E13A6307410E@pasuri.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <201202111253.08664.even.rouault@mines-paris.org> <201202111603.04597.even.rouault@mines-paris.org>, <201202111700.06255.even.rouault@mines-paris.org> <84446DEF76453C439E9E97E438E13A63070B00@pasuri.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6307410E@pasuri.haapa.mmm.fi> Message-ID: Great work Jukka (and Even). Thanks for pursuing this!! David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Tuesday, February 14, 2012 2:24 AM To: 'mapserver-users at lists.osgeo.org' Subject: Re: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? Rahkonen Jukka wrote: > > Even Rouault wrote: > > > > >> I've commited improvements in GDAL trunk for both points ( > >> http://trac.osgeo.org/gdal/changeset/23944 and > >> http://trac.osgeo.org/gdal/changeset/23945 ) that make the > above request go > >> from 1.7 sec to 0.54 sec . I don't think there's any more > significant speed > >> gain to expect now (at least on OGR side). > > > Actually, I found a new improvement (committed in > > http://trac.osgeo.org/gdal/changeset/23946) that make the > query time go down > > to 0.07 sec (*) ! There was a slowness when opening the > layer due to the > > presence of an ORDER BY clause in the DATA string, that was > evaluated before > > setting the spatial filter. > > > (*) For comparison, I translated your database to Postgis, > and set-up the > > connection mapfile to use that Postgis database (still > through OGR, not the > > MapServer Postgis backend). The same request with OGR PG is > run in 0.18 sec. > > Awesome! About 25 times faster in the evening than it was in > the morning. My opinion is that because Spatialite seems to > be, at least in this case, more that two times faster backend > for Mapserver than PostGIS it should lead to some intensive > and controlled testing now. I updated the cgi-bin directory of my MS4W 3.0.4beta1 with the mapserv.exe and dll files taken from the brand new binaries from http://www.gisinternals.com/sdk/ (contains Mapserver and GDAL revisions r13144, r23972, respectively). As a result Mapserver is really serving me 10, or 25 or even 40 times faster than it did before the update measured as WMS throughput (images/minute). The times include rendering times and all the lags in the system so the difference tells exactly how the end user feels it. Greatest enhancement is with close zooms because then the apatial index bites hardest. And at least with my computer Spatialite backend is clearly faster than PostGIS with the same data and it may be even faster than shapefiles but it is too early to say that really. But this is absolutely something worth more testing. My test database is moderately sized and contains 100000 points, 90000 lines and 149000 polygons from OpenStreetMap data. I will myself do next trials with ten times bigger Spatialite database with something like million points, lines, and polygons. We do not have much bigger tables in our production. However, I do not believe we are changing from Oracle to SQLite/Spatialite very rapidly in our core business :) -Jukka Rahkonen- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Tue Feb 14 07:03:08 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 14 Feb 2012 10:03:08 -0500 Subject: [mapserver-users] Topology error prevents rendering In-Reply-To: <84446DEF76453C439E9E97E438E13A6307416D@pasuri.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A6307416D@pasuri.haapa.mmm.fi> Message-ID: <4F3A77AC.2040104@swoodbridge.com> On 2/14/2012 3:37 AM, Rahkonen Jukka wrote: > Hi, > OpenStreetMap data tend to contain topology errors and Mapserver sends > an empty map when it finds an error on one layer of a multi-layer map. > Cases are like this: > msOGRFileNextShape(): OGR error. TopologyException: side location > conflict at 1.48639e+006 6.89386e+006 > [Tue Feb 14 09:41:37 2012].113000 msDrawMap(): Image handling error. > Failed to draw layer named 'landuse_layer1'. > Topology errors would be best to correct in the data but I wonder if > Mapserver could be somehow more robust and just skip the faulty feature > or that certain layer instead of giving in totally. Sometimes it would > be better to get an incomplete map than no map at all. > -Jukka Rahkonen- Jukka, This is actually an issue in OGR. If you put the same data in a shapefile, mapserver will serve it with no problem but when you go through the OGR interface, OGR is throwing the error. It might be possible to make the OGR driver in mapserver more forgiving, but that probably depends on whether or not the OGR error is recoverable and it can continue. I would write a ticket for this issue and assign it to the OGR driver module. -Steve W From eduardo.kanegae at gmail.com Tue Feb 14 07:13:41 2012 From: eduardo.kanegae at gmail.com (Eduardo Kanegae) Date: Tue, 14 Feb 2012 12:13:41 -0300 Subject: [mapserver-users] How to enable a spatial query with MODE=FEATUREQUERY (CGI mode)? Message-ID: Hi, I have two layers (poly_layer and point_layer) and using MapServer CGI interface I wish to: a) - let user click a polygon at 'poly_layer' b) - then list attributes of 'point_layer' that are contained into the polygon choosen at (a) At my mapfile, both layers has layer->template property set and at CGI interface (web->template) I'm passing: - mode = featurequery - slayer = poly_layer - qlayer = point_layer But after the click on map, got only a "not found" error. Am I doing right use of this mode? Or for this need, is it better to use another mode? ps.: all layers are Mapinfo files and can't use PostGIS at this application. Eduardo Patto Kanegae http://www.webmapit.com?| @webmapit From flavio at tydac.ch Tue Feb 14 07:10:49 2012 From: flavio at tydac.ch (Flavio Hendry) Date: Tue, 14 Feb 2012 16:10:49 +0100 Subject: [mapserver-users] Topology error prevents rendering In-Reply-To: <4F3A77AC.2040104@swoodbridge.com> References: <84446DEF76453C439E9E97E438E13A6307416D@pasuri.haapa.mmm.fi> <4F3A77AC.2040104@swoodbridge.com> Message-ID: <4F3A7979.3000109@tydac.ch> Hi Stephen yep. OGR does not like self-intersecting polygons. should definitely tolerate them ... Mit freundlichem Gruss / Best regards Flavio Hendry ---------------------------------------------------------------- TYDAC Inc. - http://www.tydac.ch Web Mapping - http://www.mapserver.ch Swiss Maps - http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ Flavio Hendry, CEO - mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Optingenstrasse 27 -- CH-3013 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27 ---------------------------------------------------------------- From j.l.h.hartmann at uva.nl Tue Feb 14 09:03:04 2012 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Tue, 14 Feb 2012 18:03:04 +0100 Subject: [mapserver-users] Constraining label position In-Reply-To: References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6306972D@suutari.haapa.mmm.fi> Message-ID: <4F3A93C8.3000005@uva.nl> Hi, The development version of Openlayers has a new facility: smooth tile transition. When panning, the old image remains visible for 2.5 seconds under the new one, so as to make the panning process smoother. This works fine for static maps, but gives undesired effects with MapServer labels. Those are computed anew for every request, so e.g. labels for items at the corner of the map get a different position, to keep them inside the displayed map. This results in old and new labels being displayed next to one another for some time. Is there an option in MapServer to constrain the labels to always have the same position respective to the geometry they are labeling? Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Feb 14 09:17:01 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 14 Feb 2012 12:17:01 -0500 Subject: [mapserver-users] Constraining label position In-Reply-To: <4F3A93C8.3000005@uva.nl> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6306972D@suutari.haapa.mmm.fi> <4F3A93C8.3000005@uva.nl> Message-ID: <4F3A970D.6040403@swoodbridge.com> On 2/14/2012 12:03 PM, Jan Hartmann wrote: > Hi, > > The development version of Openlayers has a new facility: smooth tile > transition. When panning, the old image remains visible for 2.5 seconds > under the new one, so as to make the panning process smoother. This > works fine for static maps, but gives undesired effects with MapServer > labels. Those are computed anew for every request, so e.g. labels for > items at the corner of the map get a different position, to keep them > inside the displayed map. This results in old and new labels being > displayed next to one another for some time. > > Is there an option in MapServer to constrain the labels to always have > the same position respective to the geometry they are labeling? google: mapserver geomtransform this will let you fix the label point to the centroid of the object or some other positions. The issue is that the label point is generally calculated based on the geometry of the object as clipped to the view port. So the geometry changes based on the view clipping and this causes the label point to also change. the geomtransform works on the original data and so the label point becomes fixed. There is also a lot of label enhancements being added to trunk for the next release. You might want to look at rfc 77 [1] in additions to rfc 72 [2]. [1] http://mapserver.org/development/rfc/ms-rfc-77.html [2] http://mapserver.org/development/rfc/ms-rfc-72.html -Steve W From even.rouault at mines-paris.org Tue Feb 14 10:40:40 2012 From: even.rouault at mines-paris.org (Even Rouault) Date: Tue, 14 Feb 2012 19:40:40 +0100 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: <84446DEF76453C439E9E97E438E13A6307410E@pasuri.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A63070B00@pasuri.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6307410E@pasuri.haapa.mmm.fi> Message-ID: <201202141940.40576.even.rouault@mines-paris.org> Le mardi 14 f?vrier 2012 09:24:15, Rahkonen Jukka a ?crit : > Rahkonen Jukka wrote: > > Even Rouault wrote: > > >> I've commited improvements in GDAL trunk for both points ( > > >> http://trac.osgeo.org/gdal/changeset/23944 and > > >> http://trac.osgeo.org/gdal/changeset/23945 ) that make the > > > > above request go > > > > >> from 1.7 sec to 0.54 sec . I don't think there's any more > > > > significant speed > > > > >> gain to expect now (at least on OGR side). > > > > > > Actually, I found a new improvement (committed in > > > http://trac.osgeo.org/gdal/changeset/23946) that make the > > > > query time go down > > > > > to 0.07 sec (*) ! There was a slowness when opening the > > > > layer due to the > > > > > presence of an ORDER BY clause in the DATA string, that was > > > > evaluated before > > > > > setting the spatial filter. > > > > > > (*) For comparison, I translated your database to Postgis, > > > > and set-up the > > > > > connection mapfile to use that Postgis database (still > > > > through OGR, not the > > > > > MapServer Postgis backend). The same request with OGR PG is > > > > run in 0.18 sec. > > > > Awesome! About 25 times faster in the evening than it was in > > the morning. My opinion is that because Spatialite seems to > > be, at least in this case, more that two times faster backend > > for Mapserver than PostGIS it should lead to some intensive > > and controlled testing now. > > I updated the cgi-bin directory of my MS4W 3.0.4beta1 with the mapserv.exe > and dll files taken from the brand new binaries from > http://www.gisinternals.com/sdk/ (contains Mapserver and GDAL revisions > r13144, r23972, respectively). > > As a result Mapserver is really serving me 10, or 25 or even 40 times > faster than it did before the update measured as WMS throughput > (images/minute). The times include rendering times and all the lags in the > system so the difference tells exactly how the end user feels it. Greatest > enhancement is with close zooms because then the apatial index bites > hardest. And at least with my computer Spatialite backend is clearly > faster than PostGIS with the same data and it may be even faster than > shapefiles but it is too early to say that really. But this is absolutely > something worth more testing. I tested a bit with shapefiles with your Berlin OSM database. Even after adding spatial index (.qix) and attribute index (.idm & .idn) on fields in where clauses, it is a bit slower than spatialite. If you remove all columns from the DBF that are not necessary for the rendering, it improves things a bit again. You can also try the new special SQL command "RESIZE table_name" for shapefiles I've committed yesterday (see http://gdal.org/ogr/drv_shapefile.html ) to adjust columns to their minimum needed size. > > My test database is moderately sized and contains 100000 points, 90000 > lines and 149000 polygons from OpenStreetMap data. I will myself do next > trials with ten times bigger Spatialite database with something like > million points, lines, and polygons. We do not have much bigger tables in > our production. However, I do not believe we are changing from Oracle to > SQLite/Spatialite very rapidly in our core business :) > > -Jukka Rahkonen- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From daithiquinn at gmail.com Tue Feb 14 10:46:00 2012 From: daithiquinn at gmail.com (David Quinn) Date: Tue, 14 Feb 2012 13:46:00 -0500 Subject: [mapserver-users] postgis raster query question Message-ID: Hello All, I'm using mapserver to display some rasters as WMS layers using Openlayers. At the moment I have all my rasters in a web-readable folder and it works fine. I want to try accessing the rastes using postgis, but I'm not sure exactly how to do this. I've read through this http://mapserver.org/input/vector/postgis.html and the relevant part of PostGIS in action. My original map file (which worked) looked like this: LAYER NAME "new_york_pop" DATA "/home//htdocs/data/new_york_pop.tif" STATUS OFF TYPE RASTER METADATA "wms_title" "WMS new_york Raster" "wms_srs" "EPSG:900913" END END I tried changing this to the following: LAYER NAME "new_york_pop" TYPE RASTER CONNECTIONTYPE POSTGIS CONNECTION "host=18.00.00.00 dbname=raster_analysis user=postgres password=mypassword port=5434" DATA "SELECT ST_AsTIFF(ST_Clip(r.rast, 1, p.geom, NULL, TRUE)) FROM us_pop_800 AS r, cities AS p WHERE ST_Intersects(r.rast, p.geom) AND p.name= 'new_york'" STATUS OFF METADATA "wms_title" "WMS new_york Raster" "wms_srs" "EPSG:900913" END END The SQL query runs fine within the SQL console of Postgresql and returns a few tiffs, but it does not work on mapserver. My mapserver error log shows the following: [Tue Feb 14 12:16:29 2012].918681 msDrawMap(): Image handling error. Failed to draw layer named 'new_york_pop'. [Tue Feb 14 12:16:29 2012].917535 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Tue Feb 14 12:16:29 2012].918757 msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file 'SELECT ST_AsTIFF(ST_Clip(r.rast, 1, p.geom, NULL, TRUE)) FROM us_pop_raster AS r, cities AS p WHERE ST_Intersects(r.rast, p.geom) AND p.name = 'new_york'' for layer 'new_york_pop'. [Tue Feb 14 12:16:29 2012].918766 msDrawMap(): Image handling error. Failed to draw layer named 'new_york_pop'. I would appreciate any suggestions for debugging this. I have connected to the postgresql database using a php file from the same location so mapserver should have the correct permissions to connect (and my port is 5434, rather than the usual 5432). Thank you, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Tue Feb 14 12:19:12 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 14 Feb 2012 20:19:12 +0000 Subject: [mapserver-users] raster storage format recommendations - tiff too large Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA30CE4B0@swmail01.r8nssis.local> Hello, I would like to increase the speed on my air photos. I have created a uncompressed tiff, which Is fast however, the file size is much too large for my project. On the other hand the file size of MrSID is appropriate, but it is slow even when using PROCESSING "OVERSAMPLE_RATIO=1.0." Is there a happy medium between the two file formats? Thanks Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Feb 14 12:43:20 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 14 Feb 2012 20:43:20 +0000 Subject: [mapserver-users] raster storage format recommendations - tiff too large In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA30CE4B0@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA30CE4B0@swmail01.r8nssis.local> Message-ID: <84446DEF76453C439E9E97E438E13A63074361@pasuri.haapa.mmm.fi> Hi, Do geotiffs with -co tiled=YES -co compression=JPEG -co photometric=YCBCR and then gdaladdo with --config COMPRESS_OVERVIEW JPEG --config PHOTOMETRIC_OVERVIEW YCBCR I prefer external overviews nowadays. -Jukka Rahkonen- ________________________________ Mark Volz wrote: > Hello, > I would like to increase the speed on my air photos. I have created a uncompressed tiff, which Is fast however, the file size is much too large for my project. On the other hand the file size of MrSID is appropriate, but it is slow even when using PROCESSING "OVERSAMPLE_RATIO=1.0." > Is there a happy medium between the two file formats? > Thanks > Mark Volz > GIS Specialist From CowieA at landcareresearch.co.nz Tue Feb 14 19:45:53 2012 From: CowieA at landcareresearch.co.nz (Andrew Cowie) Date: Wed, 15 Feb 2012 16:45:53 +1300 Subject: [mapserver-users] Mapcache Seed / libpng error? Message-ID: <99F4D44109DA3A448A9C811B14E04B15163E43FEAF@donkey.landcare.ad.landcareresearch.co.nz> Hello List, We've been using mapcache_seed ( mapcache SVN checkout 13002 ) to build our caches mostly successfully so far, but recently have come up against an error which has only cropped up with a certain layer which includes our text & labels www-data at server$ ./mapcache_seed -c /opt/mapserver/mapcache/oe_mapcache.xml -t 2012-02-02_text_cache_nztm -g portalgridnztm1 -z 7,8 found old lockfile /tmp/_gc_lock9-175-1233-slope_cache_nztm.lck, deleting it found old lockfile /tmp/_gc_lock7-7-9-2012-02-02_text_cache_nztm.lck, deleting it found old lockfile /tmp/_gc_lock9-136-179-terr_auth_cache_nztm.lck, deleting it found old lockfile /tmp/_gc_lock9-138-86-wards_cache_nztm.lck, deleting it seeding tile 65 25 7libpng error: IDAT: CRC error failed to setjmp(png_jmpbuf(png_ptr)) failed to load image data from metatile failed to setjmp(png_jmpbuf(png_ptr)) failed to load image data from metatile seeding tile 130 50 8 www-data at server$ or... www-data at server$ ./mapcache_seed -c /opt/mapserver/mapcache/oe_mapcache.xml -t 2012-02-02_text_cache_nztm -g portalgridnztm1 -z 6,7 found old lockfile /tmp/_gc_lock9-137-51-terr_auth_cache_nztm.lck, deleting it found old lockfile /tmp/_gc_lock9-182-1201-slope_cache_nztm.lck, deleting it found old lockfile /tmp/_gc_lock9-138-197-wards_cache_nztm.lck, deleting it seeding tile 25 15 6libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng error: IDAT: CRC error failed to setjmp(png_jmpbuf(png_ptr)) failed to load image data from metatile seeding tile 50 35 7failed to setjmp(png_jmpbuf(png_ptr)) failed to load image data from metatile www-data at server$ The next step will be to checkout the latest SVN version. But we are currently mid-build with some other layers, so are waiting for them to finish before we do that. But thought we'd fire it out to the list to see if anyone has any ideas as to what might be causing this? Below is the mapcache config: http://server/cgi-bin/mapserv601? image/png text /opt/mapserver/mapfiles/m6scenz_topo_new.map true src_text_update disk PNG portalgridnztm1 5 5 10 "labelcache_map_edge_buffer" "-10" is set in mapserver WEB METADATA Cheers Andrew ________________________________ Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Feb 15 01:42:33 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 15 Feb 2012 10:42:33 +0100 Subject: [mapserver-users] Mapcache Seed / libpng error? In-Reply-To: <99F4D44109DA3A448A9C811B14E04B15163E43FEAF@donkey.landcare.ad.landcareresearch.co.nz> References: <99F4D44109DA3A448A9C811B14E04B15163E43FEAF@donkey.landcare.ad.landcareresearch.co.nz> Message-ID: Is the error always reproducible ? >From the logs it seems that the png data received by mapcache from the wms server is corrupt. More investigation would be needed to determine if the network or the wms server is at fault for this. regards, -- thomas On Wed, Feb 15, 2012 at 04:45, Andrew Cowie wrote: > Hello List, > > > > We?ve been using mapcache_seed ( mapcache SVN checkout 13002 ) to build our > caches mostly successfully so far, but recently have come up against an > error which has only cropped up with a certain layer which includes our text > & labels > > > > www-data at server$ ./mapcache_seed -c /opt/mapserver/mapcache/oe_mapcache.xml > -t 2012-02-02_text_cache_nztm? -g portalgridnztm1 -z 7,8 > > found old lockfile /tmp/_gc_lock9-175-1233-slope_cache_nztm.lck, deleting it > > found old lockfile /tmp/_gc_lock7-7-9-2012-02-02_text_cache_nztm.lck, > deleting it > > found old lockfile /tmp/_gc_lock9-136-179-terr_auth_cache_nztm.lck, deleting > it > > found old lockfile /tmp/_gc_lock9-138-86-wards_cache_nztm.lck, deleting it > > seeding tile 65 25 7libpng error: IDAT: CRC error > > failed to setjmp(png_jmpbuf(png_ptr)) > > failed to load image data from metatile > > failed to setjmp(png_jmpbuf(png_ptr)) > > failed to load image data from metatile > > seeding tile 130 50 8 > > www-data at server$ > > > > or... > > > > www-data at server$ ./mapcache_seed -c /opt/mapserver/mapcache/oe_mapcache.xml > -t 2012-02-02_text_cache_nztm? -g portalgridnztm1 -z 6,7 > > found old lockfile /tmp/_gc_lock9-137-51-terr_auth_cache_nztm.lck, deleting > it > > found old lockfile /tmp/_gc_lock9-182-1201-slope_cache_nztm.lck, deleting it > > found old lockfile /tmp/_gc_lock9-138-197-wards_cache_nztm.lck, deleting it > > seeding tile 25 15 6libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng error: IDAT: CRC error > > failed to setjmp(png_jmpbuf(png_ptr)) > > failed to load image data from metatile > > seeding tile 50 35 7failed to setjmp(png_jmpbuf(png_ptr)) > > failed to load image data from metatile > > www-data at server$ > > > > > > The next step will be to checkout the latest SVN version. But we are > currently mid-build with some other layers, so are waiting for them to > finish before we do that. But thought ?we?d fire it out to the list to see > if anyone has any ideas as to what might be causing this? > > > > > > Below is the mapcache config: > > > > ?? > > ????? > > ???????? http://server/cgi-bin/mapserv601? > > ????? > > ????? > > ???????? > > ??????????? image/png > > ??????????? text > > ??????????? /opt/mapserver/mapfiles/m6scenz_topo_new.map > > ??????????? true > > ???????? > > ????? > > ?? > > > > ?? > > ????? src_text_update > > ????? disk > > ????? PNG > > ????? portalgridnztm1 > > ????? 5 5 > > ????? 10 > > ?? > > > > > > "labelcache_map_edge_buffer" ?????????????????? "-10"??? is set in mapserver > WEB METADATA > > > > > > Cheers > > > > > > Andrew > > > > > > > > > > > ________________________________ > Please consider the environment before printing this email > Warning: This electronic message together with any attachments is > confidential. If you receive it in error: (i) you must not read, use, > disclose, copy or retain it; (ii) please contact the sender immediately by > reply email and then delete the emails. > The views expressed in this email may not be those of Landcare Research New > Zealand Limited. http://www.landcareresearch.co.nz > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From eduardo.kanegae at gmail.com Wed Feb 15 02:11:21 2012 From: eduardo.kanegae at gmail.com (Eduardo Kanegae) Date: Wed, 15 Feb 2012 07:11:21 -0300 Subject: [mapserver-users] Re: How to enable a spatial query with MODE=FEATUREQUERY (CGI mode)? In-Reply-To: References: Message-ID: hi all, Just to close this topic, I put it to work after the folloowing changes: * mapfile - Tolerance = 0 at both layers (poly and point layer) - template is set at both layers * web template - inserted a hidden html param named 'slayer' with value = poly_layer - inserted a radio html param named 'mode' with 'value' = featurequery now, it's working! :-) Eduardo > > Hi, > > I have two layers (poly_layer and point_layer) and using MapServer CGI > interface I wish to: > a) - let user click a polygon at 'poly_layer' > b) - then list attributes of 'point_layer' that are contained into the > polygon choosen at (a) > > At my mapfile, both layers has layer->template property set and at CGI > interface (web->template) I'm passing: > - mode = featurequery > - slayer = poly_layer > - qlayer = point_layer > > But after the click on map, got only a "not found" error. > > Am I doing right use of this mode? Or for this need, is it better to > use another mode? > > ps.: all layers are Mapinfo files and can't use PostGIS at this application. > > Eduardo Patto Kanegae > http://www.webmapit.com?| @webmapit From Jukka.Rahkonen at mmmtike.fi Wed Feb 15 04:04:03 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 15 Feb 2012 12:04:03 +0000 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: <201202141940.40576.even.rouault@mines-paris.org> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A63070B00@pasuri.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6307410E@pasuri.haapa.mmm.fi> <201202141940.40576.even.rouault@mines-paris.org> Message-ID: <84446DEF76453C439E9E97E438E13A6307553B@pasuri.haapa.mmm.fi> Even Rouault wrote: > > Le mardi 14 f?vrier 2012 09:24:15, Rahkonen Jukka a ?crit : > > Rahkonen Jukka wrote: > > > Even Rouault wrote: > > > >> I've commited improvements in GDAL trunk for both points ( > > > >> http://trac.osgeo.org/gdal/changeset/23944 and > > > >> http://trac.osgeo.org/gdal/changeset/23945 ) that make the > > > > > > above request go > > > > > > >> from 1.7 sec to 0.54 sec . I don't think there's any more > > > > > > significant speed > > > > > > >> gain to expect now (at least on OGR side). > > > > > > > > Actually, I found a new improvement (committed in > > > > http://trac.osgeo.org/gdal/changeset/23946) that make the > > > > > > query time go down > > > > > > > to 0.07 sec (*) ! There was a slowness when opening the > > > > > > layer due to the > > > > > > > presence of an ORDER BY clause in the DATA string, that was > > > > > > evaluated before > > > > > > > setting the spatial filter. > > > > > > > > (*) For comparison, I translated your database to Postgis, > > > > > > and set-up the > > > > > > > connection mapfile to use that Postgis database (still > > > > > > through OGR, not the > > > > > > > MapServer Postgis backend). The same request with OGR PG is > > > > > > run in 0.18 sec. > > > > > > Awesome! About 25 times faster in the evening than it was in > > > the morning. My opinion is that because Spatialite seems to > > > be, at least in this case, more that two times faster backend > > > for Mapserver than PostGIS it should lead to some intensive > > > and controlled testing now. > > > > I updated the cgi-bin directory of my MS4W 3.0.4beta1 with > the mapserv.exe > > and dll files taken from the brand new binaries from > > http://www.gisinternals.com/sdk/ (contains Mapserver and > GDAL revisions > > r13144, r23972, respectively). > > > > As a result Mapserver is really serving me 10, or 25 or > even 40 times > > faster than it did before the update measured as WMS throughput > > (images/minute). The times include rendering times and all > the lags in the > > system so the difference tells exactly how the end user > feels it. Greatest > > enhancement is with close zooms because then the apatial index bites > > hardest. And at least with my computer Spatialite backend is clearly > > faster than PostGIS with the same data and it may be even > faster than > > shapefiles but it is too early to say that really. But this > is absolutely > > something worth more testing. > > I tested a bit with shapefiles with your Berlin OSM database. > Even after adding > spatial index (.qix) and attribute index (.idm & .idn) on > fields in where > clauses, it is a bit slower than spatialite. If you remove > all columns from > the DBF that are not necessary for the rendering, it improves > things a bit > again. You can also try the new special SQL command "RESIZE > table_name" for > shapefiles I've committed yesterday (see > http://gdal.org/ogr/drv_shapefile.html > ) to adjust columns to their minimum needed size. I prepared a new Spatialite database from the OSM data of Finland. It contains 230000 points, 480000 lines and 440000 polygons and takes 700 MB on a disk. I made indexes for everything that is used in the WHERE selections and the result is just wonderful. If there is just few features to render the msDrawMap() takes just 0.01 - 0.10 seconds per layer (1000x800 sized output). And my computer is eight year old Windows WP with IDE disks and 1 GB of memory. Rendering lots of features takes naturally longer time but I do believe that technically GDAL/OGR/Mapserver side is in the order now and there is not much room for further improvements there. Best way for improving the speed of the service from this point is to generalize the data for rendering at small scales. Spatialite has Simplify() and SimplifyPreserveTopolygy() functions so it will be very easy to create simplified versions of the data into the same database. Features which are unreasonably small for rendering at the target scale can be sorted out at the same. I can imagine that one day some clever individual will write a tool that automatically runs SQL script which creates a set of new tables with simplified geometries into Spatialite and at the same time writes a corresponding mapfile which collects those tables as scale dependent layers under one Mapserver layer group. By the way, it would be very nice if the full stop at TopologyExceptions could be avoided. My Spatialite databases are created by ogr2ogr and self-intersections did not stop OGR then so perhaps it can be made to tolerate them also in this case. Now I fixed this problem in a crude way by running "DELETE from osm_polygon where ST_IsValid(GEOMETRY)<=0". -Jukka Rahkonen- From raffaele.morelli at gmail.com Wed Feb 15 04:51:32 2012 From: raffaele.morelli at gmail.com (Raffaele Morelli) Date: Wed, 15 Feb 2012 13:51:32 +0100 Subject: [mapserver-users] (no subject) Message-ID: Hi, I am working on a wms server and no matter how I try increasing MAXSIZE value I always get this error when trying to import my wms layer in Qgis msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH and HEIGHT must be between 1500000 here's the wms online resource http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO 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 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE any suggestion? regards -raffaele -------------- next part -------------- An HTML attachment was scrubbed... URL: From raffaele.morelli at gmail.com Wed Feb 15 05:09:49 2012 From: raffaele.morelli at gmail.com (Raffaele Morelli) Date: Wed, 15 Feb 2012 14:09:49 +0100 Subject: [mapserver-users] WMS image size issue Message-ID: Hi, (sorry for double posting but I forgot the subject in the previous email) I am working on a wms server and no matter how I try increasing MAXSIZE value I always get this error when trying to import my wms layer in Qgis msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH and HEIGHT must be between 1500000 here's the wms online resource http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO 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 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE any suggestion? regards -raffaele -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Feb 15 05:12:35 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 15 Feb 2012 13:12:35 +0000 Subject: [mapserver-users] (no subject) In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A630755DE@pasuri.haapa.mmm.fi> Hi, The bounding boxes are bit odd, check the EXTENTS of your mapfile and possibly wms_extent if you have set it. EPSG:32632 sostegni Sostegni EPSG:32632 Service itself is OK http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=469&HEIGHT=354&LAYERS=sostegni&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=-104932.26069053586,3923518.6330312905,1669843.960523528,5263115.183798409&SRS=EPSG:32632&STYLES= I would guess that QGis is trying to do zoom to a best fit by investigating layer extents and resolution and because extents are so wide it makes unrealistically big sized request. QGis will show the image if you zoom to correct location by coordinates or by opening a supporting vector file on the bottom. OpenJUMP had no problems for me. -Jukka Rahkonen- ________________________________ Raffaele Morelli wrote: Hi, I am working on a wms server and no matter how I try increasing MAXSIZE value I always get this error when trying to import my wms layer in Qgis msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH and HEIGHT must be between 1500000 here's the wms online resource http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO 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 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE any suggestion? regards -raffaele -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Feb 15 05:54:02 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 15 Feb 2012 08:54:02 -0500 Subject: [mapserver-users] Does Mapserver utilise Spatialite spatial index correctly? In-Reply-To: <84446DEF76453C439E9E97E438E13A6307553B@pasuri.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A63070B00@pasuri.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6307410E@pasuri.haapa.mmm.fi> <201202141940.40576.even.rouault@mines-paris.org> <84446DEF76453C439E9E97E438E13A6307553B@pasuri.haapa.mmm.fi> Message-ID: <4F3BB8FA.6000007@swoodbridge.com> On 2/15/2012 7:04 AM, Rahkonen Jukka wrote: > Even Rouault wrote: >> >> Le mardi 14 f?vrier 2012 09:24:15, Rahkonen Jukka a ?crit : >>> Rahkonen Jukka wrote: >>>> Even Rouault wrote: >>>>>> I've commited improvements in GDAL trunk for both points ( >>>>>> http://trac.osgeo.org/gdal/changeset/23944 and >>>>>> http://trac.osgeo.org/gdal/changeset/23945 ) that make the >>>> >>>> above request go >>>> >>>>>> from 1.7 sec to 0.54 sec . I don't think there's any more >>>> >>>> significant speed >>>> >>>>>> gain to expect now (at least on OGR side). >>>>> >>>>> Actually, I found a new improvement (committed in >>>>> http://trac.osgeo.org/gdal/changeset/23946) that make the >>>> >>>> query time go down >>>> >>>>> to 0.07 sec (*) ! There was a slowness when opening the >>>> >>>> layer due to the >>>> >>>>> presence of an ORDER BY clause in the DATA string, that was >>>> >>>> evaluated before >>>> >>>>> setting the spatial filter. >>>>> >>>>> (*) For comparison, I translated your database to Postgis, >>>> >>>> and set-up the >>>> >>>>> connection mapfile to use that Postgis database (still >>>> >>>> through OGR, not the >>>> >>>>> MapServer Postgis backend). The same request with OGR PG is >>>> >>>> run in 0.18 sec. >>>> >>>> Awesome! About 25 times faster in the evening than it was in >>>> the morning. My opinion is that because Spatialite seems to be, >>>> at least in this case, more that two times faster backend for >>>> Mapserver than PostGIS it should lead to some intensive and >>>> controlled testing now. >>> >>> I updated the cgi-bin directory of my MS4W 3.0.4beta1 with >> the mapserv.exe >>> and dll files taken from the brand new binaries from >>> http://www.gisinternals.com/sdk/ (contains Mapserver and >> GDAL revisions >>> r13144, r23972, respectively). >>> >>> As a result Mapserver is really serving me 10, or 25 or >> even 40 times >>> faster than it did before the update measured as WMS throughput >>> (images/minute). The times include rendering times and all >> the lags in the >>> system so the difference tells exactly how the end user >> feels it. Greatest >>> enhancement is with close zooms because then the apatial index >>> bites hardest. And at least with my computer Spatialite backend >>> is clearly faster than PostGIS with the same data and it may be >>> even >> faster than >>> shapefiles but it is too early to say that really. But this >> is absolutely >>> something worth more testing. >> >> I tested a bit with shapefiles with your Berlin OSM database. Even >> after adding spatial index (.qix) and attribute index (.idm& .idn) >> on fields in where clauses, it is a bit slower than spatialite. If >> you remove all columns from the DBF that are not necessary for the >> rendering, it improves things a bit again. You can also try the new >> special SQL command "RESIZE table_name" for shapefiles I've >> committed yesterday (see http://gdal.org/ogr/drv_shapefile.html ) >> to adjust columns to their minimum needed size. > > I prepared a new Spatialite database from the OSM data of Finland. It > contains 230000 points, 480000 lines and 440000 polygons and takes > 700 MB on a disk. I made indexes for everything that is used in the > WHERE selections and the result is just wonderful. If there is just > few features to render the msDrawMap() takes just 0.01 - 0.10 seconds > per layer (1000x800 sized output). And my computer is eight year old > Windows WP with IDE disks and 1 GB of memory. Rendering lots of > features takes naturally longer time but I do believe that > technically GDAL/OGR/Mapserver side is in the order now and there is > not much room for further improvements there. > > Best way for improving the speed of the service from this point is to > generalize the data for rendering at small scales. Spatialite has > Simplify() and SimplifyPreserveTopolygy() functions so it will be > very easy to create simplified versions of the data into the same > database. Features which are unreasonably small for rendering at the > target scale can be sorted out at the same. I can imagine that one > day some clever individual will write a tool that automatically runs > SQL script which creates a set of new tables with simplified > geometries into Spatialite and at the same time writes a > corresponding mapfile which collects those tables as scale dependent > layers under one Mapserver layer group. > > By the way, it would be very nice if the full stop at > TopologyExceptions could be avoided. My Spatialite databases are > created by ogr2ogr and self-intersections did not stop OGR then so > perhaps it can be made to tolerate them also in this case. Now I > fixed this problem in a crude way by running "DELETE from osm_polygon > where ST_IsValid(GEOMETRY)<=0". There is a hack in postGIS that might work here: update osm_polygon set GEOMETRY=ST_Buffer(GEOMERTY, 0.0) where ST_IsValid(GEOMETRY)<=0; This will fix some if not all the polygons. Then run your delete afterwards to clean out the rest. This may/may not work with SpatiaLite. -Steve From raffaele.morelli at gmail.com Wed Feb 15 06:33:23 2012 From: raffaele.morelli at gmail.com (Raffaele Morelli) Date: Wed, 15 Feb 2012 15:33:23 +0100 Subject: [mapserver-users] Re: WMS image size issue (Raffaele Morelli) Message-ID: > > > Message: 6 > Date: Wed, 15 Feb 2012 13:12:35 +0000 > From: Rahkonen Jukka > Subject: Re: [mapserver-users] (no subject) > To: "'mapserver-users at lists.osgeo.org'" > > Message-ID: > <84446DEF76453C439E9E97E438E13A630755DE at pasuri.haapa.mmm.fi> > Content-Type: text/plain; charset="us-ascii" > > Hi, > > The bounding boxes are bit odd, check the EXTENTS of your mapfile and > possibly wms_extent if you have set it. > EPSG:32632 > maxy="47.1372" /> > minx="313371" miny="3.93368e+06" maxx="1.31209e+06" > maxy="5.22041e+06" /> > > sostegni > Sostegni > EPSG:32632 > maxx="173.211" maxy="8.2419e+12" /> > minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" > maxy="2.5e+07" /> > > Service itself is OK > > > > http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities&REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=469&HEIGHT=354&LAYERS=sostegni&TRANSPARENT=TRUE&FORMAT=image/png&BBOX=-104932.26069053586,3923518.6330312905,1669843.960523528,5263115.183798409&SRS=EPSG:32632&STYLES= > > I would guess that QGis is trying to do zoom to a best fit by > investigating layer extents and resolution and because extents are so wide > it makes unrealistically big sized request. QGis will show the image if > you zoom to correct location by coordinates or by opening a supporting > vector file on the bottom. OpenJUMP had no problems for me. > > -Jukka Rahkonen- Stange cause I actually got EXTENT from ogrinfo querying a postgis layer as reported in this example http://mapserver.org/input/vector/postgis.html#ogrinfo-examples and here's the relevant output: Extent: (313371.309628, 3933679.249407) - (1312087.106406, 5220406.386046) ...same error -r -------------- next part -------------- An HTML attachment was scrubbed... URL: From jimlug at co.clackamas.or.us Wed Feb 15 08:05:49 2012 From: jimlug at co.clackamas.or.us (Dash) Date: Wed, 15 Feb 2012 08:05:49 -0800 (PST) Subject: [mapserver-users] Extract Layer Names from MapFile Message-ID: <1329321949868-4472664.post@n6.nabble.com> Is there a way to obtain a list of layer names from a mapfile. I need to compare a user defined list of layers with available layers in a mapfile. I would like to makes this dynamic but I don't see an easy way of returning a list of layer names from the mapfile. Any input would be greatly appreciated. Thanks. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Extract-Layer-Names-from-MapFile-tp4472664p4472664.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jt at mapmedia.de Wed Feb 15 08:10:35 2012 From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=) Date: Wed, 15 Feb 2012 17:10:35 +0100 Subject: [mapserver-users] Extract Layer Names from MapFile In-Reply-To: <1329321949868-4472664.post@n6.nabble.com> References: <1329321949868-4472664.post@n6.nabble.com> Message-ID: <4F3BD8FB.60105@mapmedia.de> Hi, what about parsing the capabilities-xml? J?rg Am 15.02.2012 17:05, schrieb Dash: > Is there a way to obtain a list of layer names from a mapfile. I need to > compare a user defined list of layers with available layers in a mapfile. I > would like to makes this dynamic but I don't see an easy way of returning a > list of layer names from the mapfile. Any input would be greatly > appreciated. > > Thanks. > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Extract-Layer-Names-from-MapFile-tp4472664p4472664.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 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-akademie.de/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _________________________________________________ MapMedia Kartographie und raumbezogene Informationssysteme Gillweg 3, 14193 Berlin fon: +49 30 89 06 82-70 fax: +49 30 89 09 53-21 mail: jt at mapmedia.de net: www.mapmedia.de _________________________________________________ Gesch?ftsf?hrer: G. v. Tschirnhaus, J. Thomsen, P. Stamm Registergericht, Berlin - Amtsgericht Charlottenburg, HRB 89625, Umsatzsteuer-Identnummer: DE 813794062 From jimlug at co.clackamas.or.us Wed Feb 15 08:36:21 2012 From: jimlug at co.clackamas.or.us (Dash) Date: Wed, 15 Feb 2012 08:36:21 -0800 (PST) Subject: [mapserver-users] Re: Extract Layer Names from MapFile In-Reply-To: <4F3BD8FB.60105@mapmedia.de> References: <1329321949868-4472664.post@n6.nabble.com> <4F3BD8FB.60105@mapmedia.de> Message-ID: <1329323781620-4472799.post@n6.nabble.com> I originally was thinking of parsing the getcapabilites but I don't want the user to see the file. I guess I could download the getcapabilites results, parse the information and then create a list of layer names. It seems a little much for such a trivial task -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Extract-Layer-Names-from-MapFile-tp4472664p4472799.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Wed Feb 15 09:18:33 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 15 Feb 2012 12:18:33 -0500 Subject: [mapserver-users] Re: Extract Layer Names from MapFile In-Reply-To: <1329323781620-4472799.post@n6.nabble.com> References: <1329321949868-4472664.post@n6.nabble.com> <4F3BD8FB.60105@mapmedia.de> <1329323781620-4472799.post@n6.nabble.com> Message-ID: <4F3BE8E9.7040305@swoodbridge.com> On 2/15/2012 11:36 AM, Dash wrote: > I originally was thinking of parsing the getcapabilites but I don't want the > user to see the file. I guess I could download the getcapabilites results, > parse the information and then create a list of layer names. It seems a > little much for such a trivial task I assume you want to do this in a javascript client, you could write a trivial php script and pass it the mapfile name and list of user layers and compare them on the server. Maybe a better question is why do you need to compare them? -Steve W From havard.tveite at umb.no Wed Feb 15 09:33:38 2012 From: havard.tveite at umb.no (Havard Tveite) Date: Wed, 15 Feb 2012 18:33:38 +0100 Subject: [mapserver-users] WMS image size issue In-Reply-To: References: Message-ID: <4F3BEC72.2090808@umb.no> Your WMS seems to work fine for me in QGIS 1.7.3. I tried the layer "MS". H?vard On 2/15/2012 2:09 PM, Raffaele Morelli wrote: > Hi, (sorry for double posting but I forgot the subject in the previous email) > > I am working on a wms server and no matter how I try increasing MAXSIZE value I always get this error when trying to import my wms layer in Qgis > > msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH and HEIGHT must be between 1500000 > > here's the wms online resource http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO 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 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > any suggestion? > > regards > -raffaele -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From jmckenna at gatewaygeomatics.com Wed Feb 15 09:35:34 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 15 Feb 2012 13:35:34 -0400 Subject: [mapserver-users] Extract Layer Names from MapFile In-Reply-To: <1329321949868-4472664.post@n6.nabble.com> References: <1329321949868-4472664.post@n6.nabble.com> Message-ID: <4F3BECE6.7000402@gatewaygeomatics.com> On 12-02-15 12:05 PM, Dash wrote: > Is there a way to obtain a list of layer names from a mapfile. I need to > compare a user defined list of layers with available layers in a mapfile. I > would like to makes this dynamic but I don't see an easy way of returning a > list of layer names from the mapfile. Any input would be greatly > appreciated. > Don't forget about the trusty shp2img utility, that does return each layer name from a mapfile. I can imagine some js/php magic to parse that response. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jimlug at co.clackamas.or.us Wed Feb 15 10:13:12 2012 From: jimlug at co.clackamas.or.us (Dash) Date: Wed, 15 Feb 2012 10:13:12 -0800 (PST) Subject: [mapserver-users] Re: Extract Layer Names from MapFile In-Reply-To: <4F3BECE6.7000402@gatewaygeomatics.com> References: <1329321949868-4472664.post@n6.nabble.com> <4F3BECE6.7000402@gatewaygeomatics.com> Message-ID: <1329329592499-4473199.post@n6.nabble.com> Well, I believe I figured it out using Java. I am able to use the URL Class to get the xml from my GetCapabilites request. Then, I created an InputStream from the URL Class and pass the InputStream object into my Java XML parser. It's actually pretty slick. Next, I'll try and plug it in to a JSP page. Thanks for all the advice and here is the codes for anyone else who is interested. import java.io.File; import java.io.InputStream; import java.net.URL; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; public class XMLReader { public static void main (String[] args) { try { URL getCapabilities = new URL(); InputStream is = getCapabilities.openStream(); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(is); doc.getDocumentElement().normalize(); NodeList nodeList = doc.getElementsByTagName("Layer"); for (int s = 0; s < nodeList.getLength(); s++) { Node fstNode = nodeList.item(s); if (fstNode.getNodeType() == Node.ELEMENT_NODE) { Element fstElmnt = (Element)fstNode; NodeList fstNmElmntLst = fstElmnt.getElementsByTagName("Name"); Element fstNmElmnt = (Element) fstNmElmntLst.item(0); NodeList fstNm = fstNmElmnt.getChildNodes(); System.out.println("MapFile Layer Name : " + ((Node) fstNm.item(0)).getNodeValue()); } } } catch (Exception e) { e.printStackTrace(); } } } -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Extract-Layer-Names-from-MapFile-tp4472664p4473199.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ian.walberg at airborne.aero Wed Feb 15 10:23:19 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Wed, 15 Feb 2012 13:23:19 -0500 Subject: [mapserver-users] RE: Circles around points in miles In-Reply-To: References: Message-ID: Steve, Thanks again for the info so far. Testing this today we realise (not surprisingly) that both the size and width of the symbol are now in miles. Ideally we would like to set the radius of the circle in miles and the width in pixels. Is there any way of doing this? Regards Ian -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, February 13, 2012 2:57 PM To: Ian Walberg; mapserver-users at lists.osgeo.org Subject: RE: Circles around points in miles I jumped the gun on the geomtransform idea. The support is there but because it operates at the style level buffer distances must be given in pixels and there's no easy way to convert a map distance (e.g. 10 miles) to pixels. I really should make some runtime constants (for example, extent, scale and cellsize) available to expressions- then you could do this. Glad you picked option 2 to start. Steve -----Original Message----- From: Ian Walberg [mailto:ian.walberg at airborne.aero] Sent: Monday, February 13, 2012 4:38 PM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: RE: Circles around points in miles Steve, Many thanks for the help and we have just tested option 2 and that works. We are using 6.x but are not exactly sure how to use the geomtransform to do this. Do you have an example? Regards Ian -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, February 13, 2012 9:37 AM To: Ian Walberg; mapserver-users at lists.osgeo.org Subject: RE: Circles around points in miles Couple of options depending on version: 1) 6.x: buffer the points using a style geomtransform 2) all versions: use layer SIZEUNITS to draw a circle symbol in miles I think option 1 is more flexible but option 2 is probably faster. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian Walberg Sent: Saturday, February 11, 2012 10:06 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Circles around points in miles We need to draw circles of 50 and 100 miles around a list of points. How can we do this? Thanks Ian _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Wed Feb 15 10:36:28 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 15 Feb 2012 13:36:28 -0500 Subject: [mapserver-users] RE: Circles around points in miles In-Reply-To: References: Message-ID: <4F3BFB2C.8090703@swoodbridge.com> On 2/15/2012 1:23 PM, Ian Walberg wrote: > Steve, > > Thanks again for the info so far. > > Testing this today we realise (not surprisingly) that both the size and > width of the symbol are now in miles. > > Ideally we would like to set the radius of the circle in miles and the > width in pixels. > > Is there any way of doing this? Yes, add minwidth 1 and maxwidth 1 to force the width to 1 pixel. -Steve W > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 2:57 PM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > I jumped the gun on the geomtransform idea. The support is there but > because it operates at the style level buffer distances must be given in > pixels and there's no easy way to convert a map distance (e.g. 10 miles) > to pixels. I really should make some runtime constants (for example, > extent, scale and cellsize) available to expressions- then you could do > this. > > Glad you picked option 2 to start. > > Steve > > -----Original Message----- > From: Ian Walberg [mailto:ian.walberg at airborne.aero] > Sent: Monday, February 13, 2012 4:38 PM > To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Steve, > > Many thanks for the help and we have just tested option 2 and that > works. > > We are using 6.x but are not exactly sure how to use the geomtransform > to do this. Do you have an example? > > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 9:37 AM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Couple of options depending on version: > > 1) 6.x: buffer the points using a style geomtransform > 2) all versions: use layer SIZEUNITS to draw a circle symbol in miles > > I think option 1 is more flexible but option 2 is probably faster. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian > Walberg > Sent: Saturday, February 11, 2012 10:06 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Circles around points in miles > > > We need to draw circles of 50 and 100 miles around a list of points. > > How can we do this? > > Thanks > > Ian > _______________________________________________ > 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 ian.walberg at airborne.aero Wed Feb 15 11:40:19 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Wed, 15 Feb 2012 14:40:19 -0500 Subject: [mapserver-users] RE: Circles around points in miles In-Reply-To: <4F3BFB2C.8090703@swoodbridge.com> References: <4F3BFB2C.8090703@swoodbridge.com> Message-ID: Stephen, That appears to do the trick. Many thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, February 15, 2012 10:36 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Circles around points in miles On 2/15/2012 1:23 PM, Ian Walberg wrote: > Steve, > > Thanks again for the info so far. > > Testing this today we realise (not surprisingly) that both the size > and width of the symbol are now in miles. > > Ideally we would like to set the radius of the circle in miles and the > width in pixels. > > Is there any way of doing this? Yes, add minwidth 1 and maxwidth 1 to force the width to 1 pixel. -Steve W > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 2:57 PM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > I jumped the gun on the geomtransform idea. The support is there but > because it operates at the style level buffer distances must be given > in pixels and there's no easy way to convert a map distance (e.g. 10 > miles) to pixels. I really should make some runtime constants (for > example, extent, scale and cellsize) available to expressions- then > you could do this. > > Glad you picked option 2 to start. > > Steve > > -----Original Message----- > From: Ian Walberg [mailto:ian.walberg at airborne.aero] > Sent: Monday, February 13, 2012 4:38 PM > To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Steve, > > Many thanks for the help and we have just tested option 2 and that > works. > > We are using 6.x but are not exactly sure how to use the geomtransform > to do this. Do you have an example? > > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 9:37 AM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Couple of options depending on version: > > 1) 6.x: buffer the points using a style geomtransform > 2) all versions: use layer SIZEUNITS to draw a circle symbol in > miles > > I think option 1 is more flexible but option 2 is probably faster. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian > Walberg > Sent: Saturday, February 11, 2012 10:06 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Circles around points in miles > > > We need to draw circles of 50 and 100 miles around a list of points. > > How can we do this? > > Thanks > > Ian > _______________________________________________ > 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 woodbri at swoodbridge.com Wed Feb 15 13:43:16 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 15 Feb 2012 16:43:16 -0500 Subject: [mapserver-users] CONFIG "ON_MISSING_DATA" "IGNORE" does not work on 5.6.8 Message-ID: <4F3C26F4.3090303@swoodbridge.com> I can not get CONFIG "ON_MISSING_DATA" "IGNORE" to work on mapserver 5.6.8. I'm doing WMS requests and I get the error on the image. MapServer version 5.6.8 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE The map file has: CONFIG "ON_MISSING_DATA" "IGNORE" CONFIG MS_ERRORFILE "stderr" WEB METADATA labelcache_map_edge_buffer "-10" ows_title "Peru_900913_WMS" ows_onlineresource "http://example.com/cgi-bin/mapserv?map=/u/data/peru.map&" ows_srs "EPSG:4326 EPSG:900913" ows_feature_info_mime_type "text/html" ows_enable_request "GetMap" # I tried this also, but error message still inimage. # ows_exceptions_format "application/vnd.ogc.se_xml" END END Seems like CONFIG "ON_MISSING_DATA" "IGNORE" should do what the doc says it should do, but I can't find the magic incantation to make this work. Anyone know how to do this? -Steve W From Jukka.Rahkonen at mmmtike.fi Thu Feb 16 00:47:35 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 16 Feb 2012 08:47:35 +0000 Subject: [mapserver-users] WMS format=application/openlayers and following image/svg+xml requests Message-ID: <84446DEF76453C439E9E97E438E13A6307A81E@suutari.haapa.mmm.fi> Hi, I can see from the logs that if application/openlayers is selected as WMS outputformat, the simple OpenLayers client will repeat the GetMap request with outputformat image/svg+xml. This works fine and fast with close zoom but leads to time out when zoomed to full extents. Obviously converting thousands of objects into SVG vectors is too heavy operation. Is there some big advantage in having the Simple client to ask for image/svg+xml format instead of, for example, image/png? Is there some easy way to change this setting? It would be also nice if the Simple client would keep the WMS vendor parameters if the original GetMap contains such. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From astrid.emde at wheregroup.com Thu Feb 16 02:33:52 2012 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Thu, 16 Feb 2012 11:33:52 +0100 Subject: [mapserver-users] PHP max_input_vars can effect Mapbender administration and block requests Message-ID: <4F3CDB90.6050703@wheregroup.com> Hello, some of you may have problems saving changes within the Mapbender administration for example when you have a WMS with many layers. I wrote a mail before about Suhosin blocking requests when the Suhosin-variables are set too restrictive [1]. The problem can also occur, when the PHP variable max_input_vars [2] is not set. You may get a log message like this: "PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini." The default of this variable is 1000. If you have WMS with many layer you may have to increase this variable. I added this information to the Mapbender wiki [3][4]. [1] http://lists.osgeo.org/pipermail/mapbender_users/2011-December/004046.html [2] http://php.net/manual/en/info.configuration.php [3] http://mapbender.org/PHP_Configuration#PHP_Configuration [4] http://mapbender.org/Suhosin -- Mit freundlichen Gr??en Astrid Emde ******************************************** FOSSGIS Konferenz 2012 20.-22. M?rz 2012 in Dessau http://www.fossgis.de/konferenz/2012 ******************************************** ---------------------------------- Astrid Emde WhereGroup GmbH& Co.KG Eifelstra?e 7 53119 Bonn Germany Fon: +49(0)228 90 90 38 - 19 Fax: +49(0)228 90 90 38 - 11 astrid.emde at wheregroup.com www.wheregroup.com Amtsgericht Bonn, HRA 6788 ------------------------------- Komplement?rin: WhereGroup Verwaltungs GmbH vertreten durch: Olaf Knopp, Peter Stamm ------------------------------- pgp-public key: http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284 Signierte und/oder verschl?sselte Nachrichten sind sehr willkommen Signed and/or encrypted mail is highly appreciated From astrid.emde at wheregroup.com Thu Feb 16 03:03:49 2012 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Thu, 16 Feb 2012 12:03:49 +0100 Subject: [mapserver-users] PHP max_input_vars can effect Mapbender administration and block requests In-Reply-To: <4F3CDB90.6050703@wheregroup.com> References: <4F3CDB90.6050703@wheregroup.com> Message-ID: <4F3CE295.3070904@wheregroup.com> sorry, wrong list. A. Am 16.02.2012 11:33, schrieb Astrid Emde: > Hello, > > some of you may have problems saving changes within the Mapbender > administration for example when you have a WMS with many layers. I > wrote a mail before about Suhosin blocking requests when the > Suhosin-variables are set too restrictive [1]. > > The problem can also occur, when the PHP variable max_input_vars [2] > is not set. > > You may get a log message like this: > > "PHP Warning: Unknown: Input variables exceeded 1000. To increase the > limit change max_input_vars in php.ini." > > > The default of this variable is 1000. If you have WMS with many layer > you may have to increase this variable. > > I added this information to the Mapbender wiki [3][4]. > > [1] > http://lists.osgeo.org/pipermail/mapbender_users/2011-December/004046.html > [2] http://php.net/manual/en/info.configuration.php > [3] http://mapbender.org/PHP_Configuration#PHP_Configuration > [4] http://mapbender.org/Suhosin > From nick.friedrich at geolock.de Thu Feb 16 08:25:46 2012 From: nick.friedrich at geolock.de (Nick Friedrich) Date: Thu, 16 Feb 2012 17:25:46 +0100 Subject: [mapserver-users] Problem with Mapserver 6.0.1 and PHP Mapscript Message-ID: <4F3D2E0A.5070500@geolock.de> Hello, I have a problem with Mapserver 6.0.1 and PHP Mapscript. Until now I am working with Mapserver 5.2. For testing purposes I created a minimal mapfile, just with name and symbolset. The symbolset file contains just one simple filled circle. When I create a mapObj (tried old an new constructors) I get an empty Object (var_dump or print_r). Non-object members like name or status are still there, when accessing them directly. Set methods are also working for non-object members. Members, that are objects themselves, like projection, are not accessible. I have no clue what could be the problem. The system configuration is the same as when using Mapserver 5.2. PHP version is 5.2.17 (CGI). Version of other libraries (libpng, libgd, ...) meet the requirements. Thanks for your help, Nick From aboudreault at mapgears.com Thu Feb 16 09:03:03 2012 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 16 Feb 2012 12:03:03 -0500 Subject: [mapserver-users] Problem with Mapserver 6.0.1 and PHP Mapscript In-Reply-To: <4F3D2E0A.5070500@geolock.de> References: <4F3D2E0A.5070500@geolock.de> Message-ID: <4F3D36C7.5080608@mapgears.com> Hi Nick, It is normal that the var_dump and/or print_r returns nothing. IIRC, those functions haven't been implemented in the extension (yet?). However, you should not be able to set/get a properties that is not a member of the mapObj. I guess you map is really an empty object. Enable error log and debug in your mapfile to see if something is wrong.. though an error is normally thrown when the mapfile cannot be loaded. Alan On 12-02-16 11:25 AM, Nick Friedrich wrote: > Hello, > > I have a problem with Mapserver 6.0.1 and PHP Mapscript. > Until now I am working with Mapserver 5.2. > > For testing purposes I created a minimal mapfile, just with name and > symbolset. The symbolset file contains just one simple filled circle. > When I create a mapObj (tried old an new constructors) I get an empty > Object (var_dump or print_r). Non-object members like name or status are > still there, when accessing them directly. > Set methods are also working for non-object members. Members, that are > objects themselves, like projection, are not accessible. > > I have no clue what could be the problem. The system configuration is > the same as when using Mapserver 5.2. > PHP version is 5.2.17 (CGI). Version of other libraries (libpng, libgd, > ...) meet the requirements. > > Thanks for your help, > Nick > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault http://www.mapgears.com/ From mmypost at yandex.ru Thu Feb 16 12:43:58 2012 From: mmypost at yandex.ru (mmypost mmypost) Date: Fri, 17 Feb 2012 00:43:58 +0400 Subject: [mapserver-users] I have a problem with layerObj (mapscript C#), MapServer 6.0.1 (and 6.0.2) Message-ID: <857391329425038@web95.yandex.ru> Hi Sorry for my bad English. I downloaded mapserver package 3.0.3 (then 3.0.4) from MS4W site . My old code trying to get shapeObj by layerObj .getFeature. But new mapscript not contains getFeature mathod (although new mapscript documentation contains layerObj .getFeature description ). Can I to get shapeObj by shape id in new mapscript? Yours sincerely, Sev PS: layerObj.getResult(i) return resultObj now. From ian.walberg at airborne.aero Thu Feb 16 13:57:14 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Thu, 16 Feb 2012 16:57:14 -0500 Subject: [mapserver-users] RE: Circles around points in miles In-Reply-To: <6747A58B2713B44E9BEB2E9BDEFA775030E3BE9B@BE28.exg3.exghost.com> References: <4F3BFB2C.8090703@swoodbridge.com> <6747A58B2713B44E9BEB2E9BDEFA775030E3BE9B@BE28.exg3.exghost.com> Message-ID: This does not work in all cases as we hoped, or we may not understand how to use the overall ma projection correctly. All the layers have the projection set to "proj=latlong,ellps=WGS84". However if we set the overall map projection from this to "proj=ortho" the layer with the sizeunits set disappears. Is this an issue related to the projection or that the map units are now different. If we remove the sizeunits from the layer with the circles they reappear but of course are not the correct size (in miles). Many thanks Ian -----Original Message----- From: Ian Walberg Sent: Wednesday, February 15, 2012 11:40 AM To: Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Circles around points in miles Stephen, That appears to do the trick. Many thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, February 15, 2012 10:36 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Circles around points in miles On 2/15/2012 1:23 PM, Ian Walberg wrote: > Steve, > > Thanks again for the info so far. > > Testing this today we realise (not surprisingly) that both the size > and width of the symbol are now in miles. > > Ideally we would like to set the radius of the circle in miles and the > width in pixels. > > Is there any way of doing this? Yes, add minwidth 1 and maxwidth 1 to force the width to 1 pixel. -Steve W > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 2:57 PM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > I jumped the gun on the geomtransform idea. The support is there but > because it operates at the style level buffer distances must be given > in pixels and there's no easy way to convert a map distance (e.g. 10 > miles) to pixels. I really should make some runtime constants (for > example, extent, scale and cellsize) available to expressions- then > you could do this. > > Glad you picked option 2 to start. > > Steve > > -----Original Message----- > From: Ian Walberg [mailto:ian.walberg at airborne.aero] > Sent: Monday, February 13, 2012 4:38 PM > To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Steve, > > Many thanks for the help and we have just tested option 2 and that > works. > > We are using 6.x but are not exactly sure how to use the geomtransform > to do this. Do you have an example? > > Regards > > Ian > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 13, 2012 9:37 AM > To: Ian Walberg; mapserver-users at lists.osgeo.org > Subject: RE: Circles around points in miles > > Couple of options depending on version: > > 1) 6.x: buffer the points using a style geomtransform > 2) all versions: use layer SIZEUNITS to draw a circle symbol in > miles > > I think option 1 is more flexible but option 2 is probably faster. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ian > Walberg > Sent: Saturday, February 11, 2012 10:06 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Circles around points in miles > > > We need to draw circles of 50 and 100 miles around a list of points. > > How can we do this? > > Thanks > > Ian > _______________________________________________ > 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 CowieA at landcareresearch.co.nz Thu Feb 16 13:57:25 2012 From: CowieA at landcareresearch.co.nz (Andrew Cowie) Date: Fri, 17 Feb 2012 10:57:25 +1300 Subject: [mapserver-users] Mapcache Seed / libpng error? In-Reply-To: References: <99F4D44109DA3A448A9C811B14E04B15163E43FEAF@donkey.landcare.ad.landcareresearch.co.nz> Message-ID: <99F4D44109DA3A448A9C811B14E04B151640A7E234@donkey.landcare.ad.landcareresearch.co.nz> Ticket created: http://trac.osgeo.org/mapserver/ticket/4192 -----Original Message----- From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Wednesday, 15 February 2012 10:43 p.m. To: Andrew Cowie Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Mapcache Seed / libpng error? Is the error always reproducible ? From the logs it seems that the png data received by mapcache from the wms server is corrupt. More investigation would be needed to determine if the network or the wms server is at fault for this. regards, -- thomas On Wed, Feb 15, 2012 at 04:45, Andrew Cowie wrote: > Hello List, > > > > We?ve been using mapcache_seed ( mapcache SVN checkout 13002 ) to build our > caches mostly successfully so far, but recently have come up against an > error which has only cropped up with a certain layer which includes our text > & labels > > > > www-data at server$ ./mapcache_seed -c /opt/mapserver/mapcache/oe_mapcache.xml > -t 2012-02-02_text_cache_nztm -g portalgridnztm1 -z 7,8 > > found old lockfile /tmp/_gc_lock9-175-1233-slope_cache_nztm.lck, deleting it > > found old lockfile /tmp/_gc_lock7-7-9-2012-02-02_text_cache_nztm.lck, > deleting it > > found old lockfile /tmp/_gc_lock9-136-179-terr_auth_cache_nztm.lck, deleting > it > > found old lockfile /tmp/_gc_lock9-138-86-wards_cache_nztm.lck, deleting it > > seeding tile 65 25 7libpng error: IDAT: CRC error > > failed to setjmp(png_jmpbuf(png_ptr)) > > failed to load image data from metatile > > failed to setjmp(png_jmpbuf(png_ptr)) > > failed to load image data from metatile > > seeding tile 130 50 8 > > www-data at server$ > > > > or... > > > > www-data at server$ ./mapcache_seed -c /opt/mapserver/mapcache/oe_mapcache.xml > -t 2012-02-02_text_cache_nztm -g portalgridnztm1 -z 6,7 > > found old lockfile /tmp/_gc_lock9-137-51-terr_auth_cache_nztm.lck, deleting > it > > found old lockfile /tmp/_gc_lock9-182-1201-slope_cache_nztm.lck, deleting it > > found old lockfile /tmp/_gc_lock9-138-197-wards_cache_nztm.lck, deleting it > > seeding tile 25 15 6libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng warning: Ignoring bad adaptive filter type > > libpng error: IDAT: CRC error > > failed to setjmp(png_jmpbuf(png_ptr)) > > failed to load image data from metatile > > seeding tile 50 35 7failed to setjmp(png_jmpbuf(png_ptr)) > > failed to load image data from metatile > > www-data at server$ > > > > > > The next step will be to checkout the latest SVN version. But we are > currently mid-build with some other layers, so are waiting for them to > finish before we do that. But thought we?d fire it out to the list to see > if anyone has any ideas as to what might be causing this? > > > > > > Below is the mapcache config: > > > > > > > > http://server/cgi-bin/mapserv601? > > > > > > > > image/png > > text > > /opt/mapserver/mapfiles/m6scenz_topo_new.map > > true > > > > > > > > > > > > src_text_update > > disk > > PNG > > portalgridnztm1 > > 5 5 > > 10 > > > > > > > > "labelcache_map_edge_buffer" "-10" is set in mapserver > WEB METADATA > > > > > > Cheers > > > > > > Andrew > > > > > > > > > > > ________________________________ > Please consider the environment before printing this email > Warning: This electronic message together with any attachments is > confidential. If you receive it in error: (i) you must not read, use, > disclose, copy or retain it; (ii) please contact the sender immediately by > reply email and then delete the emails. > The views expressed in this email may not be those of Landcare Research New > Zealand Limited. http://www.landcareresearch.co.nz > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz From boolean10001 at yahoo.com Thu Feb 16 17:04:38 2012 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Thu, 16 Feb 2012 17:04:38 -0800 (PST) Subject: [mapserver-users] Problem with Mapserver 6.0.1 and PHP Mapscript In-Reply-To: <4F3D2E0A.5070500@geolock.de> References: <4F3D2E0A.5070500@geolock.de> Message-ID: <1329440678.77731.YahooMailNeo@web38207.mail.mud.yahoo.com> Nick, Try the mapObj->save method to see what Mapserver dumps. Cheers from M?xico ? IC Carlos Ruiz ________________________________ From: Nick Friedrich To: mapserver-users at lists.osgeo.org Sent: Thursday, February 16, 2012 10:25 AM Subject: [mapserver-users] Problem with Mapserver 6.0.1 and PHP Mapscript Hello, I have a problem with Mapserver 6.0.1 and PHP Mapscript. Until now I am working with Mapserver 5.2. For testing purposes I created a minimal mapfile, just with name and symbolset. The symbolset file contains just one simple filled circle. When I create a mapObj (tried old an new constructors) I get an empty Object (var_dump or print_r).? Non-object members like name or status are still there, when accessing them directly. Set methods are also working for non-object members. Members, that are objects themselves, like projection, are not accessible. I have no clue what could be the problem. The system configuration is the same as when using Mapserver 5.2. PHP version is 5.2.17 (CGI). Version of other libraries (libpng, libgd, ...) meet the requirements. Thanks for your help, Nick _______________________________________________ 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 ian.walberg at airborne.aero Thu Feb 16 22:32:12 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Fri, 17 Feb 2012 01:32:12 -0500 Subject: [mapserver-users] Problem with Mapserver 6.0.1 and PHP Mapscript In-Reply-To: <1329440678.77731.YahooMailNeo@web38207.mail.mud.yahoo.com> References: <4F3D2E0A.5070500@geolock.de> <1329440678.77731.YahooMailNeo@web38207.mail.mud.yahoo.com> Message-ID: Nick, I believe we had an issue when we moved to MS 6.x. Try opening from php an empty.map file with just MAP and END it. Then add whatever you need to the map object and use it. This has reminded me we need to go back and work out what our issue was. Regards Ian From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Carlos Ruiz Sent: Thursday, February 16, 2012 5:05 PM To: Nick Friedrich; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with Mapserver 6.0.1 and PHP Mapscript Nick, Try the mapObj->save method to see what Mapserver dumps. Cheers from M?xico IC Carlos Ruiz ________________________________ From: Nick Friedrich To: mapserver-users at lists.osgeo.org Sent: Thursday, February 16, 2012 10:25 AM Subject: [mapserver-users] Problem with Mapserver 6.0.1 and PHP Mapscript Hello, I have a problem with Mapserver 6.0.1 and PHP Mapscript. Until now I am working with Mapserver 5.2. For testing purposes I created a minimal mapfile, just with name and symbolset. The symbolset file contains just one simple filled circle. When I create a mapObj (tried old an new constructors) I get an empty Object (var_dump or print_r). Non-object members like name or status are still there, when accessing them directly. Set methods are also working for non-object members. Members, that are objects themselves, like projection, are not accessible. I have no clue what could be the problem. The system configuration is the same as when using Mapserver 5.2. PHP version is 5.2.17 (CGI). Version of other libraries (libpng, libgd, ...) meet the requirements. Thanks for your help, Nick _______________________________________________ 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 dejan.gambin at coin.hr Fri Feb 17 03:52:22 2012 From: dejan.gambin at coin.hr (Dejan Gambin) Date: Fri, 17 Feb 2012 12:52:22 +0100 Subject: [mapserver-users] Legend size problem in GetLegendGraphic request In-Reply-To: References: <85D8CB63-16B6-43C4-B97D-AC145D8589F0@coin.hr> <88F212FE-6977-4F46-9BF9-BBC30FFC0B2D@coin.hr> , Message-ID: <7AAD4B34-0E72-43A3-A7B7-05CE7CC21538@coin.hr> Steve, It is also happening with a layer that has pixel units, that legend symbol exceeds the key box. For example I have a polygon layer with outline width 5 and the symbol exceeds the key box borders. With a width of 1 for example, everything is ok. Am I doing something wrong? regards, dejan On 9. vel. 2012., at 15:47, Lime, Steve D (DNR) wrote: > We could always size symbols relative to the KEYSIZE but if you do that then relative differences between wide and narrow lines or large and small markers would be lost. If units are in pixels then one could compute a global scaling factor across all layers so that differences are preserved. Doesn't help with non-pixel units. > > Steve > > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Dejan Gambin [dejan.gambin at coin.hr] > Sent: Thursday, February 09, 2012 1:33 AM > To: Lime, Steve D (DNR) > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Legend size problem in GetLegendGraphic request > > Thx Steve, > > Shouldn't the request somehow take into account the KEYSIZE, that is always in pixels? > > Anyway, I have reported this (before your email) as a bug: http://trac.osgeo.org/mapserver/ticket/4177 > > In the mean time, yes I could use KEYIMAGE, I just wanted to avoid it. Or I can make my points circles and use pixels for SIZEUNITS > > dejan > On 7. vel. 2012., at 22:11, Lime, Steve D (DNR) wrote: > >> I'd call this a bug. Question is what size to use if sizeunits are specified. I don't have a good suggestion for that, anyone? One idea for an immediate workaround would be to create an image ahead of time and use KEYIMAGE to reference it instead. >> >> Steve >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Dejan Gambin >> Sent: Monday, February 06, 2012 9:37 AM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Legend size problem in GetLegendGraphic request >> >> Does someone know if this is some kind of a bug or it is supposed to be so? Should the legend symbol box size really depend on sizeunits? Or should I report it as a bug? >> >> thx, dejan >> >> On 3. vel. 2012., at 09:45, Dejan Gambin wrote: >> >>> Hi, >>> >>> I have point shapefile and trying to show the points as big circles on the map. So I am using something like: >>> >>> ... >>> SIZEUNITS kilometers >>> CLASS >>> Name "myname" >>> SIZE 10 >>> ... >>> END >>> ... >>> >>> Everything is show ok on the map but the symbol in the legend is very big, and exceeds the symbol key box very much, although KEYSIZE is set to 25 18. >>> >>> Btw, I am using WMS GetLegendGraphic request for getting the legend >>> >>> Thanks very much >>> >>> regards, dejan_______________________________________________ >>> 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 nick.friedrich at geolock.de Fri Feb 17 04:02:53 2012 From: nick.friedrich at geolock.de (Nick Friedrich) Date: Fri, 17 Feb 2012 04:02:53 -0800 (PST) Subject: [mapserver-users] Re: Problem with Mapserver 6.0.1 and PHP Mapscript In-Reply-To: <4F3D36C7.5080608@mapgears.com> References: <4F3D2E0A.5070500@geolock.de> <4F3D36C7.5080608@mapgears.com> Message-ID: <1329480173245-4479756.post@n6.nabble.com> Hi, it is not normal, that var_dump and print_r return nothing. I tested it with other Objects (e.g. FPDF) and it worked. Well, the mapObj can't be really empty. I created an mapObj with an empty Mapfile , loaded it via Mapscript and set a few non-object members and saved the mapfile. In the saved mapfile there are all values as I set them via Mapscript. When I create a mapfile with a few parameters, load it via Mapscript and write it via Mapscript everything in the written mapfile is correct. Even parameters that are represented by objects like imagecolor. But i cannot access them via Mapscript. I put debug in the mapfile. When loading an empty mapfile there is nothing reported. When loading a non-empty mapfile I always get a message lik this : "[Fri Feb 17 10:33:51 2012].245869 msFreeMap(): freeing map at 0x85c9890.". I also tried to set up a mapfile with one polygon layer and to create an image. This works. Nick -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-Mapserver-6-0-1-and-PHP-Mapscript-tp4476779p4479756.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nick.friedrich at geolock.de Fri Feb 17 04:12:17 2012 From: nick.friedrich at geolock.de (Nick Friedrich) Date: Fri, 17 Feb 2012 04:12:17 -0800 (PST) Subject: [mapserver-users] RE: Problem with Mapserver 6.0.1 and PHP Mapscript In-Reply-To: References: <4F3D2E0A.5070500@geolock.de> <1329440678.77731.YahooMailNeo@web38207.mail.mud.yahoo.com> Message-ID: <1329480737026-4479803.post@n6.nabble.com> Hi, loading an empty mapfile and doing everything via Mapscript does not work, because I can't access properties of the objects, that are objects themself, e.g. color or outlinecolor. It is vital for me to be able to set colors. The output of save() is fine. Loading an empty mapfile save() produces a mapfile with several default values. When loading a non-empty mapfile save() creates a mapfile with values as they are in the loaded mapfile. The Mapserver works. I created a mapfile with one layer and could create an image with data from Postgres. Nick -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-Mapserver-6-0-1-and-PHP-Mapscript-tp4476779p4479803.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nick.friedrich at geolock.de Fri Feb 17 04:58:24 2012 From: nick.friedrich at geolock.de (Nick Friedrich) Date: Fri, 17 Feb 2012 04:58:24 -0800 (PST) Subject: [mapserver-users] Re: Problem with Mapserver 6.0.1 and PHP Mapscript In-Reply-To: <1329480173245-4479756.post@n6.nabble.com> References: <4F3D2E0A.5070500@geolock.de> <4F3D36C7.5080608@mapgears.com> <1329480173245-4479756.post@n6.nabble.com> Message-ID: <1329483504787-4479995.post@n6.nabble.com> Hi, when using older mapserver versions var_dump returns not an empty mapObj. Nick -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-Mapserver-6-0-1-and-PHP-Mapscript-tp4476779p4479995.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aboudreault at mapgears.com Fri Feb 17 05:09:07 2012 From: aboudreault at mapgears.com (Alan Boudreault) Date: Fri, 17 Feb 2012 08:09:07 -0500 Subject: [mapserver-users] Re: Problem with Mapserver 6.0.1 and PHP Mapscript In-Reply-To: <1329483504787-4479995.post@n6.nabble.com> References: <4F3D2E0A.5070500@geolock.de> <4F3D36C7.5080608@mapgears.com> <1329480173245-4479756.post@n6.nabble.com> <1329483504787-4479995.post@n6.nabble.com> Message-ID: <4F3E5173.4030801@mapgears.com> This is the only output you'll get from a var_dump: object(mapObj)#1 (0) { } until the appropriate methods for this will be implemented. Alan On 12-02-17 07:58 AM, Nick Friedrich wrote: > Hi, > > when using older mapserver versions var_dump returns not an empty mapObj. > > > Nick > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-Mapserver-6-0-1-and-PHP-Mapscript-tp4476779p4479995.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 -- Alan Boudreault http://www.mapgears.com/ From nick.friedrich at geolock.de Fri Feb 17 06:16:38 2012 From: nick.friedrich at geolock.de (Nick Friedrich) Date: Fri, 17 Feb 2012 15:16:38 +0100 Subject: [mapserver-users] Re: Problem with Mapserver 6.0.1 and PHP Mapscript In-Reply-To: <4F3E5173.4030801@mapgears.com> References: <4F3D2E0A.5070500@geolock.de> <4F3D36C7.5080608@mapgears.com> <1329480173245-4479756.post@n6.nabble.com> <1329483504787-4479995.post@n6.nabble.com> <4F3E5173.4030801@mapgears.com> Message-ID: <4F3E6146.7030509@geolock.de> Mmh, ok. But in older Versions the output showed everything in the object. I assume that there has been no complete rewrite of Mapscript for Mapserver 6, so the appropriate methods must exist in older version. Maybe they have been dropped. I just thought, that it would be related to my problem, because older mapserver versions showed a different behavior. With regard to your statement it has nothing to do with my problem, so it doesn't matter. Am 17.02.2012 14:09, schrieb Alan Boudreault: > This is the only output you'll get from a var_dump: > > object(mapObj)#1 (0) { > } > > until the appropriate methods for this will be implemented. > > Alan > > On 12-02-17 07:58 AM, Nick Friedrich wrote: >> Hi, >> >> when using older mapserver versions var_dump returns not an empty >> mapObj. >> >> >> Nick >> >> -- >> View this message in context: >> http://osgeo-org.1560.n6.nabble.com/Problem-with-Mapserver-6-0-1-and-PHP-Mapscript-tp4476779p4479995.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 > > -- Nick Friedrich (Dipl.-Inf.) GEOLOCK GmbH Rothenseer Stra?e 24 39124 Magdeburg Tel.: (0391) 2561 - 252 Fax.: (0391) 2561 - 122 www.geolock.de nick.friedrich at geolock.de Amtsgericht Magdeburg HRB 113652 Gesch?ftsf?hrer: Dipl.-Ing. Wolfgang G?ppel Steuernummer: 102/111/00 627 From aboudreault at mapgears.com Fri Feb 17 06:29:03 2012 From: aboudreault at mapgears.com (Alan Boudreault) Date: Fri, 17 Feb 2012 09:29:03 -0500 Subject: [mapserver-users] Re: Problem with Mapserver 6.0.1 and PHP Mapscript In-Reply-To: <4F3E6146.7030509@geolock.de> References: <4F3D2E0A.5070500@geolock.de> <4F3D36C7.5080608@mapgears.com> <1329480173245-4479756.post@n6.nabble.com> <1329483504787-4479995.post@n6.nabble.com> <4F3E5173.4030801@mapgears.com> <4F3E6146.7030509@geolock.de> Message-ID: <4F3E642F.6080406@mapgears.com> The extension was totally written differently using old compatibility way. It was probably working differently in older php (some magic?) So the those function haven't been dropped. They just don't exist. Perhaps a day I will get time to write them! Glad to hear that's it's not related to your issue. Good luck. Alan On 12-02-17 09:16 AM, Nick Friedrich wrote: > Mmh, ok. But in older Versions the output showed everything in the > object. I assume that there has been no complete rewrite of Mapscript > for Mapserver 6, so the appropriate methods must exist in older version. > Maybe they have been dropped. > I just thought, that it would be related to my problem, because older > mapserver versions showed a different behavior. With regard to your > statement it has nothing to do with my problem, so it doesn't matter. > > > Am 17.02.2012 14:09, schrieb Alan Boudreault: >> This is the only output you'll get from a var_dump: >> >> object(mapObj)#1 (0) { >> } >> >> until the appropriate methods for this will be implemented. >> >> Alan >> >> On 12-02-17 07:58 AM, Nick Friedrich wrote: >>> Hi, >>> >>> when using older mapserver versions var_dump returns not an empty >>> mapObj. >>> >>> >>> Nick >>> >>> -- >>> View this message in context: >>> http://osgeo-org.1560.n6.nabble.com/Problem-with-Mapserver-6-0-1-and-PHP-Mapscript-tp4476779p4479995.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 >> >> > > -- Alan Boudreault http://www.mapgears.com/ From thomas.bonfort at gmail.com Fri Feb 17 07:55:01 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 17 Feb 2012 16:55:01 +0100 Subject: [mapserver-users] Mapcache Seed / libpng error? In-Reply-To: <99F4D44109DA3A448A9C811B14E04B151640A7E234@donkey.landcare.ad.landcareresearch.co.nz> References: <99F4D44109DA3A448A9C811B14E04B15163E43FEAF@donkey.landcare.ad.landcareresearch.co.nz> <99F4D44109DA3A448A9C811B14E04B151640A7E234@donkey.landcare.ad.landcareresearch.co.nz> Message-ID: Andrew, I was unable to reproduce the issue with your test case. Using the trunk mapserver version, I successfully seeded levels 6 and 7. Can you try with the trunk version on your system, there have been some changes in the cairo font rendering code that might fix the issue you encountered. regards, thomas On Thu, Feb 16, 2012 at 22:57, Andrew Cowie wrote: > Ticket created: > > http://trac.osgeo.org/mapserver/ticket/4192 > > > -----Original Message----- > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Wednesday, 15 February 2012 10:43 p.m. > To: Andrew Cowie > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Mapcache Seed / libpng error? > > Is the error always reproducible ? > From the logs it seems that the png data received by mapcache from the > wms server is corrupt. More investigation would be needed to determine > if the network or the wms server is at fault for this. > > regards, > > -- > thomas > > On Wed, Feb 15, 2012 at 04:45, Andrew Cowie > wrote: >> Hello List, >> >> >> >> We?ve been using mapcache_seed ( mapcache SVN checkout 13002 ) to build our >> caches mostly successfully so far, but recently have come up against an >> error which has only cropped up with a certain layer which includes our text >> & labels >> >> >> >> www-data at server$ ./mapcache_seed -c /opt/mapserver/mapcache/oe_mapcache.xml >> -t 2012-02-02_text_cache_nztm ?-g portalgridnztm1 -z 7,8 >> >> found old lockfile /tmp/_gc_lock9-175-1233-slope_cache_nztm.lck, deleting it >> >> found old lockfile /tmp/_gc_lock7-7-9-2012-02-02_text_cache_nztm.lck, >> deleting it >> >> found old lockfile /tmp/_gc_lock9-136-179-terr_auth_cache_nztm.lck, deleting >> it >> >> found old lockfile /tmp/_gc_lock9-138-86-wards_cache_nztm.lck, deleting it >> >> seeding tile 65 25 7libpng error: IDAT: CRC error >> >> failed to setjmp(png_jmpbuf(png_ptr)) >> >> failed to load image data from metatile >> >> failed to setjmp(png_jmpbuf(png_ptr)) >> >> failed to load image data from metatile >> >> seeding tile 130 50 8 >> >> www-data at server$ >> >> >> >> or... >> >> >> >> www-data at server$ ./mapcache_seed -c /opt/mapserver/mapcache/oe_mapcache.xml >> -t 2012-02-02_text_cache_nztm ?-g portalgridnztm1 -z 6,7 >> >> found old lockfile /tmp/_gc_lock9-137-51-terr_auth_cache_nztm.lck, deleting >> it >> >> found old lockfile /tmp/_gc_lock9-182-1201-slope_cache_nztm.lck, deleting it >> >> found old lockfile /tmp/_gc_lock9-138-197-wards_cache_nztm.lck, deleting it >> >> seeding tile 25 15 6libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng warning: Ignoring bad adaptive filter type >> >> libpng error: IDAT: CRC error >> >> failed to setjmp(png_jmpbuf(png_ptr)) >> >> failed to load image data from metatile >> >> seeding tile 50 35 7failed to setjmp(png_jmpbuf(png_ptr)) >> >> failed to load image data from metatile >> >> www-data at server$ >> >> >> >> >> >> The next step will be to checkout the latest SVN version. But we are >> currently mid-build with some other layers, so are waiting for them to >> finish before we do that. But thought ?we?d fire it out to the list to see >> if anyone has any ideas as to what might be causing this? >> >> >> >> >> >> Below is the mapcache config: >> >> >> >> ? ? >> >> ? ? ? >> >> ? ? ? ? ?http://server/cgi-bin/mapserv601? >> >> ? ? ? >> >> ? ? ? >> >> ? ? ? ? ? >> >> ? ? ? ? ? ? image/png >> >> ? ? ? ? ? ? text >> >> ? ? ? ? ? ? /opt/mapserver/mapfiles/m6scenz_topo_new.map >> >> ? ? ? ? ? ? true >> >> ? ? ? ? ? >> >> ? ? ? >> >> ? ? >> >> >> >> ? ? >> >> ? ? ? src_text_update >> >> ? ? ? disk >> >> ? ? ? PNG >> >> ? ? ? portalgridnztm1 >> >> ? ? ? 5 5 >> >> ? ? ? 10 >> >> ? ? >> >> >> >> >> >> "labelcache_map_edge_buffer" ? ? ? ? ? ? ? ? ? ?"-10" ? ?is set in mapserver >> WEB METADATA >> >> >> >> >> >> Cheers >> >> >> >> >> >> Andrew >> >> >> >> >> >> >> >> >> >> >> ________________________________ >> Please consider the environment before printing this email >> Warning: This electronic message together with any attachments is >> confidential. If you receive it in error: (i) you must not read, use, >> disclose, copy or retain it; (ii) please contact the sender immediately by >> reply email and then delete the emails. >> The views expressed in this email may not be those of Landcare Research New >> Zealand Limited. http://www.landcareresearch.co.nz >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > Please consider the environment before printing this email > Warning: ?This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. > The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From qc_mad at hotmail.com Fri Feb 17 08:06:16 2012 From: qc_mad at hotmail.com (maddqc) Date: Fri, 17 Feb 2012 08:06:16 -0800 (PST) Subject: [mapserver-users] Problem with MrSID aerial imagery Message-ID: <1329494776379-4480620.post@n6.nabble.com> Hi all, I'm facing a new problem... I need to show few aerials imagery in my project that are in MrSID format. I've compiled my GDAL 1.9.0 with the MrSID SDK and everything went well. When I'm trying to show my imagery(MrSID format) with MapServer, I receive a Pink Screen Of Death. But, when I convert the MrSID file in a crappy GeoTIFF with GeoViewer, my imagery show up. Few more info: - MapServer 6 - GeoMoose 2.4 - each MrSID file size ~1.5 gig - gdal 1.9.0 + MrSID SDK 8.0 unified - ubuntu 11.04 natty gdalinfo --formats | grep MrSID MrSID (rov): Multi-resolution Seamless Image Database (MrSID) JP2MrSID (rov): MrSID JPEG2000 What can I do to make it work so I can use my MrSID imagery? here is my mapfile: MAP NAME "ortho" SIZE 800 650 STATUS ON CONFIG "MS_ERRORFILE" stderr DEBUG 5 UNITS meters INCLUDE "../../mapping_globals.map" WEB METADATA 'ows_title' 'M.R.C. Val St-Fran?ois' 'ows_srs' 'EPSG:26915 EPSG:900913 EPSG:32188 EPSG:4326' END END LAYER NAME '31H09-SE' #DATA '../420_MRC_Val_St_Francois/Orthophotos/MOS_07_31H09-SE_F08.sid' DATA '../420_MRC_Val_St_Francois/Orthophotos/MOS_07_31H09-SE_F08.tif' STATUS ON TYPE RASTER PROCESSING "BANDS=1,2,3" END #layer END Thank's in advance to all of you. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Problem-with-MrSID-aerial-imagery-tp4480620p4480620.html Sent from the Mapserver - User mailing list archive at Nabble.com. From punk.kish at gmail.com Fri Feb 17 12:25:40 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Fri, 17 Feb 2012 14:25:40 -0600 Subject: [mapserver-users] dynamically changing data path and calculating scales Message-ID: <4B97B695-EA42-4E11-9621-1696819628BD@gmail.com> I have a layer like so that works very well (snipped for brevity) LAYER TYPE RASTER DATA "path/to/data/my.img" PROCESSING "SCALE=-24.403,-1.483" CLASS STYLE COLORRANGE 46 154 88 251 255 128 DATARANGE -24 0 END END END Now, I want to dynamically change the "path/to/data" via a web query. Basically, I have img files for different months, and I want the user to be able to choose a specific month and have MapServer deliver that data. So, for January, I want "path/to/1/my.img" and for November it would be "path/to/11/my.img". Additionally, that "SCALE=-24.403,-1.483" above... well, I used one of them gdal utils to determine that, but I would like to do that automagically. Needless to say, "SCALE=AUTO" does not work. Suggestions? -- Puneet Kishor From Michael.Smith at usace.army.mil Fri Feb 17 12:34:19 2012 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Fri, 17 Feb 2012 20:34:19 +0000 Subject: [mapserver-users] dynamically changing data path and calculating scales In-Reply-To: <4B97B695-EA42-4E11-9621-1696819628BD@gmail.com> Message-ID: Punnet You could use runtime substitution for this. DATA "path/to/%month%/my.img" And then send &month=11 in the URL. You will also need a VALIDATION block for the substitution string. VALIDATION "month" "/^(0?[1-9]|1[0-2])$/" END The VALIDATION block would be at the LAYER level. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 2/17/12 3:25 PM, "Puneet Kishor" wrote: >I have a layer like so that works very well (snipped for brevity) > > LAYER > TYPE RASTER > DATA "path/to/data/my.img" > PROCESSING "SCALE=-24.403,-1.483" > CLASS > STYLE > COLORRANGE 46 154 88 251 255 128 > DATARANGE -24 0 > END > END > END > >Now, I want to dynamically change the "path/to/data" via a web query. >Basically, I have img files for different months, and I want the user to >be able to choose a specific month and have MapServer deliver that data. >So, for January, I want "path/to/1/my.img" and for November it would be >"path/to/11/my.img". > >Additionally, that "SCALE=-24.403,-1.483" above... well, I used one of >them gdal utils to determine that, but I would like to do that >automagically. Needless to say, "SCALE=AUTO" does not work. > >Suggestions? > > > >-- >Puneet Kishor_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From punk.kish at gmail.com Fri Feb 17 12:42:27 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Fri, 17 Feb 2012 14:42:27 -0600 Subject: [mapserver-users] dynamically changing data path and calculating scales In-Reply-To: References: Message-ID: On Feb 17, 2012, at 2:34 PM, Smith, Michael ERDC-CRREL-NH wrote: > Punnet > > You could use runtime substitution for this. > > DATA "path/to/%month%/my.img" > > Beautiful. Many thanks. Now the next part about figuring out the SCALE automatically? > > > > > On 2/17/12 3:25 PM, "Puneet Kishor" wrote: > >> I have a layer like so that works very well (snipped for brevity) >> >> LAYER >> TYPE RASTER >> DATA "path/to/data/my.img" >> PROCESSING "SCALE=-24.403,-1.483" >> CLASS >> STYLE >> COLORRANGE 46 154 88 251 255 128 >> DATARANGE -24 0 >> END >> END >> END >> >> Now, I want to dynamically change the "path/to/data" via a web query. >> Basically, I have img files for different months, and I want the user to >> be able to choose a specific month and have MapServer deliver that data. >> So, for January, I want "path/to/1/my.img" and for November it would be >> "path/to/11/my.img". >> >> Additionally, that "SCALE=-24.403,-1.483" above... well, I used one of >> them gdal utils to determine that, but I would like to do that >> automagically. Needless to say, "SCALE=AUTO" does not work. >> >> Suggestions? >> >> >> >> -- >> Puneet Kishor_______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From cyminace at gmail.com Fri Feb 17 18:38:49 2012 From: cyminace at gmail.com (Cyber Admin) Date: Fri, 17 Feb 2012 19:38:49 -0700 Subject: [mapserver-users] Trouble Configuring OpenGL in 6.0.2 Message-ID: Hello all- I am new to MapServer. I have been tasked with getting opengl working in our environment and have been unable to do thus far. I am working with version 6.0.2. Here is the part of my map file that I'm working with. OUTPUTFORMAT NAME "oglTest" DRIVER OGL/PNG IMAGEMODE RGB MIMETYPE "image/png" EXTENSION "png" END Here is the output from running ./shp2img --all_debug 15 -m /var/www/htdocs/test2.map -o test2.png msDrawMap(): Image handling error. Unable to initialize image.
OglContext::init(): Renderer error. DISPLAY environment variable not set
When I try to open the map in a browser, I just get a blank page. The lines below show up in /var/log/apache2/error.log. [Fri Feb 17 19:12:34 2012] [error] [client ] PHP Warning: [MapServer Error]: loadOutputFormat(): OUTPUTFORMAT clause references driver OGL/PNG, but this driver isn't configured.\n in /var/www/htdocs/test2.html on line 3 [Fri Feb 17 19:12:34 2012] [error] [client ] PHP Warning: Failed to open map file ./test2.map in /var/www/htdocs/test2.html on line 3 [Fri Feb 17 19:12:34 2012] [error] [client ] PHP Fatal error: Call to a member function draw() on a non-object in /var/www/htdocs/test2.html on line 4 I have found some posts where people have had similar issues, but no solutions were mentioned. Any help would be greatly appreciated. Thanks you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sschantz at bfs.de Mon Feb 20 01:55:26 2012 From: sschantz at bfs.de (StefanII) Date: Mon, 20 Feb 2012 01:55:26 -0800 (PST) Subject: [mapserver-users] Re: FastCGI, MapServer and Apache on Linux In-Reply-To: <4C7E6F0C.5040306@gatewaygeomatics.com> References: <1283283889.4278.191.camel@onotta624248.agr.gc.ca> <4C7DE91A.7040001@gatewaygeomatics.com> <1283352193.4278.204.camel@onotta624248.agr.gc.ca> <4C7E6DE3.2070908@uva.nl> <4C7E6F0C.5040306@gatewaygeomatics.com> Message-ID: <1329731726894-4487179.post@n6.nabble.com> Hello, this is a quite an old thread, but it helped me a lot until now. As far as I understand, you prefer mod_fcgid than mod_fastcgi. My remaining questions are: 1. Do I have to compile against mod_fcgi, if I want to use mod_fcgid or can I use my mapserver, build against fastcgi? 2. Mike gives the following Apache configuration from the benmarking in 2010: FcgidInitialEnv LD_LIBRARY_PATH /usr/lib64:/usr/lib:/usr/local/lib:/opt/mapserverfull/lib:/oracle/instantclient_11_2:/opt/mapserver/lib FcgidMinProcessesPerClass 0 FcgidIdleScanInterval 1 FcgidProcessLifeTime 10 FcgidIOTimeout 100 FcgidMinProcessesPerClass 0 There are serveral paths to libraries. Which libraries are relevant? Thanks for helping and sorry for my english ;-) Best regards, Stefan -- View this message in context: http://osgeo-org.1560.n6.nabble.com/FastCGI-MapServer-and-Apache-on-Linux-tp4231587p4487179.html Sent from the Mapserver - User mailing list archive at Nabble.com. From relicary at gmail.com Mon Feb 20 03:49:53 2012 From: relicary at gmail.com (=?ISO-8859-1?Q?Juan_Jes=FAs_Cremades_Monserrat?=) Date: Mon, 20 Feb 2012 12:49:53 +0100 Subject: [mapserver-users] Layers flattened Message-ID: Hi, I have a map with several layers. But when the result is rendered in the browser with OpenLayers, the maps are flattened and all request are done with the SRS parameter which value EPSG:4326 instead EPSG:23030. Some help? Thanks! My MAPFILE is this: MAP ... PROJECTION "init=epsg:23030" END WEB METADATA "wms_encoding" "UTF-8" "wms_title" "Mapserver WMS" "wms_abstract" "" "wms_srs" "EPSG:23030 EPSG:4326" "wms_onlineresource" " http://localhost:80/cgi-bin/mapserv.exe?map=MYMAP" "ows_enable_request" "*" "wms_feature_info_mime_type" "text/html" END END LAYER NAME "file.shp" STATUS ON TYPE POLYGON DUMP true TEMPLATE "templates/tempalte.html" DATA "E:\file.shp" MAXSCALE -1.0 MINSCALE -1.0 TRANSPARENCY 100 SIZEUNITS meters CLASS STYLE COLOR 153 153 255 OUTLINECOLOR 51 51 255 WIDTH 1 END NAME "default" END METADATA "wms_title" "file.shp" "wms_extent" "626679.4375 4191039.75 797868.9375 4519396.0" "gml_include_items" "MONO" "ows_enable_request" "*" WMS_SRS "EPSG:23030" END END # Layer ... All the layers are similar, and the JS wich showsd the result is like this: var options = { controls : [new OpenLayers.Control()], minExtent : new OpenLayers.Bounds(-1, -1, 1, 1), maxResolution : 0.35, maxZoomLevel : 10, maxExtent : new OpenLayers.Bounds(-1.53544921875, 37.81, 0.0000, 40.84), zoom: 4, tileSize : new OpenLayers.Size(400, 550) }; map = new OpenLayers.Map('olmap', options); ... var ProvinciasWms = new OpenLayers.Layer.WMS( "Layer_1", "/mapserver?", {layers : 'file.shp', format : 'image/png', transparent : true, map : 'MYMAP'}, {isBaseLayer : false, singleTile:true, ratio: 1}); -------------- next part -------------- An HTML attachment was scrubbed... URL: From cheryl.bckl at gmail.com Mon Feb 20 05:00:19 2012 From: cheryl.bckl at gmail.com (cheryl buckley) Date: Mon, 20 Feb 2012 14:00:19 +0100 Subject: [mapserver-users] Mapserver + PostGIS ==> Blank Screen Message-ID: Hi fellows, thank you for your assistance with the Mapserver issue I've had. I compiled the mapserver 6.1-dev from the SVN respository and it worked! :) Kind regards Cheryl ####### Hi, I'm trying to get Mapserver connected with PostGIS. PostGIS is holding a shape2pgsql contourline import in the table "atest" while a test has the following columns (shape2pgsql default): -------------------------------------- | Actions | gid | id | height | geom | -------------------------------------- Quantum GIS picks the conection up perfectly to atest but with Mapserver I just get a blank screen - or the color of IMAGECOLOR [. . .] definition in *.map definitions. Somehow it seems like I got the connection between Mapserver and PostGIS running - at least the debug.log doesn't complain. But still I'm not seeing any of my contour lines as I'm used to by Quantum GIS ;( Could someone give me a hint of what I'm missing out or where my mistake is? I got the feeling that it is either has something to do with the DATA property or the projection properties ? The Link with which I call the mapserv binary is: http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map&mode=map But then it complains: msDrawMap(): Image handling error. Unable to initialize image. msPrepareImage(): General error message. Image dimensions not specified. msCalculateScale(): General error message. Invalid image width or height. So I changed it to the following: http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map&mode=map&mapsize=600+800 which results in fortunately no errors but therefore in a blank screen with a clean debug.log ... Even this one wont change anything: http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map&mode=map&mapsize=600+800&layer=Contour I attached some screenshots for clearity . . . . . . my test-2.map definition is attached below: P.S.: TEMPLATE "./Maps/test.map" does exist and is read and writeable to the user which runs the webserver (Apache => User: www) CONFIG "PROJ_LIB" "/usr/local/share/proj/" should also be valid: FreeBSD [~]# ls /usr/local/share/proj FL WO hawaii null stlrnc GL27 alaska nad.lst nzgd2kgrid0005.gsb stpaul IGNF conus nad27 other.extra world MD epsg nad83 proj_def.dat TN esri ntf_r93.gsb prvi WI esri.extra ntv1_can.dat stgeorge # =================================== test-2.map =================================== # MAP CONFIG "PROJ_LIB" "/usr/local/share/proj/" CONFIG "MS_ERRORFILE" "./debug.log" DEBUG 5 IMAGECOLOR 100 100 100 NAME "Contour" EXTENT -90 -180 90 180 STATUS ON PROJECTION "init=epsg:4326" END WEB METADATA WMS_NAME "Contour" WMS_TITLE "SRTM - ContourLines" WMS_ABSTRACT "My First Web Map Server" WMS_SERVER_VERSION "1.1.1" WMS_SRS "EPSG:4326" WMS_ONLINERESOURCE "http://192.168.10.15/cgi-bin/mapserv?map=./Maps/test.map" WMS_ATTRIBUTION_TITLE "Some Attribute Title" WMS_ATTRIBUTION_ONLINERESOURCE "http://www.myHomepage.com/" WMS_KEYWORDLIST "DEM,SRTM,Contourlines,Contour,Lines,Digital,Area,Model" WMS_FEATURE_INFO_MIME_TYPE "text/html" WMS_CONTACTELECTRONICMAILADDRESS "User at Domain.tld" WMS_CONTACTPERSON "Some Reference Person" WMS_CONTACTVOICETELEPHONE "+49-phoneNumber" WMS_CONTACTORGANIZATION "Private" WMS_ENCODING "utf-8" END END LAYER # query layer from PostgreSQL table NAME "Contour" EXTENT 143 -20 145 -19 TYPE LINE STATUS ON DEBUG ON TEMPLATE "./Maps/test.map" DUMP true METADATA WMS_NAME "Contour" WMS_TITLE "Contour Lines - 90m" WMS_ABSTRACT "Contour Lines - 90m" WMS_SRS "EPSG:4326" GML_INCLUDE_ITEMS "all" END CONNECTIONTYPE POSTGIS CONNECTION "host=192.168.10.15 port=5432 dbname=my_spatial_db user=admin password=******" DATA "geom FROM atest using unique gid using srid=4326" CLASS STYLE COLOR 000 000 000 OUTLINECOLOR 199 199 199 END END END END # ================================================================================== # # =================================== debug.log =================================== # FreeBSD [/usr/local/www/cgi-bin/Maps]# cat ./debug.log [Sat Feb 11 19:02:01 2012].3032 CGI Request 1 on process 2663 [Sat Feb 11 19:02:01 2012].10325 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Sat Feb 11 19:02:01 2012].10365 msDrawMap(): WMS/WFS set-up and query, 0.000s [Sat Feb 11 19:02:01 2012].10388 msDrawMap(): Drawing Label Cache, 0.000s [Sat Feb 11 19:02:01 2012].10398 msDrawMap() total time: 0.007s [Sat Feb 11 19:02:01 2012].76893 msSaveImage(stdout) total time: 0.066s [Sat Feb 11 19:02:01 2012].77721 mapserv request processing time (loadmap not incl.): 0.075s [Sat Feb 11 19:02:01 2012].77749 msFreeMap(): freeing map at 0x29879800. [Sat Feb 11 19:02:01 2012].77839 msPostGISLayerIsOpen called. # ================================================================================== # ############# Cherly, One issue could be that you've asked Mapserver to render the entire world: EXTENT -90 -180 90 180 into a small image: mapsize=600+800 Adjust the extents of the output image to be the extent of you contour data. I see that you've given that in your LAYER definition EXTENT 143 -20 145 -19 so try that for the map extent (but I think it would be valid only if the contours were stored in a Geographic system and not a Projected system). What SRS are you storing your data in? The same as your display (EPSG:4326)? Best Regards, Brent Fraser ################ Hi Brent, Thanks for your reply. The SRS my data is stored in WGS84. Unfortunately, I am not getting configuration file right. I adjusted the map EXTENT to something smaller, Map Extent 16 -28 25 -16 The layer extent I also adjusted to the output image of the contour data, Layer Extent 17.002 -20.965 18.007 -20.002 I played around with the figures a little but I get this error message at all times, "msDrawMap(): Image handling error. Failed to draw layer named 'Contour'. msPostGISLayerWhichShapes(): Query error. Error (ERROR: function geomfromtext(unknown, integer) does not exist LINE 1: ...R'),'hex') as geom,"gid" from atest where geom && GeomFromTe... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. ) executing query: select encode(ST_AsBinary(ST_Force_2D("geom"),'NDR'),'hex') as geom,"gid" from atest where geom && GeomFromText('POLYGON((15.8348164627364 -28,15.8348164627364 -16,25.1651835372636 -16,25.1651835372636 -28,15.8348164627364 -28))',4326)" Since this is my first time configurating a mapfile, I am unsure of what is essential and what not, thus, I copied and pasted the script and adjusted it to my CONNECTION details. I am not too sure whether it is vital to have both a "map extent" and a "layer extend"? Do you perhaps have any hints in this regard? Best Regards Cheryl ############### Yikes! That looks like a compatibility problem. PostGIS has been changing their function names (e.g. from "GeomFromText" to "ST_GeomFromText"), and I don't think Mapserver has kept up. Can you use an older version of PostGIS (<2.0)? http://postgis.refractions.net/pipermail/postgis-devel/2012-January/017272.html ############ Opened a ticket for this problem: http://trac.osgeo.org/mapserver/ticket/4186 Add yourselves to the CC list if you want to track it. -Steve W ########## -------------- next part -------------- An HTML attachment was scrubbed... URL: From beyhan at deprem.gov.tr Mon Feb 20 05:52:05 2012 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Mon, 20 Feb 2012 15:52:05 +0200 Subject: [mapserver-users] draw line readinf from mysql Message-ID: <1329745925.9395.5.camel@localhost> Dear friend, I'm trying to draw a line using MySql database the table in database as follows, id lat1 lon1 lat2 lon2 20100308023229 40.1113 38.7901 40.0311 38.7428 actually using ogr connection I can draw point using ogr and mysql, but How can I draw line using such database table, please help me and give the idea... Thanks Murat -- Murat BEYHAN Geophysical Engineer, M.Sc. Prime Ministry Disaster and Emergency Management Presidency Earthquake Department Address: Eskisehir Yolu 12. Km. Lodumlu/ANKARA Tel: 312 2872680-1556 email:beyhan at deprem.gov.tr -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From j.l.h.hartmann at uva.nl Mon Feb 20 06:27:24 2012 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Mon, 20 Feb 2012 15:27:24 +0100 Subject: [mapserver-users] Constraining label position In-Reply-To: <4F3A970D.6040403@swoodbridge.com> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6306972D@suutari.haapa.mmm.fi> <4F3A93C8.3000005@uva.nl> <4F3A970D.6040403@swoodbridge.com> Message-ID: <4F42584C.2050302@uva.nl> On 02/14/2012 06:17 PM, Stephen Woodbridge wrote: > google: mapserver geomtransform > > this will let you fix the label point to the centroid of the object or > some other positions. > > The issue is that the label point is generally calculated based on the > geometry of the object as clipped to the view port. So the geometry > changes based on the view clipping and this causes the label point to > also change. the geomtransform works on the original data and so the > label point becomes fixed. > > No I can't get this to work, perhaps I don't understand the syntax of geomtransform. Can you give me an example of fixing a label to the center point of a rectangle, without shifting it when the rectangle crosses the viewport? My mapfile looks: connectiontype postgis connection "" data the_rect from bnds labelitem rect_id style color 0 0 0 end label color 0 0 255 end I put a few geotransforms within the label and within the style objects, but the label always shifts near the margin of the viewport. Thanks, Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Feb 20 06:30:19 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 20 Feb 2012 15:30:19 +0100 Subject: [mapserver-users] Constraining label position In-Reply-To: <4F42584C.2050302@uva.nl> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6306972D@suutari.haapa.mmm.fi> <4F3A93C8.3000005@uva.nl> <4F3A970D.6040403@swoodbridge.com> <4F42584C.2050302@uva.nl> Message-ID: PROCESSING "LABEL_NO_CLIP=yes" -- thomas On Mon, Feb 20, 2012 at 15:27, Jan Hartmann wrote: > > > On 02/14/2012 06:17 PM, Stephen Woodbridge wrote: > > google: mapserver geomtransform > > this will let you fix the label point to the centroid of the object or some > other positions. > > The issue is that the label point is generally calculated based on the > geometry of the object as clipped to the view port. So the geometry changes > based on the view clipping and this causes the label point to also change. > the geomtransform works on the original data and so the label point becomes > fixed. > > > No I can't get this to work, perhaps I don't understand the syntax of > geomtransform. Can you give me an example of fixing a label to the center > point of a rectangle, without shifting it when the rectangle crosses the > viewport? My mapfile looks: > > connectiontype postgis > connection "" > data the_rect from bnds > labelitem rect_id > style > ? color 0 0 0 > end > label > ? color 0 0 255 > end > > I put a few geotransforms within the label and within the style objects, but > the label always shifts near the margin of the viewport. > > Thanks, > > Jan > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From j.l.h.hartmann at uva.nl Mon Feb 20 06:41:28 2012 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Mon, 20 Feb 2012 15:41:28 +0100 Subject: [mapserver-users] Constraining label position In-Reply-To: References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6306972D@suutari.haapa.mmm.fi> <4F3A93C8.3000005@uva.nl> <4F3A970D.6040403@swoodbridge.com> <4F42584C.2050302@uva.nl> Message-ID: <4F425B98.9040305@uva.nl> That's it, thanks Thomas. It's a problem with the development version of OpenLayers, where during a map refresh the old version remains visible for some time next to the updated one, in order to get a smooth transition. I find intelligent labelpositioning more important than smooth transitions, so I'll suggest to them an option to disable the smoothing effect. Jan On 02/20/2012 03:30 PM, thomas bonfort wrote: > PROCESSING "LABEL_NO_CLIP=yes" > > -- > thomas > > On Mon, Feb 20, 2012 at 15:27, Jan Hartmann wrote: >> >> On 02/14/2012 06:17 PM, Stephen Woodbridge wrote: >> >> google: mapserver geomtransform >> >> this will let you fix the label point to the centroid of the object or some >> other positions. >> >> The issue is that the label point is generally calculated based on the >> geometry of the object as clipped to the view port. So the geometry changes >> based on the view clipping and this causes the label point to also change. >> the geomtransform works on the original data and so the label point becomes >> fixed. >> >> >> No I can't get this to work, perhaps I don't understand the syntax of >> geomtransform. Can you give me an example of fixing a label to the center >> point of a rectangle, without shifting it when the rectangle crosses the >> viewport? My mapfile looks: >> >> connectiontype postgis >> connection "" >> data the_rect from bnds >> labelitem rect_id >> style >> color 0 0 0 >> end >> label >> color 0 0 255 >> end >> >> I put a few geotransforms within the label and within the style objects, but >> the label always shifts near the margin of the viewport. >> >> Thanks, >> >> Jan >> >> _______________________________________________ >> 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 Robert.Sanson at asurequality.com Mon Feb 20 12:15:48 2012 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Tue, 21 Feb 2012 09:15:48 +1300 Subject: [mapserver-users] draw line readinf from mysql In-Reply-To: <1329745925.9395.5.camel@localhost> References: <1329745925.9395.5.camel@localhost> Message-ID: <4F4360C402000037000121EA@gate1.asurequality.com> Hi Murat Is it possible for you to create a view from the columns that presents the data as a WKT line feature: create view lineview as select id, "LINESTRING(" + lon1 + " " + lat1 + "," + lon2 + " " + lat2 + ")" as geom from mytable Then set up your OGR ovf file representing this view: ODBC:user/passwd at DSN lineview wkbLine EPSG:2193 id Best wishes, Robert >>> Murat Beyhan 21/02/2012 2:52 a.m. >>> Dear friend, I'm trying to draw a line using MySql database the table in database as follows, id lat1 lon1 lat2 lon2 20100308023229 40.1113 38.7901 40.0311 38.7428 actually using ogr connection I can draw point using ogr and mysql, but How can I draw line using such database table, please help me and give the idea... Thanks Murat -- Murat BEYHAN Geophysical Engineer, M.Sc. Prime Ministry Disaster and Emergency Management Presidency Earthquake Department Address: Eskisehir Yolu 12. Km. Lodumlu/ANKARA Tel: 312 2872680-1556 email:beyhan at deprem.gov.tr -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com From punk.kish at gmail.com Mon Feb 20 14:44:51 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Mon, 20 Feb 2012 16:44:51 -0600 Subject: [mapserver-users] from kml styles to mapserver layer classification Message-ID: I have a kml with a bunch of styles to color polygons. Is there a quick/easy way to extract them and convert them to MapServer layer classification rules? -- Puneet Kishor From punk.kish at gmail.com Mon Feb 20 19:05:22 2012 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Mon, 20 Feb 2012 21:05:22 -0600 Subject: [mapserver-users] Re: from kml styles to mapserver layer classification In-Reply-To: References: Message-ID: On Feb 20, 2012, at 4:44 PM, Puneet Kishor wrote: > I have a kml with a bunch of styles to color polygons. Is there a quick/easy way to extract them and convert them to MapServer layer classification rules? > the above actually turned out to be a lot easier than I thought... about 4 lines of Perl. Now, I have a table with geometry, and colors for each feature. CREATE TABLE t (attr, hex_color, the_geom); How can I color the polys in the layer with the hex_color values? Looking at the map file docs, I came up with something like so LAYER NAME "foo" DATA "the_geom FROM (SELECT gid, rgb(hex_color) AS rgb_color, the_geom FROM t) tmp USING UNIQUE gid USING srid=4326" STATUS ON TYPE POLYGON CLASS STYLE COLOR [rgb_color] OUTLINECOLOR 68 68 68 END END END END where rgb() converts "hex_color" to a string of RGB triplets. So, "000000" becomes "0 0 0". Is the above correct? For now, it doesn't seem to be working for me. Many tia, -- Puneet Kishor From punk.kish at gmail.com Mon Feb 20 19:23:55 2012 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Mon, 20 Feb 2012 21:23:55 -0600 Subject: [mapserver-users] Re: from kml styles to mapserver layer classification In-Reply-To: References: Message-ID: <7D6EBD1A-0D43-49E3-9B88-32B00EC3591D@gmail.com> Hi Richard, On Feb 20, 2012, at 9:21 PM, Richard Greenwood wrote: > On Mon, Feb 20, 2012 at 8:05 PM, Mr. Puneet Kishor wrote: > >> How can I color the polys in the layer with the hex_color values? > > COLOR "#ff0000" So, I can use the hex values directly. Cool. But, will the following be sufficient in the map file? LAYER NAME "foo" DATA "the_geom FROM (SELECT gid, hex_color, the_geom FROM t) tmp USING UNIQUE gid USING srid=4326" STATUS ON TYPE POLYGON CLASS STYLE COLOR [hex_color] END END END END -- Puneet Kishor From Michael.Smith at usace.army.mil Mon Feb 20 19:27:52 2012 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Tue, 21 Feb 2012 03:27:52 +0000 Subject: [mapserver-users] Re: from kml styles to mapserver layer classification In-Reply-To: <7D6EBD1A-0D43-49E3-9B88-32B00EC3591D@gmail.com> Message-ID: Puneet, A very recent version of gdal, last couple of weeks, can convert KML styles into OGR style strings. MapServer can use those OGR Style strings with the AUTO style option. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center On 2/20/12 10:23 PM, "Mr. Puneet Kishor" wrote: >Hi Richard, > >On Feb 20, 2012, at 9:21 PM, Richard Greenwood wrote: > >> On Mon, Feb 20, 2012 at 8:05 PM, Mr. Puneet Kishor >> wrote: >> >>> How can I color the polys in the layer with the hex_color values? >> >> COLOR "#ff0000" > > > >So, I can use the hex values directly. Cool. But, will the following be >sufficient in the map file? > > LAYER > NAME "foo" > DATA "the_geom FROM (SELECT gid, hex_color, the_geom FROM t) tmp >USING UNIQUE gid USING srid=4326" > STATUS ON > TYPE POLYGON > CLASS > STYLE > COLOR [hex_color] > END > END > END > END > > >-- >Puneet Kishor_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users From punk.kish at gmail.com Mon Feb 20 20:06:17 2012 From: punk.kish at gmail.com (Mr. Puneet Kishor) Date: Mon, 20 Feb 2012 22:06:17 -0600 Subject: [mapserver-users] Re: from kml styles to mapserver layer classification In-Reply-To: References: Message-ID: <157D9A08-D222-41C1-8C76-813C0DB3D734@gmail.com> Mike (and Richard), Thanks for the advice, but I didn't have to use gdal. As I wrote in another email, 5 or so lines of Perl code extracted the hex color values and inserted them in the Postgres table. From there, it was just a matter of knowing the correct map file syntax. Richard's suggestion of prefixing the # sign was spot on, which I added right in the Pg column. Then, the CLASS STYLE shown below worked really well. Many thanks all. On Feb 20, 2012, at 9:27 PM, Smith, Michael ERDC-CRREL-NH wrote: > Puneet, > > A very recent version of gdal, last couple of weeks, can convert KML > styles into OGR style strings. MapServer can use those OGR Style strings > with the AUTO style option. > > Mike > > -- > Michael Smith > > US Army Corps > Remote Sensing GIS/Center > > > > On 2/20/12 10:23 PM, "Mr. Puneet Kishor" wrote: > >> Hi Richard, >> >> On Feb 20, 2012, at 9:21 PM, Richard Greenwood wrote: >> >>> On Mon, Feb 20, 2012 at 8:05 PM, Mr. Puneet Kishor >>> wrote: >>> >>>> How can I color the polys in the layer with the hex_color values? >>> >>> COLOR "#ff0000" >> >> >> >> So, I can use the hex values directly. Cool. But, will the following be >> sufficient in the map file? >> >> LAYER >> NAME "foo" >> DATA "the_geom FROM (SELECT gid, hex_color, the_geom FROM t) tmp >> USING UNIQUE gid USING srid=4326" >> STATUS ON >> TYPE POLYGON >> CLASS >> STYLE >> COLOR [hex_color] >> END >> END >> END >> END >> From beyhan at deprem.gov.tr Tue Feb 21 00:18:40 2012 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Tue, 21 Feb 2012 10:18:40 +0200 Subject: [mapserver-users] draw line readinf from mysql In-Reply-To: <4F4360C402000037000121EA@gate1.asurequality.com> References: <1329745925.9395.5.camel@localhost> <4F4360C402000037000121EA@gate1.asurequality.com> Message-ID: <1329812320.10760.8.camel@localhost> Dear Robert, Thanks for your reply, Actually I have tried your suggestion but I could not succeed. as follows in .map file directly and in MySQL database I created a lineview view as follows create view lineview as select eq_id, "LINESTRING(" + lon1 + " " + lat1 + "," + lon2 + " " + lat2 + ")" as geom from sfault in map file I changed Geometrytype from wkbline to wkblinestring. LAYER NAME sfault1 connectiontype ogr CONNECTION ' MYSQL:dynamic,user=root,password=mysqlpasswd,host=localhost,port=3306,tables=lineview lineview wkbLineString WGS84 eq_id ' # ODBC:user/passwd at DSN DATA sfault1 STATUS on TYPE line CLASS name "Source Fault" SYMBOL "cline" SIZE 3 COLOR 0 0 255 END END There is an another issue I have to make a query in layer because I select only one line from database so I have try to add SQL statement. I 'm not good at OGR GDAL so I need some advice and help. Thank you for your interest On Tue, 2012-02-21 at 09:15 +1300, Robert Sanson wrote: > Hi Murat > > Is it possible for you to create a view from the columns that presents the data as a WKT line feature: > > create view lineview as select id, "LINESTRING(" + lon1 + " " + lat1 + "," + lon2 + " " + lat2 + ")" as geom from mytable > > Then set up your OGR ovf file representing this view: > > > > ODBC:user/passwd at DSN > lineview > wkbLine > EPSG:2193 > > id > > > > Best wishes, > > Robert > > >>> Murat Beyhan 21/02/2012 2:52 a.m. >>> > Dear friend, > > I'm trying to draw a line using MySql database > the table in database as follows, > > id lat1 lon1 lat2 lon2 > 20100308023229 40.1113 38.7901 40.0311 38.7428 > > actually using ogr connection I can draw point using ogr and mysql, but > How can I draw line using such database table, please help me and give > the idea... > > Thanks > > Murat > -- > Murat BEYHAN > Geophysical Engineer, M.Sc. > Prime Ministry > Disaster and Emergency Management Presidency > Earthquake Department > Address: Eskisehir Yolu 12. Km. > Lodumlu/ANKARA > Tel: 312 2872680-1556 > email:beyhan at deprem.gov.tr > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. > > This message has been scanned for Malware and Viruses by Websense Hosted Security. > www.websense.com > Murat BEYHAN Jeofizik Y.M?h. T.C. Ba?bakanl?k Afet ve Acil Durum Y?netimi Ba?kanl??? Deprem Dairesi Ba?kanl??? Eski?ehir Yolu 12. Km. Lodumlu/ANKARA Tel: 312 2872680-1556 email:beyhan at deprem.gov.tr -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From jorgelopez.physics at gmail.com Tue Feb 21 04:11:07 2012 From: jorgelopez.physics at gmail.com (Jorge Lopez) Date: Tue, 21 Feb 2012 13:11:07 +0100 Subject: [mapserver-users] WCS server not Message-ID: Hello; I am newbie to Mapserver, so maybe this is a naive question but I am doing my best to find a solution to serve raster data by using Mapserver. I have MapServer 5.6.5, I have prepared my map server with WFS and WMS and I would like to serve GEOTIFF images with WCS 1.0.0 protocol. I prepared a map file, with two layers to be served and I made a capabilities of the server: http://domainserver/cgi-bin/mapserv?SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCapabilities The problem is that all metadata is full but there is no content for coverages ("identifiers" in v.1.1.0), that is, the content between ContentMetada labels is empty, So I don't know what is happen, I made a probe like using shp2img to generate a image png from mapfile and it is done My Mapfile (only one layer) looks like in the following way: MAP NAME "xxxx Map Server" SIZE 100 100 # NECESARIO PARA LA UTILIDAD shp2img UNITS DD EXTENT -90 -90 90 90 DEBUG 5 CONFIG "CPL_DEBUG" "ON" CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" #a este fichero van mensajes de error!! (equivalent to set SetEnv MS_ERRORFILE "/tmp/mapserver.log" in /etc/apache2/apache2.conf) PROJECTION "init=epsg:4326" END # end projection # Background color for the map canvas -- change as desired IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE jpeg # Usamos el driver GDAL para crear el formato R?ster en modo IMAGEN RGB OUTPUTFORMAT NAME GEOTIFF_RGB DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE RGB EXTENSION 'tif' END #end outputformat # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END #end label END #end legend # Web interface definition. Only the template parameter is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should write its output. IMAGEPATH '/tmp/' # Set IMAGEURL to the url that points to IMAGEPATH as defined in your web server configuration IMAGEURL '/tmp/' # WCS server settings METADATA 'wms_title' 'xxxx Map Server' 'wms_enable_request' '*' 'ows_onlineresource' 'http://domainserver/cgi-bin/mapserv?' #'ows_srs' 'CRS:84 EPSG:4326 urn:x-ogc:def:crs:EPSG:4326 urn:x-ogc:def:crs:EPSG:3035 EPSG:3035 EPSG:4258' 'ows title' 'Intamap WCS' 'ows_srs' 'CRS:84 EPSG:4326 urn:x-ogc:def:crs:EPSG:4326' 'ows_abstract' 'Comentarios Blah Blah Blah' #'ows_srs' 'EPSG:3035 urn:x-ogc:def:crs:EPSG:3035' 'wfs_title' 'xxxx WFS Server' 'wfs_onlineresource' 'http://domainserver/cgi-bin/wfs?' 'wfs_srs' 'EPSG:4326' ## Recommended 'wfs_abstract' 'Web Feature Service for the XXXX central geonode.' ## Recommended 'wfs_enable_request' '*' 'wms_abstract' 'Web Map Service for the XXXX central geonode' ###### WCS ################ 'wcs_label' 'XXXX WCS Server' ### required for WCS 'wcs_title' 'XXX Web Coverage Service Server' 'wcs_description' 'Web Coverage Service for the XXXX central geonode to serve coverages' 'wcs_onlineresource' 'http://domainserver/cgi-bin/wcs?' 'wcs_service_onlineresource' 'http://domainserver/cgi-bin/wcs?' 'wcs_fees' 'none' 'wcs_srs' 'EPSG:4326' ## Recommended # 'wcs_abstract' 'Web Coverage Service for the XXXXXX central geonode.' ## Recommended 'wcs_accessconstraints' 'none' 'wcs_keywordlist' 'WCS, TEXT, Coverage' 'wcs_metadatalink_format' "text/plain" #tipo MIME para formato de ficheros 'wcs_metadatalink_href' "http://domainserver/catalog" # URL al metadata 'wcs_metadatalink_type' "TC211" # standard que cumple el metadata "wcs_address" "124 Gilmour Street" "wcs_city" "Ottawa" "wcs_stateorprovince" "ON" "wcs_postcode" "90210" "wcs_country" "Canada" "wcs_contactelectronicmailaddress" "blah at blah" "wcs_contactperson" "me" "wcs_contactorganization" "unemployed" "wcs_contactposition" "manager" "wcs_contactvoicetelephone" "613-555-1234" "wcs_contactfacimiletelephone" "613-555-1235" # "wcs_service_onlineresource" "http://domainserver/cgi-bin/wcs?" 'wcs_enable_request' '*' END #end metadata #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation END #end web LAYER NAME 'GLOBCORINE_Color' TYPE RASTER STATUS ON METADATA 'wms_title' 'GLOBCORINE_2009' # 'ows_metadataurl_format' 'text/html' # 'ows_metadataurl_href' 'http://domainserver/catalog' # 'ows_metadataurl_type' 'TC211' 'wcs_label' 'GLOBCORINE 2009' 'wcs_formats' 'GEOTIFF' 'wcs_enable_request' '*' 'wcs_rangeset_name' 'Range 1' ### required to support DescribeCoverage request 'wcs_rangeset_label' 'Globcorine 2009 classes' ### required to support DescribeCoverage request END #end metadata DATA '/path/GLOBCORINE_Color.tif' # PROJECTION # 'proj=longlat' # 'ellps=WGS84' # 'datum=WGS84' # 'no_defs' # '' # END #end projection # DUMP TRUE END #end layer END #end map I have no xml capabilities file if I set DUMP TRUE in LAYER class, there is a internal server error according to Apache. I don`t know if there is a problem with GDAL library or not. I am just be confussed Any help would be very appreciate. Thank you in advance Jorge -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Tue Feb 21 08:23:20 2012 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Tue, 21 Feb 2012 17:23:20 +0100 Subject: [mapserver-users] Aligning labels within a polygon In-Reply-To: <4F425B98.9040305@uva.nl> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6306972D@suutari.haapa.mmm.fi> <4F3A93C8.3000005@uva.nl> <4F3A970D.6040403@swoodbridge.com> <4F42584C.2050302@uva.nl> <4F425B98.9040305@uva.nl> Message-ID: <4F43C4F8.2000308@uva.nl> Hi, I'm inputting lots of street address points in PostGIS, and try to generate labels for the streets. The convex hull of the points of a street approximate the course of the street, and I would like to position the streetname in the middle of the convex hull polygon, aligned to its dominant angle (the polygons are generally quite narrow). Is there a way of doing this with MapServer? Perhaps by thinning out the polygon to a line, for then I can use "angle follow". Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Tue Feb 21 08:27:51 2012 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 21 Feb 2012 16:27:51 +0000 Subject: [mapserver-users] Aligning labels within a polygon In-Reply-To: <4F43C4F8.2000308@uva.nl> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6306972D@suutari.haapa.mmm.fi> <4F3A93C8.3000005@uva.nl> <4F3A970D.6040403@swoodbridge.com> <4F42584C.2050302@uva.nl> <4F425B98.9040305@uva.nl> <4F43C4F8.2000308@uva.nl> Message-ID: If you are storing the data in PostGIS, you could possibly take advantage of ST_Azimuth(). http://www.postgis.org/docs/ST_Azimuth.html It takes two point objects as the args, but you could potentially use the start and end points of your linestring. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jan Hartmann Sent: Tuesday, February 21, 2012 10:23 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Aligning labels within a polygon Hi, I'm inputting lots of street address points in PostGIS, and try to generate labels for the streets. The convex hull of the points of a street approximate the course of the street, and I would like to position the streetname in the middle of the convex hull polygon, aligned to its dominant angle (the polygons are generally quite narrow). Is there a way of doing this with MapServer? Perhaps by thinning out the polygon to a line, for then I can use "angle follow". Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Tue Feb 21 09:17:49 2012 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Tue, 21 Feb 2012 18:17:49 +0100 Subject: [mapserver-users] Aligning labels within a polygon In-Reply-To: References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6306972D@suutari.haapa.mmm.fi> <4F3A93C8.3000005@uva.nl> <4F3A970D.6040403@swoodbridge.com> <4F42584C.2050302@uva.nl> <4F425B98.9040305@uva.nl> <4F43C4F8.2000308@uva.nl> Message-ID: <4F43D1BD.40204@uva.nl> Going a step further: st_longestline(st_collect(the_geom),st_collect(the_geom)) gives the longest line segment that can be drawn within the cluster of street address points. Works for non-curved streets. I'm still looking for a more intelligent way to thin out a polygon to a (multi)line. Jan On 02/21/2012 05:27 PM, Fawcett, David (MPCA) wrote: > > If you are storing the data in PostGIS, you could possibly take > advantage of ST_Azimuth(). http://www.postgis.org/docs/ST_Azimuth.html > > It takes two point objects as the args, but you could potentially use > the start and end points of your linestring. > > David. > > *From:*mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Jan > Hartmann > *Sent:* Tuesday, February 21, 2012 10:23 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Aligning labels within a polygon > > Hi, > > I'm inputting lots of street address points in PostGIS, and try to > generate labels for the streets. The convex hull of the points of a > street approximate the course of the street, and I would like to > position the streetname in the middle of the convex hull polygon, > aligned to its dominant angle (the polygons are generally quite > narrow). Is there a way of doing this with MapServer? Perhaps by > thinning out the polygon to a line, for then I can use "angle follow". > > Jan > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Tue Feb 21 11:19:53 2012 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 21 Feb 2012 19:19:53 +0000 Subject: [mapserver-users] Aligning labels within a polygon In-Reply-To: <4F43D1BD.40204@uva.nl> References: <84446DEF76453C439E9E97E438E13A63069713@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6306972D@suutari.haapa.mmm.fi> <4F3A93C8.3000005@uva.nl> <4F3A970D.6040403@swoodbridge.com> <4F42584C.2050302@uva.nl> <4F425B98.9040305@uva.nl> <4F43C4F8.2000308@uva.nl> <4F43D1BD.40204@uva.nl> Message-ID: Several years ago, I wrote some Python code to roughly georeference air photos. As part of that, I needed to come up with the best approximation of the heading of the airplane. What worked pretty well was to do a really simple line fitting based on the points. My samples were points from an airplane that was attempting to fly in a straight line, with vertices generated by a camera taking pictures at regular intervals, so that helped. I simply split the vertices of the line into three groups by dividing the total number of points by 3. I averaged the x and y values in each group and then created a line from the average coord from group1 to the average coord from group3. Street data will likely be more variable (curved), but you may want to explore something like this. Of course, you would likely want to calculate these label angles using pre-processing to speed up rendering time. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jan Hartmann Sent: Tuesday, February 21, 2012 11:18 AM To: Fawcett, David (MPCA) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Aligning labels within a polygon Going a step further: st_longestline(st_collect(the_geom),st_collect(the_geom)) gives the longest line segment that can be drawn within the cluster of street address points. Works for non-curved streets. I'm still looking for a more intelligent way to thin out a polygon to a (multi)line. Jan On 02/21/2012 05:27 PM, Fawcett, David (MPCA) wrote: If you are storing the data in PostGIS, you could possibly take advantage of ST_Azimuth(). http://www.postgis.org/docs/ST_Azimuth.html It takes two point objects as the args, but you could potentially use the start and end points of your linestring. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jan Hartmann Sent: Tuesday, February 21, 2012 10:23 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Aligning labels within a polygon Hi, I'm inputting lots of street address points in PostGIS, and try to generate labels for the streets. The convex hull of the points of a street approximate the course of the street, and I would like to position the streetname in the middle of the convex hull polygon, aligned to its dominant angle (the polygons are generally quite narrow). Is there a way of doing this with MapServer? Perhaps by thinning out the polygon to a line, for then I can use "angle follow". Jan -------------- next part -------------- An HTML attachment was scrubbed... URL: From japr94 at hotmail.com Tue Feb 21 11:31:41 2012 From: japr94 at hotmail.com (juliap) Date: Tue, 21 Feb 2012 11:31:41 -0800 (PST) Subject: [mapserver-users] mssql2008 plugin not working / failed to load dynamic library Message-ID: <1329852701520-4492672.post@n6.nabble.com> Hi, I have been trying to draw a layer using information in MySql database . When I test my layer with shp2img, I get this initial message : " the procedure entry point msSmallMalloc could not be located in the dynamic library libmap.dll" and then : msDrawMap(): Image handling error. Failed to draw layer named 'geo'. loadCustomLayerDLL: General error message. Failed to load dynamic Layer LIB: C:/OSGeo4W/apache/bin/msplugin_mssql2008.dll msGetSymbol(): General error message. Can't load requested dynamic library: C:/OSGeo4W/specialplugins/msplugin_mssql2008.dll This is how I'm defining the "geo" layer LAYER NAME geo STATUS ON TYPE POINT CONNECTIONTYPE PLUGIN PLUGIN "C:/OSGeo4W/specialplugins/msplugin_mssql2008.dll" CONNECTION "MYSQL:xx,user=xx;password=xx,host=xx,port=xx" DATA "Location from Production" CLASS STYLE COLOR 232 232 232 OUTLINECOLOR 32 32 32 END # end of style END # end of class END # end of layer Do you guys have any idea of what could be causing the error? Any help will be appreciated Thanks, Julia -- View this message in context: http://osgeo-org.1560.n6.nabble.com/mssql2008-plugin-not-working-failed-to-load-dynamic-library-tp4492672p4492672.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Tue Feb 21 11:37:59 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 21 Feb 2012 15:37:59 -0400 Subject: [mapserver-users] mssql2008 plugin not working / failed to load dynamic library In-Reply-To: <1329852701520-4492672.post@n6.nabble.com> References: <1329852701520-4492672.post@n6.nabble.com> Message-ID: <4F43F297.4050006@gatewaygeomatics.com> On 12-02-21 3:31 PM, juliap wrote: > Hi, > > I have been trying to draw a layer using information in MySql database . > When I test my layer with shp2img, I get this initial message : > > " the procedure entry point msSmallMalloc could not be located in the > dynamic library libmap.dll" > > and then : > > msDrawMap(): Image handling error. Failed to draw layer named 'geo'. > loadCustomLayerDLL: General error message. Failed to load dynamic Layer LIB: > C:/OSGeo4W/apache/bin/msplugin_mssql2008.dll msGetSymbol(): General errorou > message. Can't load requested dynamic library: > C:/OSGeo4W/specialplugins/msplugin_mssql2008.dll If you are trying to access a MySQL database, you don't use the mssql2008 plugin - you can follow examples at http://www.mapserver.org/input/vector/mysql.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From japr94 at hotmail.com Tue Feb 21 12:01:21 2012 From: japr94 at hotmail.com (juliap) Date: Tue, 21 Feb 2012 12:01:21 -0800 (PST) Subject: [mapserver-users] Re: mssql2008 plugin not working / failed to load dynamic library In-Reply-To: <4F43F297.4050006@gatewaygeomatics.com> References: <1329852701520-4492672.post@n6.nabble.com> <4F43F297.4050006@gatewaygeomatics.com> Message-ID: <1329854481902-4492760.post@n6.nabble.com> Sorry, I'm using SQL server not MYSQL -julia -- View this message in context: http://osgeo-org.1560.n6.nabble.com/mssql2008-plugin-not-working-failed-to-load-dynamic-library-tp4492672p4492760.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Tue Feb 21 12:07:40 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 21 Feb 2012 16:07:40 -0400 Subject: [mapserver-users] Re: mssql2008 plugin not working / failed to load dynamic library In-Reply-To: <1329854481902-4492760.post@n6.nabble.com> References: <1329852701520-4492672.post@n6.nabble.com> <4F43F297.4050006@gatewaygeomatics.com> <1329854481902-4492760.post@n6.nabble.com> Message-ID: <4F43F98C.7070102@gatewaygeomatics.com> I'd be following the docs: http://www.mapserver.org/input/vector/mssql.html (I'd for sure be trying that ogrinfo example to connect first) I am not sure the status of that plugin though (it is also part of MS4W as well)...others may jump in here. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From stephan at meissl.name Wed Feb 22 00:50:52 2012 From: stephan at meissl.name (Stephan =?ISO-8859-1?Q?Mei=DFl?=) Date: Wed, 22 Feb 2012 09:50:52 +0100 Subject: [mapserver-users] WCS server not In-Reply-To: References: Message-ID: <1329900652.4160.14.camel@io> On Tue, 2012-02-21 at 13:11 +0100, Jorge Lopez wrote: > Hello; > > I am newbie to Mapserver, so maybe this is a naive question but I am > doing my best to find a solution to serve raster data by using > Mapserver. > > I have MapServer 5.6.5, I have prepared my map server with WFS and WMS > and I would like to serve GEOTIFF images with WCS 1.0.0 protocol. > > I prepared a map file, with two layers to be served and I made a > capabilities of the server: > > http://domainserver/cgi-bin/mapserv?SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCapabilities > > The problem is that all metadata is full but there is no content for > coverages ("identifiers" in v.1.1.0), that is, the content between > ContentMetada labels is empty, > > > > > So I don't know what is happen, I made a probe like using shp2img to > generate a image png from mapfile and it is done > > My Mapfile (only one layer) looks like in the following way: > > > MAP > > NAME "xxxx Map Server" > SIZE 100 100 # NECESARIO PARA LA UTILIDAD shp2img > UNITS DD > EXTENT -90 -90 90 90 > DEBUG 5 > CONFIG "CPL_DEBUG" "ON" > CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" #a este fichero van > mensajes de error!! (equivalent to set SetEnv MS_ERRORFILE > "/tmp/mapserver.log" in /etc/apache2/apache2.conf) > PROJECTION > "init=epsg:4326" > END # end projection > # Background color for the map canvas -- change as desired > IMAGECOLOR 192 192 192 > IMAGEQUALITY 95 > IMAGETYPE jpeg > > # Usamos el driver GDAL para crear el formato R?ster en modo IMAGEN > RGB > OUTPUTFORMAT > NAME GEOTIFF_RGB > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE RGB > EXTENSION 'tif' > END #end outputformat > > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END #end label > END #end legend > > > # Web interface definition. Only the template parameter is required > to display a map. See MapServer documentation > WEB > > # Set IMAGEPATH to the path where MapServer should write its > output. > IMAGEPATH '/tmp/' > # Set IMAGEURL to the url that points to IMAGEPATH as defined in > your web server configuration > IMAGEURL '/tmp/' > > # WCS server settings > METADATA > 'wms_title' 'xxxx Map Server' > 'wms_enable_request' '*' > 'ows_onlineresource' 'http://domainserver/cgi-bin/mapserv?' > #'ows_srs' 'CRS:84 EPSG:4326 > urn:x-ogc:def:crs:EPSG:4326 urn:x-ogc:def:crs:EPSG:3035 EPSG:3035 > EPSG:4258' > 'ows title' 'Intamap WCS' > 'ows_srs' 'CRS:84 EPSG:4326 > urn:x-ogc:def:crs:EPSG:4326' > 'ows_abstract' 'Comentarios Blah Blah Blah' > #'ows_srs' 'EPSG:3035 urn:x-ogc:def:crs:EPSG:3035' > 'wfs_title' 'xxxx WFS Server' > 'wfs_onlineresource' 'http://domainserver/cgi-bin/wfs?' > 'wfs_srs' 'EPSG:4326' ## Recommended > 'wfs_abstract' 'Web Feature Service for the XXXX central > geonode.' ## Recommended > 'wfs_enable_request' '*' > 'wms_abstract' 'Web Map Service for the XXXX central > geonode' > ###### WCS ################ > 'wcs_label' 'XXXX WCS Server' ### required for WCS > 'wcs_title' 'XXX Web Coverage Service Server' > 'wcs_description' 'Web Coverage Service for the XXXX > central geonode to serve coverages' > 'wcs_onlineresource' 'http://domainserver/cgi-bin/wcs?' > 'wcs_service_onlineresource' 'http://domainserver/cgi-bin/wcs?' > 'wcs_fees' 'none' > 'wcs_srs' 'EPSG:4326' ## Recommended > # 'wcs_abstract' 'Web Coverage Service for the XXXXXX > central geonode.' ## Recommended > 'wcs_accessconstraints' 'none' > 'wcs_keywordlist' 'WCS, TEXT, Coverage' > 'wcs_metadatalink_format' "text/plain" #tipo MIME para formato > de ficheros > 'wcs_metadatalink_href' "http://domainserver/catalog" # URL > al metadata > 'wcs_metadatalink_type' "TC211" # standard que cumple el > metadata > "wcs_address" "124 Gilmour Street" > "wcs_city" "Ottawa" > "wcs_stateorprovince" "ON" > "wcs_postcode" "90210" > "wcs_country" "Canada" > "wcs_contactelectronicmailaddress" "blah at blah" > "wcs_contactperson" "me" > "wcs_contactorganization" "unemployed" > "wcs_contactposition" "manager" > "wcs_contactvoicetelephone" "613-555-1234" > "wcs_contactfacimiletelephone" "613-555-1235" > # "wcs_service_onlineresource" > "http://domainserver/cgi-bin/wcs?" > 'wcs_enable_request' '*' > END #end metadata > > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See > MapServer documentation > END #end web > > LAYER > NAME 'GLOBCORINE_Color' > TYPE RASTER > STATUS ON > METADATA > 'wms_title' 'GLOBCORINE_2009' > # 'ows_metadataurl_format' 'text/html' > # 'ows_metadataurl_href' 'http://domainserver/catalog' > # 'ows_metadataurl_type' 'TC211' > 'wcs_label' 'GLOBCORINE 2009' > 'wcs_formats' 'GEOTIFF' > 'wcs_enable_request' '*' > 'wcs_rangeset_name' 'Range 1' ### required to support > DescribeCoverage request > 'wcs_rangeset_label' 'Globcorine 2009 classes' ### > required to support DescribeCoverage request > END #end metadata > DATA '/path/GLOBCORINE_Color.tif' > # PROJECTION > # 'proj=longlat' > # 'ellps=WGS84' > # 'datum=WGS84' > # 'no_defs' > # '' > # END #end projection > > # DUMP TRUE > END #end layer > END #end map > > > I have no xml capabilities file if I set DUMP TRUE in LAYER class, > there is a internal server error according to Apache. > > I don`t know if there is a problem with GDAL library or not. I am just > be confussed > > Any help would be very appreciate. > > Thank you in advance > > Jorge Jorge, AFAIK "DUMP True" is needed in MS 5.6.5 to enable WCS. Did you try to enable debugging [1] to see what's causing the error? Depending on your data you might need the to set the "wcs_extent" metadata but this should be reported in the debug output. cu Stephan [1] http://www.mapserver.org/optimization/debugging.html From stephan at meissl.name Wed Feb 22 01:07:09 2012 From: stephan at meissl.name (Stephan =?ISO-8859-1?Q?Mei=DFl?=) Date: Wed, 22 Feb 2012 10:07:09 +0100 Subject: [mapserver-users] WCS server not In-Reply-To: References: Message-ID: <1329901629.4160.34.camel@io> On Tue, 2012-02-21 at 13:11 +0100, Jorge Lopez wrote: > Hello; > > I am newbie to Mapserver, so maybe this is a naive question but I am > doing my best to find a solution to serve raster data by using > Mapserver. > > I have MapServer 5.6.5, I have prepared my map server with WFS and WMS > and I would like to serve GEOTIFF images with WCS 1.0.0 protocol. > > I prepared a map file, with two layers to be served and I made a > capabilities of the server: > > http://domainserver/cgi-bin/mapserv?SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCapabilities > > The problem is that all metadata is full but there is no content for > coverages ("identifiers" in v.1.1.0), that is, the content between > ContentMetada labels is empty, > > > > > So I don't know what is happen, I made a probe like using shp2img to > generate a image png from mapfile and it is done > > My Mapfile (only one layer) looks like in the following way: > > > MAP > > NAME "xxxx Map Server" > SIZE 100 100 # NECESARIO PARA LA UTILIDAD shp2img > UNITS DD > EXTENT -90 -90 90 90 > DEBUG 5 > CONFIG "CPL_DEBUG" "ON" > CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" #a este fichero van > mensajes de error!! (equivalent to set SetEnv MS_ERRORFILE > "/tmp/mapserver.log" in /etc/apache2/apache2.conf) > PROJECTION > "init=epsg:4326" > END # end projection > # Background color for the map canvas -- change as desired > IMAGECOLOR 192 192 192 > IMAGEQUALITY 95 > IMAGETYPE jpeg > > # Usamos el driver GDAL para crear el formato R?ster en modo IMAGEN > RGB > OUTPUTFORMAT > NAME GEOTIFF_RGB > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE RGB > EXTENSION 'tif' > END #end outputformat > > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END #end label > END #end legend > > > # Web interface definition. Only the template parameter is required > to display a map. See MapServer documentation > WEB > > # Set IMAGEPATH to the path where MapServer should write its > output. > IMAGEPATH '/tmp/' > # Set IMAGEURL to the url that points to IMAGEPATH as defined in > your web server configuration > IMAGEURL '/tmp/' > > # WCS server settings > METADATA > 'wms_title' 'xxxx Map Server' > 'wms_enable_request' '*' > 'ows_onlineresource' 'http://domainserver/cgi-bin/mapserv?' > #'ows_srs' 'CRS:84 EPSG:4326 > urn:x-ogc:def:crs:EPSG:4326 urn:x-ogc:def:crs:EPSG:3035 EPSG:3035 > EPSG:4258' > 'ows title' 'Intamap WCS' > 'ows_srs' 'CRS:84 EPSG:4326 > urn:x-ogc:def:crs:EPSG:4326' > 'ows_abstract' 'Comentarios Blah Blah Blah' > #'ows_srs' 'EPSG:3035 urn:x-ogc:def:crs:EPSG:3035' > 'wfs_title' 'xxxx WFS Server' > 'wfs_onlineresource' 'http://domainserver/cgi-bin/wfs?' > 'wfs_srs' 'EPSG:4326' ## Recommended > 'wfs_abstract' 'Web Feature Service for the XXXX central > geonode.' ## Recommended > 'wfs_enable_request' '*' > 'wms_abstract' 'Web Map Service for the XXXX central > geonode' > ###### WCS ################ > 'wcs_label' 'XXXX WCS Server' ### required for WCS > 'wcs_title' 'XXX Web Coverage Service Server' > 'wcs_description' 'Web Coverage Service for the XXXX > central geonode to serve coverages' > 'wcs_onlineresource' 'http://domainserver/cgi-bin/wcs?' > 'wcs_service_onlineresource' 'http://domainserver/cgi-bin/wcs?' > 'wcs_fees' 'none' > 'wcs_srs' 'EPSG:4326' ## Recommended > # 'wcs_abstract' 'Web Coverage Service for the XXXXXX > central geonode.' ## Recommended > 'wcs_accessconstraints' 'none' > 'wcs_keywordlist' 'WCS, TEXT, Coverage' > 'wcs_metadatalink_format' "text/plain" #tipo MIME para formato > de ficheros > 'wcs_metadatalink_href' "http://domainserver/catalog" # URL > al metadata > 'wcs_metadatalink_type' "TC211" # standard que cumple el > metadata > "wcs_address" "124 Gilmour Street" > "wcs_city" "Ottawa" > "wcs_stateorprovince" "ON" > "wcs_postcode" "90210" > "wcs_country" "Canada" > "wcs_contactelectronicmailaddress" "blah at blah" > "wcs_contactperson" "me" > "wcs_contactorganization" "unemployed" > "wcs_contactposition" "manager" > "wcs_contactvoicetelephone" "613-555-1234" > "wcs_contactfacimiletelephone" "613-555-1235" > # "wcs_service_onlineresource" > "http://domainserver/cgi-bin/wcs?" > 'wcs_enable_request' '*' > END #end metadata > > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See > MapServer documentation > END #end web > > LAYER > NAME 'GLOBCORINE_Color' > TYPE RASTER > STATUS ON > METADATA > 'wms_title' 'GLOBCORINE_2009' > # 'ows_metadataurl_format' 'text/html' > # 'ows_metadataurl_href' 'http://domainserver/catalog' > # 'ows_metadataurl_type' 'TC211' > 'wcs_label' 'GLOBCORINE 2009' > 'wcs_formats' 'GEOTIFF' > 'wcs_enable_request' '*' > 'wcs_rangeset_name' 'Range 1' ### required to support > DescribeCoverage request > 'wcs_rangeset_label' 'Globcorine 2009 classes' ### > required to support DescribeCoverage request > END #end metadata > DATA '/path/GLOBCORINE_Color.tif' > # PROJECTION > # 'proj=longlat' > # 'ellps=WGS84' > # 'datum=WGS84' > # 'no_defs' > # '' > # END #end projection > > # DUMP TRUE > END #end layer > END #end map > > > I have no xml capabilities file if I set DUMP TRUE in LAYER class, > there is a internal server error according to Apache. > > I don`t know if there is a problem with GDAL library or not. I am just > be confussed > > Any help would be very appreciate. > > Thank you in advance > > Jorge Jorge, AFAIK "DUMP True" is needed in MS 5.6.5 to enable WCS. Did you try to enable debugging [1] to see what's causing the error? Depending on your data you might need the to set "wcs_extent" metadata cu Stephan [1] http://www.mapserver.org/optimization/debugging.html From iacovlev.pavel at gmail.com Wed Feb 22 01:38:50 2012 From: iacovlev.pavel at gmail.com (Pavel Iacovlev) Date: Wed, 22 Feb 2012 11:38:50 +0200 Subject: [mapserver-users] Re: Reloading MapCache configuration file on changes? In-Reply-To: References: <005801ccb39e$688abff0$39a03fd0$@firstbasesolutions.com> Message-ID: I am also in need of this feature, in my case it's an Administrator panel that will control MapCache options. As a suggestion maybe create an option in MapCache configuration file (by default false) that on request to an apache process will check if the last modified date of the configuration file was changed and if yes then reload the configuration and after that continue processing. On Tue, Dec 6, 2011 at 1:00 PM, thomas bonfort wrote: > AFAIK, this isn't possible. Inside an apache module, the configuration > is considered read-only as it is shared between multiple worker > threads/processed spawned by httpd. > > apachectl configtest && apachectl graceful will restart the server > gracefully, i.e. without aborting ongoing requests, and will load the > new configuration for subsequent requests. > > -- > thomas > > On Mon, Dec 5, 2011 at 23:37, John Taranu > wrote: > > Thomas, > > > > > > > > Is there a better way force MapCache to reload its configuration script > than > > restarting apache? I?m working on an application that will use two > > load-balanced web servers running MapCache, all pointing to a single > central > > tile repository and a single central .xml configuration file. The > > configuration file will occasionally be edited, either with deletions or > > additional tilesets. Both web servers need to reload the updated > > configuration .xml. > > > > > > > > Is it possible to set up MapCache to check if the config file was > recently > > updated and, if so, reload the config .xml? It looks like this is > currently > > enabled under FastCGI, but not under Apache. > > > > > > > > John > _______________________________________________ > 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 jorgelopez.physics at gmail.com Wed Feb 22 01:57:43 2012 From: jorgelopez.physics at gmail.com (jorgelopez) Date: Wed, 22 Feb 2012 01:57:43 -0800 (PST) Subject: [mapserver-users] Re: WCS server not In-Reply-To: <1329901629.4160.34.camel@io> References: <1329901629.4160.34.camel@io> Message-ID: <1329904663644-4494377.post@n6.nabble.com> Hello Stephan, As you said, I have seen that for Mapserver version it is advisbale to write DUMP TRUE in (layer-level) map file but there is no capabilities in the web browser. 505 Internal Server Error and the following message: """ The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, etclusi.gis.support at uab.es and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. """ I did all related with debug issues and I am obtaining errors to log file saying "[Wed Feb 22 09:44:53 2012] [error] [client 158.109.144.146] Premature end of script headers: mapserv" According to this, I checked not to be in conflict with INPUT=GDAL and INPUT=TIFF MapServer version 5.6.5 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 I am trying to serve two TIFF Images, one with 1 band and a colour palette (Land Cover) and another one, Murble Nasa image and 3 bands RGB. So at this point I dont know if there is a conflict with GDAL library (I dont think so because shp2img -m file.map -o test.png -all_debug 5 reports in a correct direction) or one parameters wcs_* related is missing in METADATA section. Could you give any above-mentioned not explored tips or directly go to MSv6? Thanks you in advance Jorge -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WCS-server-not-tp4491169p4494377.html Sent from the Mapserver - User mailing list archive at Nabble.com. From iacovlev.pavel at gmail.com Wed Feb 22 02:22:52 2012 From: iacovlev.pavel at gmail.com (Pavel Iacovlev) Date: Wed, 22 Feb 2012 12:22:52 +0200 Subject: [mapserver-users] Re: Reloading MapCache configuration file on changes? In-Reply-To: References: <005801ccb39e$688abff0$39a03fd0$@firstbasesolutions.com> Message-ID: apache2ctl -k graceful is not really an option for me because I would have to give root privileges to my apache/php. "AFAIK, this isn't possible." I don't know anything about apache modules and stuff so the next thing I say may not be applicable or just plain stupid, but maybe each process will hold their own copy of configuration so the apache process will be able to alter it's configuration upon detection of file change. There is certainly that added overhead of "checking last modified date" and keeping more copies in memory, but this should not be the default behavior. On Tue, Dec 6, 2011 at 1:00 PM, thomas bonfort wrote: > AFAIK, this isn't possible. Inside an apache module, the configuration > is considered read-only as it is shared between multiple worker > threads/processed spawned by httpd. > > apachectl configtest && apachectl graceful will restart the server > gracefully, i.e. without aborting ongoing requests, and will load the > new configuration for subsequent requests. > > -- > thomas > > On Mon, Dec 5, 2011 at 23:37, John Taranu > wrote: > > Thomas, > > > > > > > > Is there a better way force MapCache to reload its configuration script > than > > restarting apache? I?m working on an application that will use two > > load-balanced web servers running MapCache, all pointing to a single > central > > tile repository and a single central .xml configuration file. The > > configuration file will occasionally be edited, either with deletions or > > additional tilesets. Both web servers need to reload the updated > > configuration .xml. > > > > > > > > Is it possible to set up MapCache to check if the config file was > recently > > updated and, if so, reload the config .xml? It looks like this is > currently > > enabled under FastCGI, but not under Apache. > > > > > > > > John > _______________________________________________ > 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 stephan at meissl.name Wed Feb 22 02:29:40 2012 From: stephan at meissl.name (Stephan =?ISO-8859-1?Q?Mei=DFl?=) Date: Wed, 22 Feb 2012 11:29:40 +0100 Subject: [mapserver-users] Re: WCS server not In-Reply-To: <1329904663644-4494377.post@n6.nabble.com> References: <1329901629.4160.34.camel@io> <1329904663644-4494377.post@n6.nabble.com> Message-ID: <1329906580.4160.81.camel@io> On Wed, 2012-02-22 at 01:57 -0800, jorgelopez wrote: > Hello Stephan, > > As you said, I have seen that for Mapserver version it is advisbale to write > DUMP TRUE in (layer-level) map file but there is no capabilities in the web > browser. 505 Internal Server Error and the following message: > > """ > > The server encountered an internal error or misconfiguration and was unable > to complete your request. > > Please contact the server administrator, etclusi.gis.support at uab.es and > inform them of the time the error occurred, and anything you might have done > that may have caused the error. > > More information about this error may be available in the server error log. > > """ > > I did all related with debug issues and I am obtaining errors to log file > saying > > "[Wed Feb 22 09:44:53 2012] [error] [client 158.109.144.146] Premature end > of script headers: mapserv" > > > > According to this, I checked not to be in conflict with INPUT=GDAL and > INPUT=TIFF > > MapServer version 5.6.5 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 > > > I am trying to serve two TIFF Images, one with 1 band and a colour palette > (Land Cover) and another one, Murble Nasa image and 3 bands RGB. So at this > point I dont know if there is a conflict with GDAL library (I dont think so > because shp2img -m file.map -o test.png -all_debug 5 reports in a correct > direction) or one parameters wcs_* related is missing in METADATA section. > > Could you give any above-mentioned not explored tips or directly go to MSv6? > > Thanks you in advance > > Jorge Could you please post the debug messages when you set "DEBUG 5" both on mapfile and layer level? Thanks, Stephan From tbonfort at terriscope.fr Wed Feb 22 02:37:39 2012 From: tbonfort at terriscope.fr (thomas bonfort) Date: Wed, 22 Feb 2012 11:37:39 +0100 Subject: [mapserver-users] Re: Reloading MapCache configuration file on changes? In-Reply-To: References: <005801ccb39e$688abff0$39a03fd0$@firstbasesolutions.com> Message-ID: On Wed, Feb 22, 2012 at 11:22, Pavel Iacovlev wrote: > apache2ctl -k graceful is not really an option for me because I would have > to give root?privileges?to my apache/php. you can create a sudo rule that only allows a user to run apache2ctl -k graceful without giving full root access. > > "AFAIK, this isn't possible." I don't know anything about apache modules and > stuff so the next thing I say may not be applicable or just plain stupid, > but maybe each process will hold their own copy of configuration so the > apache process will be able to alter it's configuration upon detection of > file change. There is?certainly?that added overhead of "checking last > modified date" and keeping more copies in memory, but this should not be the > default?behavior. afaik, at the request level (which is were the freshness test would occur), there's no way of freeing the memory that allocated the initial configuration, and no way of allocating memory for the new configuration that would live across the upcoming requests. > > On Tue, Dec 6, 2011 at 1:00 PM, thomas bonfort > wrote: >> >> AFAIK, this isn't possible. Inside an apache module, the configuration >> is considered read-only as it is shared between multiple worker >> threads/processed spawned by httpd. >> >> apachectl configtest && apachectl graceful will restart the server >> gracefully, i.e. without aborting ongoing requests, and will load the >> new configuration for subsequent requests. >> >> -- >> thomas >> >> On Mon, Dec 5, 2011 at 23:37, John Taranu >> wrote: >> > Thomas, >> > >> > >> > >> > Is there a better way force MapCache to reload its configuration script >> > than >> > restarting apache?? I?m working on an application that will use two >> > load-balanced web servers running MapCache, all pointing to a single >> > central >> > tile repository and a single central .xml configuration file.? The >> > configuration file will occasionally be edited, either with deletions or >> > additional tilesets.? Both web servers need to reload the updated >> > configuration .xml. >> > >> > >> > >> > Is it possible to set up MapCache to check if the config file was >> > recently >> > updated and, if so, reload the config .xml?? It looks like this is >> > currently >> > enabled under FastCGI, but not under Apache. >> > >> > >> > >> > John >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From iacovlev.pavel at gmail.com Wed Feb 22 03:00:39 2012 From: iacovlev.pavel at gmail.com (Pavel Iacovlev) Date: Wed, 22 Feb 2012 13:00:39 +0200 Subject: [mapserver-users] Re: Reloading MapCache configuration file on changes? In-Reply-To: References: <005801ccb39e$688abff0$39a03fd0$@firstbasesolutions.com> Message-ID: Thank you for the sudo rule suggestion and for detailed explanation! Just one more question, if I use MapCache as fcgi, does this mean that on every request the configuration will be read and parsed ? or the configuration will be kept in memory until a the fastcgi process killed and respawned ? On Wed, Feb 22, 2012 at 12:37 PM, thomas bonfort wrote: > On Wed, Feb 22, 2012 at 11:22, Pavel Iacovlev > wrote: > > apache2ctl -k graceful is not really an option for me because I would > have > > to give root privileges to my apache/php. > you can create a sudo rule that only allows a user to run apache2ctl > -k graceful without giving full root access. > > > > > "AFAIK, this isn't possible." I don't know anything about apache modules > and > > stuff so the next thing I say may not be applicable or just plain stupid, > > but maybe each process will hold their own copy of configuration so the > > apache process will be able to alter it's configuration upon detection of > > file change. There is certainly that added overhead of "checking last > > modified date" and keeping more copies in memory, but this should not be > the > > default behavior. > > afaik, at the request level (which is were the freshness test would > occur), there's no way of freeing the memory that allocated the > initial configuration, and no way of allocating memory for the new > configuration that would live across the upcoming requests. > > > > > On Tue, Dec 6, 2011 at 1:00 PM, thomas bonfort > > wrote: > >> > >> AFAIK, this isn't possible. Inside an apache module, the configuration > >> is considered read-only as it is shared between multiple worker > >> threads/processed spawned by httpd. > >> > >> apachectl configtest && apachectl graceful will restart the server > >> gracefully, i.e. without aborting ongoing requests, and will load the > >> new configuration for subsequent requests. > >> > >> -- > >> thomas > >> > >> On Mon, Dec 5, 2011 at 23:37, John Taranu > >> wrote: > >> > Thomas, > >> > > >> > > >> > > >> > Is there a better way force MapCache to reload its configuration > script > >> > than > >> > restarting apache? I?m working on an application that will use two > >> > load-balanced web servers running MapCache, all pointing to a single > >> > central > >> > tile repository and a single central .xml configuration file. The > >> > configuration file will occasionally be edited, either with deletions > or > >> > additional tilesets. Both web servers need to reload the updated > >> > configuration .xml. > >> > > >> > > >> > > >> > Is it possible to set up MapCache to check if the config file was > >> > recently > >> > updated and, if so, reload the config .xml? It looks like this is > >> > currently > >> > enabled under FastCGI, but not under Apache. > >> > > >> > > >> > > >> > John > >> _______________________________________________ > >> 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 tbonfort at terriscope.fr Wed Feb 22 03:16:44 2012 From: tbonfort at terriscope.fr (thomas bonfort) Date: Wed, 22 Feb 2012 12:16:44 +0100 Subject: [mapserver-users] Re: Reloading MapCache configuration file on changes? In-Reply-To: References: <005801ccb39e$688abff0$39a03fd0$@firstbasesolutions.com> Message-ID: kept in memory accross the lifetime of the process. the conf file is accessed at each request to check it's modification time though if you have enabled auto reloading. -- tb On Wed, Feb 22, 2012 at 12:00, Pavel Iacovlev wrote: > Thank you for the sudo rule suggestion and for?detailed?explanation! > > Just one more question, if I use MapCache as fcgi, does this mean that on > every request the configuration will be read and parsed ? or the > configuration will be kept in memory until a the fastcgi process killed > and?respawned?? > > > On Wed, Feb 22, 2012 at 12:37 PM, thomas bonfort > wrote: >> >> On Wed, Feb 22, 2012 at 11:22, Pavel Iacovlev >> wrote: >> > apache2ctl -k graceful is not really an option for me because I would >> > have >> > to give root?privileges?to my apache/php. >> you can create a sudo rule that only allows a user to run apache2ctl >> -k graceful without giving full root access. >> >> > >> > "AFAIK, this isn't possible." I don't know anything about apache modules >> > and >> > stuff so the next thing I say may not be applicable or just plain >> > stupid, >> > but maybe each process will hold their own copy of configuration so the >> > apache process will be able to alter it's configuration upon detection >> > of >> > file change. There is?certainly?that added overhead of "checking last >> > modified date" and keeping more copies in memory, but this should not be >> > the >> > default?behavior. >> >> afaik, at the request level (which is were the freshness test would >> occur), there's no way of freeing the memory that allocated the >> initial configuration, and no way of allocating memory for the new >> configuration that would live across the upcoming requests. >> >> > >> > On Tue, Dec 6, 2011 at 1:00 PM, thomas bonfort >> > wrote: >> >> >> >> AFAIK, this isn't possible. Inside an apache module, the configuration >> >> is considered read-only as it is shared between multiple worker >> >> threads/processed spawned by httpd. >> >> >> >> apachectl configtest && apachectl graceful will restart the server >> >> gracefully, i.e. without aborting ongoing requests, and will load the >> >> new configuration for subsequent requests. >> >> >> >> -- >> >> thomas >> >> >> >> On Mon, Dec 5, 2011 at 23:37, John Taranu >> >> wrote: >> >> > Thomas, >> >> > >> >> > >> >> > >> >> > Is there a better way force MapCache to reload its configuration >> >> > script >> >> > than >> >> > restarting apache?? I?m working on an application that will use two >> >> > load-balanced web servers running MapCache, all pointing to a single >> >> > central >> >> > tile repository and a single central .xml configuration file.? The >> >> > configuration file will occasionally be edited, either with deletions >> >> > or >> >> > additional tilesets.? Both web servers need to reload the updated >> >> > configuration .xml. >> >> > >> >> > >> >> > >> >> > Is it possible to set up MapCache to check if the config file was >> >> > recently >> >> > updated and, if so, reload the config .xml?? It looks like this is >> >> > currently >> >> > enabled under FastCGI, but not under Apache. >> >> > >> >> > >> >> > >> >> > John >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > > > From jorgelopez.physics at gmail.com Wed Feb 22 04:38:01 2012 From: jorgelopez.physics at gmail.com (jorgelopez) Date: Wed, 22 Feb 2012 04:38:01 -0800 (PST) Subject: [mapserver-users] Re: WCS server not In-Reply-To: <1329906580.4160.81.camel@io> References: <1329901629.4160.34.camel@io> <1329904663644-4494377.post@n6.nabble.com> <1329906580.4160.81.camel@io> Message-ID: <1329914281496-4494818.post@n6.nabble.com> Hello Stephan: I am not sure what is happened butt ...... fortunately, magic word DUMP TRUE has resolved the issue. I don't know exactly the reason but jointly with a (maybe important) wc_title metadata has solved the problem. One final question, but in debug mode, attending to error.log in apache web server, I have this kind of "error?", ..... [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GTiff: Opened 4320x2160 overview. [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GTiff: Opened 2880x1440 overview. [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GDAL: GDALOpen(/home/data/datasets/public/nasa/bluemarble/bluemarble_jpeg_small.tiff, this=0xb98ad0) succeeds as GTiff. [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GDAL: GDALClose(, this=0xb97be0) [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GDAL: GDALClose(, this=0xb9c420) [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GDAL: GDALClose(/home/data/datasets/public/nasa/bluemarble/bluemarble_jpeg_small.tiff, this=0xb98ad0) [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GTiff: Opened 4320x2160 overview. [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GTiff: Opened 2880x1440 overview. [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GDAL: GDALOpen(/home/data/datasets/public/nasa/bluemarble/bluemarble_jpeg_small.tiff, this=0xb97fa0) succeeds as GTiff. [Wed Feb 22 12:56:03 2012] [error] [client 158.109.144.146] GDAL: GDALDriver::Create(MEM,msSaveImageGDAL_temp,8640,4320,3,Byte,(nil)) [Wed Feb 22 12:56:03 2012] [error] [client 158.109.144.146] GDAL: GDALOpen(GTIFF_RAW:/vsimem/msout/4f44d7d3_b73_0.tif, this=0x9a49060) succeeds as GTiff. [Wed Feb 22 12:56:03 2012] [error] [client 158.109.144.146] GDAL: GDALDatasetCopyWholeRaster(): 8640*385 swaths, bInterleave=1 [Wed Feb 22 12:56:04 2012] [error] [client 158.109.144.146] GDAL: GDALClose(msSaveImageGDAL_temp, this=0xb658430) [Wed Feb 22 12:56:04 2012] [error] [client 158.109.144.146] GDAL: GDALClose(/vsimem/msout/4f44d7d3_b73_0.tif, this=0x9a49060) but I can make getCapabilities, DescribeCoverage and getCoverage for WCS 1.0.0 protocol. Do you know what does it mean? Could I obtain errors but doing (aparently) correct requests to mapserver? Thanks Stephen Jorge -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WCS-server-not-tp4491169p4494818.html Sent from the Mapserver - User mailing list archive at Nabble.com. From K.Digeser at gmail.com Wed Feb 22 04:54:54 2012 From: K.Digeser at gmail.com (ElPer) Date: Wed, 22 Feb 2012 04:54:54 -0800 (PST) Subject: [mapserver-users] Re: Scale dependant image tile In-Reply-To: References: <1255960766315-3849182.post@n2.nabble.com> Message-ID: <1329915294929-4494860.post@n6.nabble.com> Hi I have a similar problem. I have different s57 maps with different scales for different locations I convert them to .shp and create for all scales of the layers tileindexes and adjust the min/maxscaledenom of the mapfile. The GROUP name is the s57 layername (eg DEPARE) and the layers are called like this: DEPARE_A_2500 But now I get only white pictures. I think the problem is, that the tileindex link to an other shapefile and not to the shapefile for this location because of the scale. until all layer were draw on top of each other like here: http://osgeo-org.1560.n6.nabble.com/file/n4494860/Unbenannt.png I hope you can help me Thanks ElPer -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Scale-dependant-image-tile-tp4235062p4494860.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ahmettemiz88 at gmail.com Wed Feb 22 05:30:30 2012 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Wed, 22 Feb 2012 15:30:30 +0200 Subject: [mapserver-users] cannot show "all" labels Message-ID: hello I cannot show "all" labels. ?t displays some of them. what do I have to do ? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From ozgurarslan81 at hotmail.com Thu Feb 23 01:39:42 2012 From: ozgurarslan81 at hotmail.com (=?iso-8859-1?B?1npn/HIgQXJzbGFu?=) Date: Thu, 23 Feb 2012 09:39:42 +0000 Subject: [mapserver-users] Hi Message-ID: My name is Ozgur and I would like to be in mailing list so I can send mails. My email address is below: ozgurarslan81 at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ozgurarslan81 at hotmail.com Thu Feb 23 01:51:33 2012 From: ozgurarslan81 at hotmail.com (=?iso-8859-1?B?1npn/HIgQXJzbGFu?=) Date: Thu, 23 Feb 2012 09:51:33 +0000 Subject: [mapserver-users] Help Message-ID: Hi Everyone, I am new in mapserver and I need help. Please help! If I want people to access files that are on my computer by my Web Server what would I add to the httpd.conf file in order for this to happen given the following information? - The files are in c:\Internet_ Mapping\webfiles - You want people to access them by entering http://servername/contentfiles/index.html into their web browser -------------- next part -------------- An HTML attachment was scrubbed... URL: From apsims at ncsu.edu Thu Feb 23 07:05:46 2012 From: apsims at ncsu.edu (Aaron Sims) Date: Thu, 23 Feb 2012 10:05:46 -0500 Subject: [mapserver-users] mapserver / gdal draw failure In-Reply-To: <4F465569.5070404@ncsu.edu> References: <4F465569.5070404@ncsu.edu> Message-ID: <4F4655CA.6080609@ncsu.edu> We are using an openlayers frontend to utilize mapserver via phpmapscript to read some colorized tif files we have made, and then render a png file on a webpage via gdal.This process seems to work about 95% of the time, The other 5%, we are getting no images and errors kicked out to the httpd error log. Based on the errors below, it seems to be occurring when mapserver issues the $map->draw() command, and kicks out some GDAL errors.When this happens, there is no png image that gets created. Ive included the following directives in the map file to help with debugging CONFIG "CPL_DEBUG" "ON", andCONFIG "MS_ERRORFILE" = /home/logfile Any help on what may be happening here? *When it succeeds I see a message like this in the httpd error logs:*** GDAL: GDALOpen(/home/cache/2012021913-2012022013.tif, this=0x2b5e6a5abda0) succeeds as GTiff *When it fails, I see a string of errors, such as:*** GDAL: GDALClose(/home/cache/2012021913-2012022013.tif, this=0x2b5e6fd12890) [Mon Feb 20 14:41:18 2012] [error] [client xxx.xxx.xxx.xxx] PHP Warning:[MapServer Error]: msDrawMap(): Failed to draw layer named 'map_data'.\n in /home/www/testmscross.php on line 231 [Mon Feb 20 14:41:18 2012] [error] [client xxx.xxx.xxx.xxx] PHP Warning:[MapServer Error]: GetBlockRef failed at X block offset 0, Y block offset 0: GDALDatasetRasterIO() failed: drawGDAL()\n in /home/www/testmscross.php on line 231 [Mon Feb 20 14:41:18 2012] [error] [client xxx.xxx.xxx.xxx] PHP Warning:[MapServer Error]: msDrawMap(): Failed to draw layer named 'map_data'.\n in /home/www/testmscross.php on line 231 [Mon Feb 20 14:41:18 2012] [error] [client xxx.xxx.xxx.xxx] PHP Warning:[MapServer Error]: GetBlockRef failed at X block offset 0, Y block offset 0: GDALDatasetRasterIO() failed: drawGDAL()\n in /home/www/testmscross.php on line 231 [Mon Feb 20 14:41:18 2012] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error:Call to a member function saveImage() on a non-object in /home/www/testmscross.php on line 270 *gdalinfo on the tiff files yields**:* Driver: GTiff/GeoTIFFC Files: /home/cache/2012021913-2012022013.tif Size is 181, 132 Coordinate System is `' Origin = (2172891.879999999888241,-5178906.330000000074506) Pixel Size = (4772.703535911604376,-4764.676212121210483) Image Structure Metadata: INTERLEAVE=PIXEL Corner Coordinates: Upper Left( 2172891.880,-5178906.330) Lower Left( 2172891.880,-5807843.590) Upper Right ( 3036751.220,-5178906.330) Lower Right ( 3036751.220,-5807843.590) Center( 2604821.550,-5493374.960) Band 1 Block=181x15 Type=Byte, ColorInterp=Red NoData Value=-1 Band 2 Block=181x15 Type=Byte, ColorInterp=Green NoData Value=-1 Band 3 Block=181x15 Type=Byte, ColorInterp=Blue NoData Value=-1 *and mapserv -v yields:*** MapServer version 5.6.7 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 INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE *Mapserver compiled with:*** ./configure --with-zlib --with-png --with-jpeg --with-gd --with-proj --with-threads --with-ogr=/usr/local/gdal-config --with-gdal=/usr/local/gdal-config --with-tiff --with-mygis --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-httpd=/usr/sbin/httpd --with-php=/usr/include/php *gdal information:*** [root]#./gdal-config --version 1.7.3 [root]# ./gdal-config --dep-libs --version -L/usr/local/lib -lgeos_c -L/usr/lib -lsqlite3 -L/usr/lib64 -L/usr/lib64/lib -lodbc -lodbcinst -L/usr/lib64 -L/usr/lib64/lib -lgif -L/usr/lib64 -L/usr/lib64/lib -ljpeg -L/usr/lib64/lib -ltiff -L/usr/lib64 -L/usr/lib64/lib -lpng -L/usr/local/ -L/usr/local//lib -lnetcdf -L/usr/local/lib -L/usr/local/lib/lib -lcfitsio -lz -L/usr/lib64/ -L/usr/lib64//lib -lm -lrt -ldl -L/usr/kerberos/lib64 -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz -rdynamic -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl --lcrypto [root]# ./gdal-config --formats gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp pcidsk airsar rs2 ilwis rmf leveller sgi srtmhgt idrisi gsg ingr ers jaxapalsar dimap gff cosar pds adrg coasp tsx terragen blx msgn til r northwood saga wcs wms grib bsb gif jpeg png netcdf pcraster fits rik rasterlite -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Thu Feb 23 09:29:31 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 23 Feb 2012 12:29:31 -0500 Subject: [mapserver-users] Trouble querying PostGIS layer Message-ID: <4EFF8BB964547748A07CA32961810C041D0C098D@SOM-TEAQASMAIL1.som.w2k.state.me.us> I'm having trouble doing an attribute query on a PostGIS layer. The data in this layer was formerly in shapefile, and the query worked fine with it. But with the PostGIS layer, I get no results. The PHP MapScript query uses a setFilter on the layer, then does a queryByRect, again, with no results. The problem appears to be connected to the extent and/or projection. With the original shapefile, I can echo back the extent rectangle: [minx] => 342764.988407 [miny] => 4759515.50711 [maxx] => 647042.41629 [maxy] => 5245337.46493 ) --Which is what I'd expect. But with the PostGIS layer, if I echo back the extent, here is what I get: [minx] => -3.40282346639E+38 [miny] => -3.40282346639E+38 [maxx] => 3.40282346639E+38 [maxy] => 3.40282346639E+38 The PostGIS layer is set for the proper SRID, and the correct EPSG and extent are in the map file. What is going wrong here? -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Thu Feb 23 10:31:23 2012 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 23 Feb 2012 10:31:23 -0800 Subject: [mapserver-users] mapserver / gdal draw failure In-Reply-To: <4F4655CA.6080609@ncsu.edu> References: <4F465569.5070404@ncsu.edu> <4F4655CA.6080609@ncsu.edu> Message-ID: On Thu, Feb 23, 2012 at 7:05 AM, Aaron Sims wrote: > gdalinfo on the tiff files yields: Aaron, You might want to try: gdalinfo -mm /home/cache/2012021913-2012022013.tif This will force actual reading of the imagery blocks to compute a min/max for each band and will help determine if there is any problem with the imagery. I don't really understand your overall process well, but I am suspicious there might be an issue where whatever is writing the .tif file is not quite finished flushing it out before you are trying to read it with mapserver. The error is what I might expect from reading an unflushed TIFF file. 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 Software Developer From matt at wildwalks.com Thu Feb 23 11:44:26 2012 From: matt at wildwalks.com (Matt McClelland) Date: Fri, 24 Feb 2012 06:44:26 +1100 Subject: [mapserver-users] Help In-Reply-To: References: Message-ID: Hi I am not exactly sure, but it sounds like this is not a mapserver question but an apache?? question about how to make raw files downloadable. If so head to an forum about your webserver, if it is apache then then you are probably looking for something like this DocumentRoot c:\\Internet_ Mapping ServerName www.example.com then www.example.com/webfiles/index.html should work Matt :) On Thu, Feb 23, 2012 at 8:51 PM, ?zg?r Arslan wrote: > Hi Everyone, > I am new in mapserver and I need help. Please help! > > If I want people to access files that are on my computer by my Web Server > what would I add to the httpd.conf file in order for this to happen given > the following information? > > - The files are in c:\Internet_ Mapping\webfiles > > - You want people to access them by entering > http://servername/contentfiles/index.html into their web browser > > _______________________________________________ > 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 beyhan at deprem.gov.tr Fri Feb 24 02:38:29 2012 From: beyhan at deprem.gov.tr (Murat Beyhan) Date: Fri, 24 Feb 2012 12:38:29 +0200 Subject: [mapserver-users] draw line readinf from mysql In-Reply-To: <4F4360C402000037000121EA@gate1.asurequality.com> References: <1329745925.9395.5.camel@localhost> <4F4360C402000037000121EA@gate1.asurequality.com> Message-ID: <1330079909.24113.13.camel@localhost> Dear all, Still could not achieve to draw line using start and stop point line data stored in MySql database. I have tried Mr. Robert's solution but I have faced an error message. in map file I changed Geometrytype from wkbline to wkblinestring. LAYER NAME sfault1 CONNECTIONTYPE OGR CONNECTION ' MYSQL:dynamic,user=root,password=mysqlpasswd,host=localhost,port=3306,tables=lineview lineview wkbLineString WGS84 eq_id ' DATA sfault1 STATUS on TYPE line CLASS NAME "Source Fault" SYMBOL "cline" SIZE 3 COLOR 0 0 255 END END in database I have two table one is store id lat1 lon1 lat2 lon2 and another is view of this table created by following create view lineview as select eq_id, "LINESTRING(" + lon1 + " " + lat1 + "," + lon2 + " " + lat2 + ")" as geom from sfault there is an another issue, I have to draw line by considering id so in the map When I select one id, line should be belong to this id's information so I have to make a sql statement as follow instead of draw all line stored in database I have to draw just one line considering id something like this select eq_id, geom from lineview where id like '%id %' please help about this subject.... Regards.... Murat On Tue, 2012-02-21 at 09:15 +1300, Robert Sanson wrote: > Hi Murat > > Is it possible for you to create a view from the columns that presents the data as a WKT line feature: > > create view lineview as select id, "LINESTRING(" + lon1 + " " + lat1 + "," + lon2 + " " + lat2 + ")" as geom from mytable > > Then set up your OGR ovf file representing this view: > > > > ODBC:user/passwd at DSN > lineview > wkbLine > EPSG:2193 > > id > > > > Best wishes, > > Robert > > >>> Murat Beyhan 21/02/2012 2:52 a.m. >>> > Dear friend, > > I'm trying to draw a line using MySql database > the table in database as follows, > > id lat1 lon1 lat2 lon2 > 20100308023229 40.1113 38.7901 40.0311 38.7428 > > actually using ogr connection I can draw point using ogr and mysql, but > How can I draw line using such database table, please help me and give > the idea... > > Thanks > > Murat > -- > Murat BEYHAN > Geophysical Engineer, M.Sc. > Prime Ministry > Disaster and Emergency Management Presidency > Earthquake Department > Address: Eskisehir Yolu 12. Km. > Lodumlu/ANKARA > Tel: 312 2872680-1556 > email:beyhan at deprem.gov.tr > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. > > This message has been scanned for Malware and Viruses by Websense Hosted Security. > www.websense.com > Murat BEYHAN Jeofizik Y.M?h. T.C. Ba?bakanl?k Afet ve Acil Durum Y?netimi Ba?kanl??? Deprem Dairesi Ba?kanl??? Eski?ehir Yolu 12. Km. Lodumlu/ANKARA Tel: 312 2872680-1556 email:beyhan at deprem.gov.tr -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From pcorti at gmail.com Fri Feb 24 04:14:53 2012 From: pcorti at gmail.com (Paolo Corti) Date: Fri, 24 Feb 2012 13:14:53 +0100 Subject: [mapserver-users] How to approach a multi dimensions scenario with WMS (or how specify additional parameters in WMS without breaking OGC specs) Message-ID: Hi all We have the following scenario: every day we receive a meteorological dataset in NetCDF, that contains 104 subdatasets, each representing a different variable. Each of these subdataset has 10 bands, each representing the forecast value for that variable for the coming 10 days. We need to expose all of this datasets as different WMS and keep the access to all of the datasets (NetCDF) in the time. The approach I was considering is the following: every day I would generate with a script a *different mapfile*, representing one single NetCDF dataset. Still with a script I would build 104 tiled shapefile, with a TIME field (WMS Time option). Each shapefile would contain 10 record, one for each band (day), set to the path of a virtual raster (still generated by the script) pointing to the correct combination of variable/day in the NetCDF file. The mapfile would contain 208 layers, two for each variable (the tile shapefile for time tiling the forecast day, and the raster for the variable). One alternative approach could be to create just a single WMS and append parameters in the request, and process them with *mapscript*, but this way I believe the service would go out from the OGC specification. Simply, I would like that any single day would have a specific WMS service, exposed by a different mapfile. This way the end user could query the specific WMS for a given day, using the TIME parameter for specifing the forecast day, and the LAYER parameter for specifing the variable. This way I will be able to build a request for each different dataset (represented by a different mapfile), each different variable (represented by a layer in mapfile) and each day forecast (represented by a single record in the tile shapefile). The request would be something like this: http://localhost/mapserver/global?MAP=/path/to/mapfiles/dataset_20111001.map&LAYERS=myvariable&TIME=2011-10-03&... With Apache URL rewriting I could transform the request, making the reference to the mapfile not evident: http://localhost/mapserver/global/20111001?LAYERS=myvariable&TIME=2011-10-03&... Do you think this could be a correct approach or there is a better way to proceed? Thanks P -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From stephan at meissl.name Thu Feb 23 05:53:49 2012 From: stephan at meissl.name (Stephan =?ISO-8859-1?Q?Mei=DFl?=) Date: Thu, 23 Feb 2012 14:53:49 +0100 Subject: [mapserver-users] Re: WCS server not In-Reply-To: <1329914281496-4494818.post@n6.nabble.com> References: <1329901629.4160.34.camel@io> <1329904663644-4494377.post@n6.nabble.com> <1329906580.4160.81.camel@io> <1329914281496-4494818.post@n6.nabble.com> Message-ID: <1330005229.5986.4.camel@io> On Wed, 2012-02-22 at 04:38 -0800, jorgelopez wrote: > Hello Stephan: > > I am not sure what is happened butt ...... fortunately, magic word DUMP TRUE > has resolved the issue. I don't know exactly the reason but jointly with a > (maybe important) wc_title metadata has solved the problem. > > One final question, but in debug mode, attending to error.log in apache web > server, I have this kind of "error?", ..... > > > > [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GTiff: Opened > 4320x2160 overview. > [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] > [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GTiff: Opened > 2880x1440 overview. > [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] > [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GDAL: > GDALOpen(/home/data/datasets/public/nasa/bluemarble/bluemarble_jpeg_small.tiff, > this=0xb98ad0) succeeds as GTiff. > [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GDAL: > GDALClose(, this=0xb97be0) > [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GDAL: > GDALClose(, this=0xb9c420) > [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GDAL: > GDALClose(/home/data/datasets/public/nasa/bluemarble/bluemarble_jpeg_small.tiff, > this=0xb98ad0) > [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GTiff: Opened > 4320x2160 overview. > [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] > [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GTiff: Opened > 2880x1440 overview. > [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] > [Wed Feb 22 12:56:02 2012] [error] [client 158.109.144.146] GDAL: > GDALOpen(/home/data/datasets/public/nasa/bluemarble/bluemarble_jpeg_small.tiff, > this=0xb97fa0) succeeds as GTiff. > [Wed Feb 22 12:56:03 2012] [error] [client 158.109.144.146] GDAL: > GDALDriver::Create(MEM,msSaveImageGDAL_temp,8640,4320,3,Byte,(nil)) > [Wed Feb 22 12:56:03 2012] [error] [client 158.109.144.146] GDAL: > GDALOpen(GTIFF_RAW:/vsimem/msout/4f44d7d3_b73_0.tif, this=0x9a49060) > succeeds as GTiff. > [Wed Feb 22 12:56:03 2012] [error] [client 158.109.144.146] GDAL: > GDALDatasetCopyWholeRaster(): 8640*385 swaths, bInterleave=1 > [Wed Feb 22 12:56:04 2012] [error] [client 158.109.144.146] GDAL: > GDALClose(msSaveImageGDAL_temp, this=0xb658430) > [Wed Feb 22 12:56:04 2012] [error] [client 158.109.144.146] GDAL: > GDALClose(/vsimem/msout/4f44d7d3_b73_0.tif, this=0x9a49060) > > > but I can make getCapabilities, DescribeCoverage and getCoverage for WCS > 1.0.0 protocol. > > Do you know what does it mean? Could I obtain errors but doing (aparently) > correct requests to mapserver? > > Thanks Stephen > > Jorge > Hi Jorge, glad that WCS is working for you. It seems that you redirect the MapServer debug output to the Apache error log. Don't worry, the messages above are no real error messages and should disappear once you disable debugging. cu Stephan From japr94 at hotmail.com Fri Feb 24 12:41:24 2012 From: japr94 at hotmail.com (juliap) Date: Fri, 24 Feb 2012 12:41:24 -0800 (PST) Subject: [mapserver-users] Re: mssql2008 plugin not working / failed to load dynamic library In-Reply-To: <4F43F98C.7070102@gatewaygeomatics.com> References: <1329852701520-4492672.post@n6.nabble.com> <4F43F297.4050006@gatewaygeomatics.com> <1329854481902-4492760.post@n6.nabble.com> <4F43F98C.7070102@gatewaygeomatics.com> Message-ID: <1330116084749-4504015.post@n6.nabble.com> Thanks for the suggestion, I was able to create a spatial index for the database using ogrinfo. I even exported information from sql server to a shapefile using the ogr2ogr utility. However; I want to be able to get data directly from a query in the mapfile, instead of having to create a shapefile. Right now this doesn't work when I use CONNECTIONTYPE OGR, and the same string that I used to connect for the previous examples. Also, I tried to use the mssql2008 plugin, and I used dependency walker and it seems that most of the required libraries cannot be found ... Do you have any idea of what the problem could be? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/mssql2008-plugin-not-working-failed-to-load-dynamic-library-tp4492672p4504015.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Fri Feb 24 14:34:14 2012 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 24 Feb 2012 23:34:14 +0100 Subject: [mapserver-users] Re: mssql2008 plugin not working / failed to load dynamic library In-Reply-To: <1330116084749-4504015.post@n6.nabble.com> References: <1329852701520-4492672.post@n6.nabble.com> <4F43F297.4050006@gatewaygeomatics.com> <1329854481902-4492760.post@n6.nabble.com> <4F43F98C.7070102@gatewaygeomatics.com> <1330116084749-4504015.post@n6.nabble.com> Message-ID: Julia According to your first letter (and by making sure you use mssql instead of mysql) I think you should modify the mapfile including the correct connection parameters. Regarding to the issue of " the procedure entry point msSmallMalloc could not be located in the dynamic library libmap.dll" this looks like an older version of libmap.dll is used actually, which may not be compatible with the mssql plugin. BTW: With the current approach, connecting to mssql via OGR provides better performance than using the mssql plugin. This is because the plugin forces to convert the geometries to WKB at server side with is less efficient than retrieving the data in the native SqlGeometry/Geography serialization format. Best regards, Tamas 2012/2/24 juliap > Thanks for the suggestion, > > I was able to create a spatial index for the database using ogrinfo. I even > exported information from sql server to a shapefile using the ogr2ogr > utility. > > However; I want to be able to get data directly from a query in the > mapfile, > instead of having to create a shapefile. Right now this doesn't work when I > use CONNECTIONTYPE OGR, and the same string that I used to connect for the > previous examples. > > Also, I tried to use the mssql2008 plugin, and I used dependency walker and > it seems that most of the required libraries cannot be found ... > > Do you have any idea of what the problem could be? > > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/mssql2008-plugin-not-working-failed-to-load-dynamic-library-tp4492672p4504015.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Phil.Anzel at ftc.usda.gov Sun Feb 26 09:44:52 2012 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Sun, 26 Feb 2012 17:44:52 +0000 Subject: [mapserver-users] OGR and MSSQL non-specific error Message-ID: All, I'm a bit confused: does MapServer 6.0.1 and OGR "officially" work with Sql Server 2008? I can see how use of the native SqlGeometry objects might be a bonus and would like to put it to the test. MSSQL access via the plugin works with this LAYER: LAYER NAME 'States' STATUS ON PROJECTION 'proj=latlong' 'ellps=GRS80' 'datum=NAD83' END CONNECTIONTYPE PLUGIN PLUGIN ...\msplugin_mssql2008.dll' CONNECTION 'server=xxx;database=;uid=xxx;pwd=xxx' PROCESSING 'CLOSE_CONNECTION=DEFER' DATA "ShapeGeometry from NAV_STATE as base_table using unique OBJECTID using SRID=4269" TYPE POLYGON CLASS STYLE OUTLINECOLOR '#e1dd00' WIDTH 2 END END END This variant, changed to use OGR, fails: LAYER NAME 'States' STATUS ON PROJECTION 'proj=latlong' 'ellps=GRS80' 'datum=NAD83' END CONNECTIONTYPE OGR CONNECTION 'MSSQL:server=xxx;database=;uid=xxx;pwd=xxx' PROCESSING 'CLOSE_CONNECTION=DEFER' DATA "ShapeGeometry from NAV_STATE as base_table using unique OBJECTID using SRID=4269" TYPE POLYGON CLASS STYLE OUTLINECOLOR '#e1dd00' WIDTH 2 END END END Using shp2img (from MapServer 6.0.1 distribution for Win32/VS2010 retrieved 2011-07-18) with "-all_debug 5" yields: msOGRFileOpen(): OGR error. GetLayer(ShapeGeometry from NAV_STATE as base_table using unique OBJECTID using SRID=4269) failed for OGR connection `MSSQL:server=xxx;database=xxx;uid=xxx;pwd=xxx'. There is no further detail as to the failure. By way of reference, 1. In mapserver-users Digest, Vol 49, Issue 58, Tamas Szekeres states "BTW: With the current approach, connecting to mssql via OGR provides better performance than using the mssql plugin." 2. Tamas also indicates that OGR can talk to MSSQL in "[gdal-dev] OGR MS SQL Spatial driver has been added", http://www.osgeo.org/pipermail/gdal-dev/2010-September/026055.html. 3. MapServer documentation at http://mapserver.org/input/vector/ogr.html does not list MSSQL as a data provider. 4. MapServer documentation at http://mapserver.org/input/vector/mssql.html still shows use of the msplugin_mssql2008.dll plugin. I must also wonder: has a measurable improvement been demonstrated by eliminating the plugin and going to the direct OGR to MSSQL connection? Yours in confusion, - Phil Anzel Contractor for USDA/NRCS ITC Web Soil Survey Team Member This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. From szekerest at gmail.com Sun Feb 26 11:25:03 2012 From: szekerest at gmail.com (Tamas Szekeres) Date: Sun, 26 Feb 2012 20:25:03 +0100 Subject: [mapserver-users] OGR and MSSQL non-specific error In-Reply-To: References: Message-ID: Phil, You should not specify the data section in the OGR layer definition unless you would define and sql select statement preceding with the 'where' keyword. The terms 'using unique' and 'using srid' are not meaningful for the ogr driver these parameters are automatically retrieved from the geometry_columns metadata table. You should however specify the table name (and probably the geometry column name) in the connection string, something like: CONNECTION ' MSSQL:server=xxx;database=;uid=xxx;pwd=xxx;tables=NAV_STATE' or CONNECTION ' MSSQL:server=xxx;database=;uid=xxx;pwd=xxx;tables=NAV_STATE(ShapeGeometry)' The difference in performance may be investigated by reading large number of shapes at a given scale. I'm also planning to improve the mapserver mssql plugin to read native SqlGeometries, but I'm now working on a QGIS mssql driver right now. Best regards, Tamas 2012/2/26 Anzel, Phil - NRCS, Fort Collins, CO > All, > > I'm a bit confused: does MapServer 6.0.1 and OGR "officially" work with > Sql Server 2008? I can see how use of the native SqlGeometry objects might > be a bonus and would like to put it to the test. > > MSSQL access via the plugin works with this LAYER: > LAYER > NAME 'States' STATUS ON > PROJECTION 'proj=latlong' 'ellps=GRS80' 'datum=NAD83' END > CONNECTIONTYPE PLUGIN > PLUGIN ...\msplugin_mssql2008.dll' > CONNECTION 'server=xxx;database=;uid=xxx;pwd=xxx' > PROCESSING 'CLOSE_CONNECTION=DEFER' > DATA "ShapeGeometry from NAV_STATE as base_table using unique OBJECTID > using SRID=4269" > TYPE POLYGON > CLASS STYLE OUTLINECOLOR '#e1dd00' WIDTH 2 END END > END > > This variant, changed to use OGR, fails: > LAYER > NAME 'States' STATUS ON > PROJECTION 'proj=latlong' 'ellps=GRS80' 'datum=NAD83' END > CONNECTIONTYPE OGR > CONNECTION 'MSSQL:server=xxx;database=;uid=xxx;pwd=xxx' > PROCESSING 'CLOSE_CONNECTION=DEFER' > DATA "ShapeGeometry from NAV_STATE as base_table using unique OBJECTID > using SRID=4269" > TYPE POLYGON > CLASS STYLE OUTLINECOLOR '#e1dd00' WIDTH 2 END END > END > > Using shp2img (from MapServer 6.0.1 distribution for Win32/VS2010 > retrieved 2011-07-18) with "-all_debug 5" yields: > msOGRFileOpen(): OGR error. > GetLayer(ShapeGeometry from NAV_STATE as base_table using unique OBJECTID > using SRID=4269) > failed for OGR connection `MSSQL:server=xxx;database=xxx;uid=xxx;pwd=xxx'. > There is no further detail as to the failure. > > By way of reference, > 1. In mapserver-users Digest, Vol 49, Issue 58, Tamas Szekeres states > "BTW: With the current approach, connecting to mssql via OGR provides > better performance than using the mssql plugin." > 2. Tamas also indicates that OGR can talk to MSSQL in "[gdal-dev] OGR MS > SQL Spatial driver has been added", > http://www.osgeo.org/pipermail/gdal-dev/2010-September/026055.html. > 3. MapServer documentation at http://mapserver.org/input/vector/ogr.htmldoes not list MSSQL as a data provider. > 4. MapServer documentation at http://mapserver.org/input/vector/mssql.htmlstill shows use of the msplugin_mssql2008.dll plugin. > > I must also wonder: has a measurable improvement been demonstrated by > eliminating the plugin and going to the direct OGR to MSSQL connection? > > Yours in confusion, > > - Phil Anzel > Contractor for USDA/NRCS > ITC Web Soil Survey Team Member > > This electronic message contains information generated by the USDA solely > for the intended recipients. Any unauthorized interception of this message > or the use or disclosure of the information it contains may violate the law > and subject the violator to civil or criminal penalties. If you believe you > have received this message in error, please notify the sender and delete > the email immediately. > > _______________________________________________ > 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 Sun Feb 26 14:36:25 2012 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Sun, 26 Feb 2012 22:36:25 +0000 Subject: [mapserver-users] OGR and MSSQL non-specific error In-Reply-To: References: Message-ID: Hi, Tamas, Thanks for getting back to me so quickly. It works (with a pair of follow-up questions)! Here?s what I used: CONNECTIONTYPE OGR CONNECTION 'MSSQL:server=xxx;database=Navigation;uid=yyy;pwd=zzz? PROCESSING 'CLOSE_CONNECTION=DEFER' DATA "select ShapeGeometry, State_Abbr from NAV_STATE where ShapeGeometry.STIntersects( geometry::STGeomFromText( 'POLYGON((-126 22.2048396890436, -66 22.2048396890436, -66 51.1696997878088, -126 51.1696997878088, -126 22.2048396890436))',4269)) = 1" LABELITEM 'State_Abbr' 1. Note that I omitted the ?tables=?? as it appears that naming a specific table would interfere with connection pooling if I?m using many layers drawing data from different tables. Do I understand the role of the ?tables=?? incorrectly? 2. I added the explicit spatial filtering (STIntersects?). Is there a better way to do this? Thanks again, - Phil From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Sunday, February 26, 2012 12:25 PM To: Anzel, Phil - NRCS, Fort Collins, CO Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] OGR and MSSQL non-specific error Phil, You should not specify the data section in the OGR layer definition unless you would define and sql select statement preceding with the 'where' keyword. The terms 'using unique' and 'using srid' are not meaningful for the ogr driver these parameters are automatically retrieved from the geometry_columns metadata table. You should however specify the table name (and probably the geometry column name) in the connection string, something like: CONNECTION ' MSSQL:server=xxx;database=;uid=xxx;pwd=xxx;tables=NAV_STATE' or CONNECTION ' MSSQL:server=xxx;database=;uid=xxx;pwd=xxx;tables=NAV_STATE(ShapeGeometry)' The difference in performance may be investigated by reading large number of shapes at a given scale. I'm also planning to improve the mapserver mssql plugin to read native SqlGeometries, but I'm now working on a QGIS mssql driver right now. Best regards, Tamas 2012/2/26 Anzel, Phil - NRCS, Fort Collins, CO > All, I'm a bit confused: does MapServer 6.0.1 and OGR "officially" work with Sql Server 2008? I can see how use of the native SqlGeometry objects might be a bonus and would like to put it to the test. MSSQL access via the plugin works with this LAYER: LAYER NAME 'States' STATUS ON PROJECTION 'proj=latlong' 'ellps=GRS80' 'datum=NAD83' END CONNECTIONTYPE PLUGIN PLUGIN ...\msplugin_mssql2008.dll' CONNECTION 'server=xxx;database=;uid=xxx;pwd=xxx' PROCESSING 'CLOSE_CONNECTION=DEFER' DATA "ShapeGeometry from NAV_STATE as base_table using unique OBJECTID using SRID=4269" TYPE POLYGON CLASS STYLE OUTLINECOLOR '#e1dd00' WIDTH 2 END END END This variant, changed to use OGR, fails: LAYER NAME 'States' STATUS ON PROJECTION 'proj=latlong' 'ellps=GRS80' 'datum=NAD83' END CONNECTIONTYPE OGR CONNECTION 'MSSQL:server=xxx;database=;uid=xxx;pwd=xxx' PROCESSING 'CLOSE_CONNECTION=DEFER' DATA "ShapeGeometry from NAV_STATE as base_table using unique OBJECTID using SRID=4269" TYPE POLYGON CLASS STYLE OUTLINECOLOR '#e1dd00' WIDTH 2 END END END Using shp2img (from MapServer 6.0.1 distribution for Win32/VS2010 retrieved 2011-07-18) with "-all_debug 5" yields: msOGRFileOpen(): OGR error. GetLayer(ShapeGeometry from NAV_STATE as base_table using unique OBJECTID using SRID=4269) failed for OGR connection `MSSQL:server=xxx;database=xxx;uid=xxx;pwd=xxx'. There is no further detail as to the failure. By way of reference, 1. In mapserver-users Digest, Vol 49, Issue 58, Tamas Szekeres states "BTW: With the current approach, connecting to mssql via OGR provides better performance than using the mssql plugin." 2. Tamas also indicates that OGR can talk to MSSQL in "[gdal-dev] OGR MS SQL Spatial driver has been added", http://www.osgeo.org/pipermail/gdal-dev/2010-September/026055.html. 3. MapServer documentation at http://mapserver.org/input/vector/ogr.html does not list MSSQL as a data provider. 4. MapServer documentation at http://mapserver.org/input/vector/mssql.html still shows use of the msplugin_mssql2008.dll plugin. I must also wonder: has a measurable improvement been demonstrated by eliminating the plugin and going to the direct OGR to MSSQL connection? Yours in confusion, - Phil Anzel Contractor for USDA/NRCS ITC Web Soil Survey Team Member This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. _______________________________________________ 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 ian.walberg at airborne.aero Sun Feb 26 19:39:49 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Sun, 26 Feb 2012 22:39:49 -0500 Subject: [mapserver-users] UTF-8 right to left text Message-ID: Hello lists, We cannot get all our Arabic text labels to display correctly, it appears that the incorrectly rendered text is not being drawn right to left. Some work and others do not. Our assumption is that there are some non displaying codes we are missing but we do not know enough yet to work out if this is the case. The data is in an sqlite database using an OGR connection. Any ideas or experience that you can share would be fabulous. Thanks Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sun Feb 26 20:51:47 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 26 Feb 2012 23:51:47 -0500 Subject: [mapserver-users] UTF-8 right to left text In-Reply-To: References: Message-ID: <4F4B0BE3.70702@swoodbridge.com> On 2/26/2012 10:39 PM, Ian Walberg wrote: > Hello lists, > > We cannot get all our Arabic text labels to display correctly, it > appears that the incorrectly rendered text is not being drawn right to > left. Some work and others do not. > > Our assumption is that there are some non displaying codes we are > missing but we do not know enough yet to work out if this is the case. > > The data is in an sqlite database using an OGR connection. > > Any ideas or experience that you can share would be fabulous. Ian, You need the follow pieces to get this to work: 1. make sure you have built mapserver with fribidi-0.19.2 2. you need a ttf that supports the character set you are using - I always make sure my data is in UTF8 - and I have a unicode arial.ttf font from Windows 3. make sure your LABEL block has ENCODING "UTF8" in it - assuming your data is in UTF8 On Linux you can do: $ dbfdump myshapefile.dbf > aaa $ file aaa and it will tell you what the encoding is. Issues that I have run into are: 1. data with mixed utf8 and other encodings like Window-1256 or ISO-8859-6 2. In UTF8 data there are a lot of glyphs that are connecting characters or non printing characters and many fonts do not have glyphs defined for these characters which typically causes a square box to be displayed. -Steve W From ian.walberg at airborne.aero Sun Feb 26 21:03:56 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 27 Feb 2012 00:03:56 -0500 Subject: [mapserver-users] UTF-8 right to left text Message-ID: Steve, Many thanks for getting back to me. We have built with that version of fridibi and do get some text labels displaying correctly. The source data is from an excel spread sheet which we export to CSV and import into the SQLite DB. The plan tomorrow is to find a couple of good and bad labels and follow these through to see if we can find where there are differences, I looked last week at the hex codes for a good and bad name but did not come to any clear confusion. Does fribidi need RTL code to display the text correctly? Do you know how to decode that from the hex? Regards Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Sunday, February 26, 2012 8:52 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] UTF-8 right to left text On 2/26/2012 10:39 PM, Ian Walberg wrote: > Hello lists, > > We cannot get all our Arabic text labels to display correctly, it > appears that the incorrectly rendered text is not being drawn right to > left. Some work and others do not. > > Our assumption is that there are some non displaying codes we are > missing but we do not know enough yet to work out if this is the case. > > The data is in an sqlite database using an OGR connection. > > Any ideas or experience that you can share would be fabulous. Ian, You need the follow pieces to get this to work: 1. make sure you have built mapserver with fribidi-0.19.2 2. you need a ttf that supports the character set you are using - I always make sure my data is in UTF8 - and I have a unicode arial.ttf font from Windows 3. make sure your LABEL block has ENCODING "UTF8" in it - assuming your data is in UTF8 On Linux you can do: $ dbfdump myshapefile.dbf > aaa $ file aaa and it will tell you what the encoding is. Issues that I have run into are: 1. data with mixed utf8 and other encodings like Window-1256 or ISO-8859-6 2. In UTF8 data there are a lot of glyphs that are connecting characters or non printing characters and many fonts do not have glyphs defined for these characters which typically causes a square box to be displayed. -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Sun Feb 26 21:11:39 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 27 Feb 2012 05:11:39 +0000 Subject: [mapserver-users] UTF-8 right to left text In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A63081BDE@suutari.haapa.mmm.fi> Hi, Did you know that the fresh Spatialite-gui (v. 3.0.1) can import data directly from Excel? -Jukka Rahkonen- ________________________________________ Ian Walberg wrote: > Steve, > Many thanks for getting back to me. > We have built with that version of fridibi and do get some text labels displaying correctly. > The source data is from an excel spread sheet which we export to CSV and import into the SQLite DB. > The plan tomorrow is to find a couple of good and bad labels and follow these through to see if we can find where there are differences, I looked last week at the hex codes for a good and bad name but did not come to any clear confusion. > Does fribidi need RTL code to display the text correctly? Do you know how to decode that from the hex? > Regards Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Sunday, February 26, 2012 8:52 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] UTF-8 right to left text On 2/26/2012 10:39 PM, Ian Walberg wrote: > Hello lists, > > We cannot get all our Arabic text labels to display correctly, it > appears that the incorrectly rendered text is not being drawn right to > left. Some work and others do not. > > Our assumption is that there are some non displaying codes we are > missing but we do not know enough yet to work out if this is the case. > > The data is in an sqlite database using an OGR connection. > > Any ideas or experience that you can share would be fabulous. Ian, You need the follow pieces to get this to work: 1. make sure you have built mapserver with fribidi-0.19.2 2. you need a ttf that supports the character set you are using - I always make sure my data is in UTF8 - and I have a unicode arial.ttf font from Windows 3. make sure your LABEL block has ENCODING "UTF8" in it - assuming your data is in UTF8 On Linux you can do: $ dbfdump myshapefile.dbf > aaa $ file aaa and it will tell you what the encoding is. Issues that I have run into are: 1. data with mixed utf8 and other encodings like Window-1256 or ISO-8859-6 2. In UTF8 data there are a lot of glyphs that are connecting characters or non printing characters and many fonts do not have glyphs defined for these characters which typically causes a square box to be displayed. -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 ian.walberg at airborne.aero Sun Feb 26 21:20:07 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 27 Feb 2012 00:20:07 -0500 Subject: [mapserver-users] UTF-8 right to left text In-Reply-To: <84446DEF76453C439E9E97E438E13A63081BDE@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63081BDE@suutari.haapa.mmm.fi> Message-ID: Jukka, I had seen that and we are hoping to test it this week. Regards Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Sunday, February 26, 2012 9:12 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] UTF-8 right to left text Hi, Did you know that the fresh Spatialite-gui (v. 3.0.1) can import data directly from Excel? -Jukka Rahkonen- ________________________________________ Ian Walberg wrote: > Steve, > Many thanks for getting back to me. > We have built with that version of fridibi and do get some text labels displaying correctly. > The source data is from an excel spread sheet which we export to CSV > and import into the SQLite DB. > The plan tomorrow is to find a couple of good and bad labels and > follow these through to see if we can find where there are differences, I looked last week at the hex codes for a good and bad name but did not come to any clear confusion. > Does fribidi need RTL code to display the text correctly? Do you know how to decode that from the hex? > Regards Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Sunday, February 26, 2012 8:52 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] UTF-8 right to left text On 2/26/2012 10:39 PM, Ian Walberg wrote: > Hello lists, > > We cannot get all our Arabic text labels to display correctly, it > appears that the incorrectly rendered text is not being drawn right to > left. Some work and others do not. > > Our assumption is that there are some non displaying codes we are > missing but we do not know enough yet to work out if this is the case. > > The data is in an sqlite database using an OGR connection. > > Any ideas or experience that you can share would be fabulous. Ian, You need the follow pieces to get this to work: 1. make sure you have built mapserver with fribidi-0.19.2 2. you need a ttf that supports the character set you are using - I always make sure my data is in UTF8 - and I have a unicode arial.ttf font from Windows 3. make sure your LABEL block has ENCODING "UTF8" in it - assuming your data is in UTF8 On Linux you can do: $ dbfdump myshapefile.dbf > aaa $ file aaa and it will tell you what the encoding is. Issues that I have run into are: 1. data with mixed utf8 and other encodings like Window-1256 or ISO-8859-6 2. In UTF8 data there are a lot of glyphs that are connecting characters or non printing characters and many fonts do not have glyphs defined for these characters which typically causes a square box to be displayed. -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 woodbri at swoodbridge.com Mon Feb 27 05:01:46 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 27 Feb 2012 08:01:46 -0500 Subject: [mapserver-users] UTF-8 right to left text In-Reply-To: References: Message-ID: <4F4B7EBA.10504@swoodbridge.com> On 2/27/2012 12:03 AM, Ian Walberg wrote: > Steve, > > Many thanks for getting back to me. > > We have built with that version of fridibi and do get some text labels > displaying correctly. > > The source data is from an excel spread sheet which we export to CSV and > import into the SQLite DB. In general, I believe that Excel uses UTF-16 or UTF-32 or UNICODE (can't remember witch), but if you move the csv file to Linux and do a "file myfile.csv" it will tell you. You can then use iconv to convert the file to UTF8. Alternatively, you might be able to specify the on the LABEL ENCODING "UTF16" or whatever it is. I am not sure how SQLite handles character encoding or if it does more than just store the data you import with or with changing the encoding. > The plan tomorrow is to find a couple of good and bad labels and follow > these through to see if we can find where there are differences, I > looked last week at the hex codes for a good and bad name but did not > come to any clear confusion. > > Does fribidi need RTL code to display the text correctly? Do you know > how to decode that from the hex? fribidi just knows how to order the RTL or LTR data. If you mix arabic and english in the same string, it will display them both correctly. Regards, -Steve > Regards > > Ian > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Sunday, February 26, 2012 8:52 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] UTF-8 right to left text > > On 2/26/2012 10:39 PM, Ian Walberg wrote: >> Hello lists, >> >> We cannot get all our Arabic text labels to display correctly, it >> appears that the incorrectly rendered text is not being drawn right to > >> left. Some work and others do not. >> >> Our assumption is that there are some non displaying codes we are >> missing but we do not know enough yet to work out if this is the case. >> >> The data is in an sqlite database using an OGR connection. >> >> Any ideas or experience that you can share would be fabulous. > > Ian, > > You need the follow pieces to get this to work: > > 1. make sure you have built mapserver with fribidi-0.19.2 2. you need a > ttf that supports the character set you are using > - I always make sure my data is in UTF8 > - and I have a unicode arial.ttf font from Windows 3. make sure your > LABEL block has ENCODING "UTF8" in it > - assuming your data is in UTF8 > > On Linux you can do: > $ dbfdump myshapefile.dbf> aaa > $ file aaa > > and it will tell you what the encoding is. > > Issues that I have run into are: > > 1. data with mixed utf8 and other encodings like Window-1256 or > ISO-8859-6 2. In UTF8 data there are a lot of glyphs that are connecting > characters or non printing characters and many fonts do not have glyphs > defined for these characters which typically causes a square box to be > displayed. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pramsey at cleverelephant.ca Mon Feb 27 09:18:53 2012 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 27 Feb 2012 09:18:53 -0800 Subject: [mapserver-users] FOSS4G North America Call for Presentations Closes March 1 Message-ID: FOSS4G-NA (April 10-12, in Washington DC) is shaping up to be very successful: nearly half of our 400 registration slots are already filled, and lots of sponsors have signed on. Now it's up to you to bring the magic! If you are planning to speak at FOSS4G-NA, you must submit a presentation abstract by March 1. Please don't forget! http://foss4g-na.org/abstract-submission/ The conference program is being organized around three tracks: * open source technology best practices and tips; * deployment case studies; and * emerging ideas and trends in open source. We have space for about 50 presentations and 20 Ignite sessions, so get your submissions in! For more information, please visit our site at http://foss4g-na.org/. Space is limited to 300 attendees only, so you should sign up today to ensure that you can be a part of this exciting event! Related Links: * http://foss4g-na.org/registration/ FOSS4G-NA Registration * http://wiki.osgeo.org/wiki/North_America_Regional/ OSGeo North America Chapter * http://www.osgeo.org/ Open Source Geospatial Foundation * http://2012.foss4g.org/ FOSS4G 2012 - Beijing, China From web at infogeo.ch Mon Feb 27 13:12:52 2012 From: web at infogeo.ch (web) Date: Mon, 27 Feb 2012 22:12:52 +0100 Subject: [mapserver-users] test Message-ID: <1330377172-fc05ac545432a124945c827cfaf517e4@infogeo.ch> test -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Mon Feb 27 13:58:41 2012 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 27 Feb 2012 22:58:41 +0100 Subject: [mapserver-users] OGR and MSSQL non-specific error In-Reply-To: References: Message-ID: 2012/2/26 Anzel, Phil - NRCS, Fort Collins, CO > > 1. Note that I omitted the ?tables=?? as it appears that naming a specific > table would interfere with connection pooling if I?m using many layers > drawing data from different tables. Do I understand the role of the > ?tables=?? incorrectly?**** > > ** > Yes, it may be considered as being a different connection if the tables section is used. > ** > > 2. I added the explicit spatial filtering (STIntersects?). Is there a > better way to do this?**** > > ** > It seems to be a bit complicated this way. I think you should try simply setting the layer name in the DATA section. In this case the spatial filter is added automatically by the MapServer OGR driver. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From K.Hirst at bom.gov.au Mon Feb 27 20:29:24 2012 From: K.Hirst at bom.gov.au (Kathleen Hirst) Date: Tue, 28 Feb 2012 15:29:24 +1100 Subject: [mapserver-users] WMS for netcdf [SEC=UNCLASSIFIED] Message-ID: Dear List, I have a NetCDF file with contains over 150 timesteps. I can create a WMS for each timestep using PROCESSING "BANDS=1", which means I have to define over 150 layers. I was hoping to only define the layer once and pass a variable for the time or the band number. Does anyone have any ideas? Thanks Kathleen -------------- next part -------------- An HTML attachment was scrubbed... URL: From bteluk at gmail.com Mon Feb 27 22:01:41 2012 From: bteluk at gmail.com (bteluk at gmail.com) Date: Mon, 27 Feb 2012 22:01:41 -0800 (PST) Subject: [mapserver-users] Oracle Locator support Message-ID: <1330408901636-4519962.post@n6.nabble.com> Hi, I'm trying to find out if Oracle Locator can be used as an effective Spatial Database for MapServer. I haven't been able to find a list of what is and isn't supported for this combination. We've been using PostgreSQL/PostGIS as our spatial database and are wondering whether a shift to Oracle Locator is viable, or whether we'd need to go to Oracle Spatial. The kinds of things we're doing are: - building OpenLayers applications with a high level of user functionality eg. multiple layers, point and polygon queries, user drawn/edited features (for writing to the database) - providing WMS services (eg. street maps) - providing WFS services (with filtering) - custom services eg. nearest feature to a point, queries on buffered features, etc. Thanks, Bill Teluk -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Oracle-Locator-support-tp4519962p4519962.html Sent from the Mapserver - User mailing list archive at Nabble.com. From micklesh at gmail.com Mon Feb 27 22:44:39 2012 From: micklesh at gmail.com (Michael Shishcu) Date: Tue, 28 Feb 2012 08:44:39 +0200 Subject: [mapserver-users] Oracle Locator support In-Reply-To: <1330408901636-4519962.post@n6.nabble.com> References: <1330408901636-4519962.post@n6.nabble.com> Message-ID: Hi Bill, Here ( http://www.spatialdbadvisor.com/oracle_spatial_tips_tricks/55/oracle-locator-vs-enterprise-licensing-the-sdogeom-package) You can find differences between Spatial and locator. That was posted in 2007 - anyway, in general, that is true. There also had been changes in 11g (R1 or R2 - do not remember exactly) that added a number of features into locator from spatial. Less words, you can easily use locator for wms/wfs services etc, with restriction to several analytic packages/functions. One more thing to mention. Every feature that is available in spatial is also accessible in locator (afair true for Oracle Enterprise and Standard editions, not sure with XE). The only difference is licensing. So you can develop your application, write down all the functions you used and decide does that list fit into locator or not. If not - you go into spatial or change your code. regards, michael On Tue, Feb 28, 2012 at 8:01 AM, bteluk at gmail.com wrote: > Hi, > I'm trying to find out if Oracle Locator can be used as an effective > Spatial > Database for MapServer. I haven't been able to find a list of what is and > isn't supported for this combination. We've been using PostgreSQL/PostGIS > as our spatial database and are wondering whether a shift to Oracle Locator > is viable, or whether we'd need to go to Oracle Spatial. The kinds of > things we're doing are: > - building OpenLayers applications with a high level of user functionality > eg. multiple layers, point and polygon queries, user drawn/edited features > (for writing to the database) > - providing WMS services (eg. street maps) > - providing WFS services (with filtering) > - custom services eg. nearest feature to a point, queries on buffered > features, etc. > Thanks, Bill Teluk > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/Oracle-Locator-support-tp4519962p4519962.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jorgelopez.physics at gmail.com Tue Feb 28 00:44:25 2012 From: jorgelopez.physics at gmail.com (jorgelopez) Date: Tue, 28 Feb 2012 00:44:25 -0800 (PST) Subject: [mapserver-users] mapserver palette color Message-ID: <1330418665208-4520887.post@n6.nabble.com> Hello everyone: I am trying to serve tiff images with mapserver by using mapserver v.5.6.5 with WCS implemented protocol v.1.0.0. All is fine in the sense that three-band raster are served correctly with a WCS client (RGB composite renderer with ArcMap, for instance). BUT if I want to display a single band raster with a palette color describing some (discrete) categories, for instance, a thematic raster layer (Corine -- Use and Land covers), the connection to WCS server by using WCS client is fine, but the image is served like a continuos band range instead a discrete colors as corresponding to color table. So my WCS client is not detecting inherent properties in the raster data. So, at this point I have some doubts: *my mapfile is not well defined *the protocol does not support this and is not suited to serve discrete (unique) values *I am ignorant about how is rendered images with Mapserver Maybe third part is the correct statement. As far as I know built-in libs and GDAL is responsible for rendering raster in Mapsserver. My CGI bin is compiled with GDAL support, so raster will be managed by it; gdalinfo gives me information about raster layer (land cover) showing a color table with a single band and 255 entries (only 13 categories with different colours). Questions that throw some light for me because I have not found clear directions in docs. I dont know if I have to specify CLASS definition for pixels that indicates classification of pixels in raster (like in ref http://mapserver.org/input/raster.html#how-are-rasters-added-to-a-map-file) could be tedious and I didn?t get it. - I have defined OUTPUTFORMAT object in my mapfile like this: OUTPUTFORMAT NAME 'GEOTIFF' DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" # IMAGEMODE 'INT16' # IMAGEMODE 'PC256' IMAGEMODE 'BYTE' EXTENSION 'tif' END #end BANDS but by using IMAGEMODE 'BYTE' it is rendered like a single-band image with a greyscale (continuous but not discrete). In docs (http://mapserver.org/ogc/wcs_format.html) I have read that IMAGEMODE 'PC256' is needed to serve images with a color table and one single band. - I ignore PROCESSING directive. I dont know if a I should to indicate that how to partitioning band like this PROCESSING "SCALE=0,255" PROCESSING "SCALE_BUCKETS=XXX" to obtain a color table as raster definition. - 'wcs_band_count' '1' 'wcs_nativeformat' '8-bit GeoTIF' Does anyone know how to indicate mapserver to serve raster as 'raw data' ? Some trends how to do it and getting out with this are wellcome. Jorge -- View this message in context: http://osgeo-org.1560.n6.nabble.com/mapserver-palette-color-tp4520887p4520887.html Sent from the Mapserver - User mailing list archive at Nabble.com. From luis.a.de.sousa at gmail.com Tue Feb 28 03:07:35 2012 From: luis.a.de.sousa at gmail.com (=?ISO-8859-1?Q?Lu=EDs_de_Sousa?=) Date: Tue, 28 Feb 2012 12:07:35 +0100 Subject: [mapserver-users] WMS request not enabled Message-ID: Dear all, Below goes a map file generated by PyWPS. This file is returning the following error on a GetCapabilities request: msWMSGetCapabilities(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings. There is a good deal of information on this list about this error, because when MapServer 6.0 was introduced many people didn't have the ows_enable_request parameter set. But PyWPS is correctly setting this parameter, so there's no apparent reason for this error to come up. What else can be causing this? Anything I can do to provide more information? Thank you and regards, Lu?s ######################################################### MAP CONFIG "MS_ERRORFILE" "stderr" DEBUG 5 EXTENT -180 -90 180 90 IMAGETYPE "png" NAME "buffer-5989-tmpodARQz" SIZE -1 -1 STATUS ON UNITS METERS OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT FALSE END # OUTPUTFORMAT PROJECTION "init=epsg:4326" END # PROJECTION LEGEND KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL STATUS OFF END # LEGEND QUERYMAP SIZE -1 -1 STATUS OFF STYLE HILITE END # QUERYMAP SCALEBAR IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE MEDIUM OFFSET 0 0 SHADOWSIZE 1 1 TYPE BITMAP END # LABEL SIZE 200 3 STATUS OFF UNITS MILES END # SCALEBAR WEB METADATA "wcs_label" "Buffer process using OGR" "wms_onlineresource" "http://localhost/cgi-bin/mapserv?map=/var/www/wps/wpsoutputs/pywps-0d1bce24-5d36-11e1-99d2-0021cc5dbe3e.map" "ows_country" "eu" "ows_keywordlist" "GRASS,GIS,WPS" "wms_abstract" "See http://pywps.wald.intevation.org and http://www.opengeospatial.org/standards/wps" "ows_city" "City" "ows_contactperson" "Your Name" "ows_contactposition" "Your Position" "ows_role" "Your role" "ows_enable_request" "*" "ows_contactorganization" "Your Company Name" "ows_accessconstraints" "none" "ows_title" "PyWPS Server" "ows_fees" "None" "wcs_abstract" "See http://pywps.wald.intevation.org and http://www.opengeospatial.org/standards/wps" "ows_contactelectronicmailaddress" "login at server.org" "wfs_abstract" "See http://pywps.wald.intevation.org and http://www.opengeospatial.org/standards/wps" "ows_address" "Street" "ows_postcode" "000 00" END # METADATA END # WEB END # MAP From Jukka.Rahkonen at mmmtike.fi Tue Feb 28 03:32:35 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 28 Feb 2012 11:32:35 +0000 Subject: [mapserver-users] WMS request not enabled In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A63081F1B@suutari.haapa.mmm.fi> Hi, There is nothing wrong in your mapfile, only that you do not have any layers in it. I could repeat the behaviour by removing all the layers from my working mapfiles. The error message in misleading. I do not know what message there should be if there are no layers in the service but it is otherwise OK. However, something tells me that this might have corrected in a trunk already. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Lu?s de Sousa > L?hetetty: 28. helmikuuta 2012 13:08 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] WMS request not enabled > > Dear all, > > Below goes a map file generated by PyWPS. This file is returning the > following error on a GetCapabilities request: > > msWMSGetCapabilities(): WMS server error. WMS request not enabled. > Check wms/ows_enable_request settings. > > There is a good deal of information on this list about this error, > because when MapServer 6.0 was introduced many people didn't have the > ows_enable_request parameter set. But PyWPS is correctly setting this > parameter, so there's no apparent reason for this error to come up. > > What else can be causing this? Anything I can do to provide > more information? > > Thank you and regards, > > Lu?s > > ######################################################### > > MAP > CONFIG "MS_ERRORFILE" "stderr" > DEBUG 5 > EXTENT -180 -90 180 90 > IMAGETYPE "png" > NAME "buffer-5989-tmpodARQz" > SIZE -1 -1 > STATUS ON > UNITS METERS > > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "AGG/PNG" > EXTENSION "png" > IMAGEMODE RGB > TRANSPARENT FALSE > END # OUTPUTFORMAT > > PROJECTION > "init=epsg:4326" > END # PROJECTION > LEGEND > KEYSIZE 20 10 > KEYSPACING 5 5 > LABEL > SIZE MEDIUM > OFFSET 0 0 > SHADOWSIZE 1 1 > TYPE BITMAP > END # LABEL > STATUS OFF > END # LEGEND > > QUERYMAP > SIZE -1 -1 > STATUS OFF > STYLE HILITE > END # QUERYMAP > > SCALEBAR > IMAGECOLOR 255 255 255 > INTERVALS 4 > LABEL > SIZE MEDIUM > OFFSET 0 0 > SHADOWSIZE 1 1 > TYPE BITMAP > END # LABEL > SIZE 200 3 > STATUS OFF > UNITS MILES > END # SCALEBAR > > WEB > METADATA > "wcs_label" "Buffer process using OGR" > "wms_onlineresource" > "http://localhost/cgi-bin/mapserv?map=/var/www/wps/wpsoutputs/ pywps-0d1bce24-5d36-11e1-99d2-0021cc5dbe3e.map" > "ows_country" "eu" > "ows_keywordlist" "GRASS,GIS,WPS" > "wms_abstract" "See http://pywps.wald.intevation.org and > http://www.opengeospatial.org/standards/wps" > "ows_city" "City" > "ows_contactperson" "Your Name" > "ows_contactposition" "Your Position" > "ows_role" "Your role" > "ows_enable_request" "*" > "ows_contactorganization" "Your Company Name" > "ows_accessconstraints" "none" > "ows_title" "PyWPS Server" > "ows_fees" "None" > "wcs_abstract" "See http://pywps.wald.intevation.org and > http://www.opengeospatial.org/standards/wps" > "ows_contactelectronicmailaddress" "login at server.org" > "wfs_abstract" "See http://pywps.wald.intevation.org and > http://www.opengeospatial.org/standards/wps" > "ows_address" "Street" > "ows_postcode" "000 00" > END # METADATA > END # WEB > > END # MAP > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From luis.a.de.sousa at gmail.com Tue Feb 28 05:52:06 2012 From: luis.a.de.sousa at gmail.com (=?ISO-8859-1?Q?Lu=EDs_de_Sousa?=) Date: Tue, 28 Feb 2012 14:52:06 +0100 Subject: [mapserver-users] WMS request not enabled In-Reply-To: <84446DEF76453C439E9E97E438E13A63081F1B@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63081F1B@suutari.haapa.mmm.fi> Message-ID: Thank you Jukka. In fact PyWPS is raising some exceptions when invoking mapscript. I'll upgrade to the trunk right away. Regards, Lu?s On 28 February 2012 12:32, Rahkonen Jukka wrote: > Hi, > > There is nothing wrong in your mapfile, only that you do not have any layers in it. I could repeat the behaviour by removing all the layers from my working mapfiles. > > The error message in misleading. ?I do not know what message there should be if there are no layers in the service but it is otherwise OK. However, something tells me that this might have corrected in a trunk already. > > -Jukka Rahkonen- > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta >> Lu?s de Sousa >> L?hetetty: 28. helmikuuta 2012 13:08 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] WMS request not enabled >> >> Dear all, >> >> Below goes a map file generated by PyWPS. This file is returning the >> following error on a GetCapabilities request: >> >> msWMSGetCapabilities(): WMS server error. WMS request not enabled. >> Check wms/ows_enable_request settings. >> >> There is a good deal of information on this list about this error, >> because when MapServer 6.0 was introduced many people didn't have the >> ows_enable_request parameter set. But PyWPS is correctly setting this >> parameter, so there's no apparent reason for this error to come up. >> >> What else can be causing this? Anything I can do to provide >> more information? >> >> Thank you and regards, >> >> Lu?s >> >> ######################################################### >> >> MAP >> ? CONFIG "MS_ERRORFILE" "stderr" >> ? DEBUG 5 >> ? EXTENT -180 -90 180 90 >> ? IMAGETYPE "png" >> ? NAME "buffer-5989-tmpodARQz" >> ? SIZE -1 -1 >> ? STATUS ON >> ? UNITS METERS >> >> ? OUTPUTFORMAT >> ? ? NAME "png" >> ? ? MIMETYPE "image/png" >> ? ? DRIVER "AGG/PNG" >> ? ? EXTENSION "png" >> ? ? IMAGEMODE RGB >> ? ? TRANSPARENT FALSE >> ? END # OUTPUTFORMAT >> >> ? PROJECTION >> ? ? "init=epsg:4326" >> ? END # PROJECTION >> ? LEGEND >> ? ? KEYSIZE 20 10 >> ? ? KEYSPACING 5 5 >> ? ? LABEL >> ? ? ? SIZE MEDIUM >> ? ? ? OFFSET 0 0 >> ? ? ? SHADOWSIZE 1 1 >> ? ? ? TYPE BITMAP >> ? ? END # LABEL >> ? ? STATUS OFF >> ? END # LEGEND >> >> ? QUERYMAP >> ? ? SIZE -1 -1 >> ? ? STATUS OFF >> ? ? STYLE HILITE >> ? END # QUERYMAP >> >> ? SCALEBAR >> ? ? IMAGECOLOR 255 255 255 >> ? ? INTERVALS 4 >> ? ? LABEL >> ? ? ? SIZE MEDIUM >> ? ? ? OFFSET 0 0 >> ? ? ? SHADOWSIZE 1 1 >> ? ? ? TYPE BITMAP >> ? ? END # LABEL >> ? ? SIZE 200 3 >> ? ? STATUS OFF >> ? ? UNITS MILES >> ? END # SCALEBAR >> >> ? WEB >> ? ? METADATA >> ? ? ? "wcs_label" ? ? "Buffer process using OGR" >> ? ? ? "wms_onlineresource" >> "http://localhost/cgi-bin/mapserv?map=/var/www/wps/wpsoutputs/ > pywps-0d1bce24-5d36-11e1-99d2-0021cc5dbe3e.map" >> ? ? ? "ows_country" ? "eu" >> ? ? ? "ows_keywordlist" ? ? ? "GRASS,GIS,WPS" >> ? ? ? "wms_abstract" ?"See http://pywps.wald.intevation.org and >> http://www.opengeospatial.org/standards/wps" >> ? ? ? "ows_city" ? ? ?"City" >> ? ? ? "ows_contactperson" ? ? "Your Name" >> ? ? ? "ows_contactposition" ? "Your Position" >> ? ? ? "ows_role" ? ? ?"Your role" >> ? ? ? "ows_enable_request" ? ?"*" >> ? ? ? "ows_contactorganization" ? ? ? "Your Company Name" >> ? ? ? "ows_accessconstraints" "none" >> ? ? ? "ows_title" ? ? "PyWPS Server" >> ? ? ? "ows_fees" ? ? ?"None" >> ? ? ? "wcs_abstract" ?"See http://pywps.wald.intevation.org and >> http://www.opengeospatial.org/standards/wps" >> ? ? ? "ows_contactelectronicmailaddress" ? ? ?"login at server.org" >> ? ? ? "wfs_abstract" ?"See http://pywps.wald.intevation.org and >> http://www.opengeospatial.org/standards/wps" >> ? ? ? "ows_address" ? "Street" >> ? ? ? "ows_postcode" ?"000 00" >> ? ? END # METADATA >> ? END # WEB >> >> END # MAP >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From luis.a.de.sousa at gmail.com Tue Feb 28 06:05:04 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Tue, 28 Feb 2012 06:05:04 -0800 (PST) Subject: [mapserver-users] Mapserv stopped running after upgrade to trunk Message-ID: <1330437904119-4522390.post@n6.nabble.com> Hello everyone, I'm trying to install the trunk version, I checkout the project, compiled it and moved it to the cgi-bin directory. But now it doesn't run: $ ./mapserv -v mkdir: cannot create directory `/usr/lib/cgi-bin/.libs': Permission denied /usr/bin/ld.bfd.real: cannot open output file /usr/lib/cgi-bin/.libs/17805-lt-mapserv: No such file or directory collect2: ld returned 1 exit statusn Why is mapserv trying to access /usr/lib/cgi-bin/.libs? I had a previous version installed so I shouldn't be missing any libraries. Thank you, Lu?s -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserv-stopped-running-after-upgrade-to-trunk-tp4522390p4522390.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aboudreault at mapgears.com Tue Feb 28 06:20:49 2012 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 28 Feb 2012 09:20:49 -0500 Subject: [mapserver-users] Mapserv stopped running after upgrade to trunk In-Reply-To: <1330437904119-4522390.post@n6.nabble.com> References: <1330437904119-4522390.post@n6.nabble.com> Message-ID: <4F4CE2C1.4020106@mapgears.com> With MapServer trunk... you have to use the make install to install it.. rather than simply copying the mapserv app. I suppose you copied the main mapserv script from the ms source directory... which is in fact only a libtool wrapper. You can't use it. ./configure make make install Alan On 12-02-28 09:05 AM, Lu?s de Sousa wrote: > Hello everyone, > > I'm trying to install the trunk version, I checkout the project, compiled it > and moved it to the cgi-bin directory. But now it doesn't run: > > $ ./mapserv -v > mkdir: cannot create directory `/usr/lib/cgi-bin/.libs': Permission denied > /usr/bin/ld.bfd.real: cannot open output file > /usr/lib/cgi-bin/.libs/17805-lt-mapserv: No such file or directory > collect2: ld returned 1 exit statusn > > Why is mapserv trying to access /usr/lib/cgi-bin/.libs? I had a previous > version installed so I shouldn't be missing any libraries. > > Thank you, > > Lu?s > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserv-stopped-running-after-upgrade-to-trunk-tp4522390p4522390.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 -- Alan Boudreault http://www.mapgears.com/ From luis.a.de.sousa at gmail.com Tue Feb 28 06:47:42 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Tue, 28 Feb 2012 06:47:42 -0800 (PST) Subject: [mapserver-users] Re: Mapserv stopped running after upgrade to trunk In-Reply-To: <4F4CE2C1.4020106@mapgears.com> References: <1330437904119-4522390.post@n6.nabble.com> <4F4CE2C1.4020106@mapgears.com> Message-ID: <1330440462987-4522499.post@n6.nabble.com> Thank you Alan that worked. I think there should be some documentation on this, no way I could have guessed I had to run make install. Regards, Lu?s -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserv-stopped-running-after-upgrade-to-trunk-tp4522390p4522499.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aboudreault at mapgears.com Tue Feb 28 06:49:41 2012 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 28 Feb 2012 09:49:41 -0500 Subject: [mapserver-users] Re: Mapserv stopped running after upgrade to trunk In-Reply-To: <1330440462987-4522499.post@n6.nabble.com> References: <1330437904119-4522390.post@n6.nabble.com> <4F4CE2C1.4020106@mapgears.com> <1330440462987-4522499.post@n6.nabble.com> Message-ID: <4F4CE985.7000500@mapgears.com> You are right, it is on our long todo list for 6.2. :) Alan On 12-02-28 09:47 AM, Lu?s de Sousa wrote: > Thank you Alan that worked. > > I think there should be some documentation on this, no way I could have > guessed I had to run make install. > > Regards, > > Lu?s > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Mapserv-stopped-running-after-upgrade-to-trunk-tp4522390p4522499.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 -- Alan Boudreault http://www.mapgears.com/ From thomas.bonfort at gmail.com Tue Feb 28 07:09:52 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 28 Feb 2012 16:09:52 +0100 Subject: [mapserver-users] Re: Mapserv stopped running after upgrade to trunk In-Reply-To: <4F4CE985.7000500@mapgears.com> References: <1330437904119-4522390.post@n6.nabble.com> <4F4CE2C1.4020106@mapgears.com> <1330440462987-4522499.post@n6.nabble.com> <4F4CE985.7000500@mapgears.com> Message-ID: Note that the trunk documentation *has* been updated, and reflects the necessary steps to correctly install the mapserv binary: http://mapserver.org/trunk/installation/unix.html#installation On Tue, Feb 28, 2012 at 15:49, Alan Boudreault wrote: > You are right, it is on our long todo list for 6.2. :) > > Alan > > > On 12-02-28 09:47 AM, Lu?s de Sousa wrote: >> >> Thank you Alan that worked. >> >> I think there should be some documentation on this, no way I could have >> guessed I had to run make install. >> >> Regards, >> >> Lu?s >> >> -- >> View this message in context: >> http://osgeo-org.1560.n6.nabble.com/Mapserv-stopped-running-after-upgrade-to-trunk-tp4522390p4522499.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 > > > > -- > Alan Boudreault > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From punk.kish at gmail.com Tue Feb 28 07:13:42 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Tue, 28 Feb 2012 09:13:42 -0600 Subject: [mapserver-users] WMS for netcdf [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: On Feb 27, 2012, at 10:29 PM, Kathleen Hirst wrote: > Dear List, > > I have a NetCDF file with contains over 150 timesteps. I can create a WMS for each timestep using PROCESSING "BANDS=1", which means I have to define over 150 layers. I was hoping to only define the layer once and pass a variable for the time or the band number. > > Does anyone have any ideas? Kathleen, I wrote the following reply, and then realized that you may not be asking for this. Have you seen http://mapserver.org/ogc/wcs_format.html? For completeness, I will leave my original response as well. ---- Kathleen, Neither have I done this before nor do I know the answer, but I *am* interested in how you solve it since I have interest in munging a bunch of netCDF data. I am wondering, couldn't you use the standard variable substitution as Mapserver supports that for stuff like layer names and class names? Something like (do check the exact syntax) PROCESSING "BANDS=%band%" and then past in the band via the query string ?band=1 http://mapserver.org/mapfile/variable_sub.html -- Puneet Kishor -------------- next part -------------- An HTML attachment was scrubbed... URL: From Phil.Anzel at ftc.usda.gov Tue Feb 28 09:57:47 2012 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Tue, 28 Feb 2012 17:57:47 +0000 Subject: [mapserver-users] OGR and MSSQL non-specific error In-Reply-To: References: Message-ID: Hi, Tamas, I believe there is at least one bug in the OGR code: the SRID is not properly retrieved from the underlying Sql Server 2008 database or its value is ignored, and therefore zero records are returned. Consider this Layer definition: LAYER NAME 'States' STATUS ON PROJECTION 'proj=latlong' 'ellps=GRS80' 'datum=NAD83' END CONNECTIONTYPE OGR CONNECTION 'MSSQL:server=xxx;database=Navigation;uid=yyy;pwd=zzz;tables=NAV_STATE(ShapeGeometry)' PROCESSING 'CLOSE_CONNECTION=DEFER' DATA 'NAV_STATE' TYPE POLYGON CLASS STYLE OUTLINECOLOR '#e1dd00' WIDTH 2 END END END The ShapeGeometry has a non-zero SRID, as evidenced by a query executed against the database via Sql Server Management Studio (SSMS): select top 1 ShapeGeometry.STSrid from dbo.NAV_STATE -- that returns 4269 Using SSMS? Activity Monitor, executing SHP2IMG with a mapfile containing the above LAYER causes the following query to be issued to Sql Server: select [OBJECTID], [ShapeGeometry], [AREA], [STATE_NAME], [STATE_FIPS], [SUB_REGION], [STATE_ABBR], [POP1990], [POP1997], [POP90_SQMI], [HOUSEHOLDS], [MALES], [FEMALES], [WHITE], [BLACK], [AMERI_ES], [ASIAN_PI], [OTHER], [HISPANIC], [AGE_UNDER5], [AGE_5_17], [AGE_18_29], [AGE_30_49], [AGE_50_64], [AGE_65_UP], [NEVERMARRY], [MARRIED], [SEPARATED], [WIDOWED], [DIVORCED], [HSEHLD_1_M], [HSEHLD_1_F], [MARHH_CHD], [MARHH_NO_C], [MHH_CHILD], [FHH_CHILD], [HSE_UNITS], [VACANT], [OWNER_OCC], [RENTER_OCC], [MEDIAN_VAL], [MEDIANRENT], [UNITS_1DET], [UNITS_1ATT], [UNITS2], [UNITS3_9], [UNITS10_49], [UNITS50_UP], [MOBILEHOME], [NO_FARMS87], [AVG_SIZE87], [CROP_ACR87], [AVG_SALE87] from dbo.NAV_STATE where [ShapeGeometry].STIntersects( geometry::STGeomFromText( 'POLYGON((-126 22.1993540334789, -66 22.1993540334789, -66 51.1734146762311, -126 51.1734146762311,-126 22.1993540334789))',0)) = 1 Note that the STIntersects function is given an SRID argument of 0. This results in a return of zero records. I also note that all columns are returned. That is unfortunate, as that could potentially represent quite a bit of network traffic, - Phil From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Monday, February 27, 2012 2:59 PM To: Anzel, Phil - NRCS, Fort Collins, CO Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] OGR and MSSQL non-specific error 2012/2/26 Anzel, Phil - NRCS, Fort Collins, CO > 1. Note that I omitted the ?tables=?? as it appears that naming a specific table would interfere with connection pooling if I?m using many layers drawing data from different tables. Do I understand the role of the ?tables=?? incorrectly? Yes, it may be considered as being a different connection if the tables section is used. 2. I added the explicit spatial filtering (STIntersects?). Is there a better way to do this? It seems to be a bit complicated this way. I think you should try simply setting the layer name in the DATA section. In this case the spatial filter is added automatically by the MapServer OGR driver. Best regards, Tamas This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: From japr94 at hotmail.com Tue Feb 28 10:40:49 2012 From: japr94 at hotmail.com (juliap) Date: Tue, 28 Feb 2012 10:40:49 -0800 (PST) Subject: [mapserver-users] Re: mssql2008 plugin not working / failed to load dynamic library In-Reply-To: References: <1329852701520-4492672.post@n6.nabble.com> <4F43F297.4050006@gatewaygeomatics.com> <1329854481902-4492760.post@n6.nabble.com> <4F43F98C.7070102@gatewaygeomatics.com> <1330116084749-4504015.post@n6.nabble.com> Message-ID: <1330454449983-4523298.post@n6.nabble.com> Thanks, So no that I decided to implement the layer with OGR connection, I get this error : [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. This does not happens when I use shp2img to test my layer ... Any ideas? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/mssql2008-plugin-not-working-failed-to-load-dynamic-library-tp4492672p4523298.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Tue Feb 28 12:39:28 2012 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 28 Feb 2012 21:39:28 +0100 Subject: [mapserver-users] Re: mssql2008 plugin not working / failed to load dynamic library In-Reply-To: <1330454449983-4523298.post@n6.nabble.com> References: <1329852701520-4492672.post@n6.nabble.com> <4F43F297.4050006@gatewaygeomatics.com> <1329854481902-4492760.post@n6.nabble.com> <4F43F98C.7070102@gatewaygeomatics.com> <1330116084749-4504015.post@n6.nabble.com> <1330454449983-4523298.post@n6.nabble.com> Message-ID: You should specify valid credentials to access your database. Either by specifying "trusted_connection=yes" of uid/pwd in the connection string. Best regards, Tamas 2012/2/28 juliap > Thanks, > > So no that I decided to implement the layer with OGR connection, I get this > error : > > [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NT > AUTHORITY\ANONYMOUS LOGON'. > > This does not happens when I use shp2img to test my layer ... > > Any ideas? > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/mssql2008-plugin-not-working-failed-to-load-dynamic-library-tp4492672p4523298.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bteluk at gmail.com Tue Feb 28 14:12:15 2012 From: bteluk at gmail.com (bteluk at gmail.com) Date: Tue, 28 Feb 2012 14:12:15 -0800 (PST) Subject: [mapserver-users] Re: WMS for netcdf [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: <1330467135975-4529410.post@n6.nabble.com> Hi Kathleen, I've used a CGI Variable to pass a variable in the past, for a similar problem. It does mean that you then use a non-WMS compliant URL query. I used it with a FILTER statement, but perhaps it might also work with a PROCESSING instruction eg. PROCESSING "BANDS=%timeband%" Your URL might then look something like: http://my.host.com/cgi-bin/mapserv?map=mywms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=mylayer&timeband=7 Regards, Bill Teluk -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WMS-for-netcdf-SEC-UNCLASSIFIED-tp4519496p4529410.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aperi2007 at gmail.com Tue Feb 28 14:37:05 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 28 Feb 2012 23:37:05 +0100 Subject: [mapserver-users] Hello to everyone Message-ID: Hi, I'm just subscribed to this ML. I'm interested to understand and use this really interesting software. But before I'm glad to give to every one a big "Hello". -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From K.Hirst at bom.gov.au Tue Feb 28 14:52:40 2012 From: K.Hirst at bom.gov.au (Kathleen Hirst) Date: Wed, 29 Feb 2012 09:52:40 +1100 Subject: [mapserver-users] WMS for netcdf [SEC=UNCLASSIFIED] In-Reply-To: Message-ID: Hi Puneet, I tried the variable substitution and it didn't work as I don't think PROCESSING is one of the parameters supported. I also looked at the link about WCS, but I only want WMS. I'm not sure how a tile index would work as I'm only using one file with multiple time bands. Plus, I looked at "Changing map file parameters via a form or a URL", but wasn't sure of the syntax to change the band number. Thanks Kathleen ________________________________ From: Puneet Kishor [mailto:punk.kish at gmail.com] Sent: Wednesday, 29 February 2012 2:14 AM To: Kathleen Hirst Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS for netcdf [SEC=UNCLASSIFIED] On Feb 27, 2012, at 10:29 PM, Kathleen Hirst > wrote: Dear List, I have a NetCDF file with contains over 150 timesteps. I can create a WMS for each timestep using PROCESSING "BANDS=1", which means I have to define over 150 layers. I was hoping to only define the layer once and pass a variable for the time or the band number. Does anyone have any ideas? Kathleen, I wrote the following reply, and then realized that you may not be asking for this. Have you seen http://mapserver.org/ogc/wcs_format.html? For completeness, I will leave my original response as well. ---- Kathleen, Neither have I done this before nor do I know the answer, but I *am* interested in how you solve it since I have interest in munging a bunch of netCDF data. I am wondering, couldn't you use the standard variable substitution as Mapserver supports that for stuff like layer names and class names? Something like (do check the exact syntax) PROCESSING "BANDS=%band%" and then past in the band via the query string ?band=1 http://mapserver.org/mapfile/variable_sub.html -- Puneet Kishor -------------- next part -------------- An HTML attachment was scrubbed... URL: From scolas at gmail.com Tue Feb 28 22:21:12 2012 From: scolas at gmail.com (Dott. Scolavino Alessandro) Date: Wed, 29 Feb 2012 07:21:12 +0100 Subject: [mapserver-users] Hello everyone! Message-ID: <4F4DC3D8.4090409@gmail.com> Hi, i just subscribed to this mailing list, and i'm glad to be here! Alessandro from Italy -- - -- Ai sensi del DL 196/2003 si precisa che le informazioni contenute in questo messaggio sono riservate ed a uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse pervenuto per errore, la Preghiamo di eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie. Cordiali saluti - ---- Dott. Alessandro Scolavino ---- - ---- http://www.webair.it ---- - ---- http://www.clerk.it ---- From szekerest at gmail.com Wed Feb 29 00:41:07 2012 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 29 Feb 2012 09:41:07 +0100 Subject: [mapserver-users] OGR and MSSQL non-specific error In-Reply-To: References: Message-ID: 2012/2/28 Anzel, Phil - NRCS, Fort Collins, CO > Hi, Tamas, > > > > I believe there is at least one bug in the OGR code: the SRID is not > properly retrieved from the underlying Sql Server 2008 database or its > value is ignored, and therefore zero records are returned. > > > Probably the geometry_columns metadata table contains incorrect srid for the NAV_STATE entry. > > I also note that all columns are returned. That is unfortunate, as that > could potentially represent quite a bit of network traffic, > > This is a subject of improvement in the mapserver ogr driver. OGR is now capable to limit the fields by using OGR_L_SetIgnoredFields, but it hasn't been utilized yet. We should also modify the OGR mssql driver to rely on OGRFieldDefn::IsIgnored just like for the sqlite driver. Added 2 tickets to implement this addition: http://trac.osgeo.org/mapserver/ticket/4217 http://trac.osgeo.org/gdal/ticket/4534 Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From aibert.encagis at gmail.com Wed Feb 29 02:23:38 2012 From: aibert.encagis at gmail.com (Aibert GF) Date: Wed, 29 Feb 2012 11:23:38 +0100 Subject: [mapserver-users] How can I put SID images in MapServer? Message-ID: Hi, I'm introducing in MapServer's world and I'd like to put some images in MapServer (MrSID format). I need help for this operation. Thanks for all! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdmorgan at unca.edu Wed Feb 29 04:18:42 2012 From: jdmorgan at unca.edu (Derek Morgan) Date: Wed, 29 Feb 2012 07:18:42 -0500 Subject: [mapserver-users] Order by from Data lost in translation from PostGIS to gml_include_items Message-ID: Hello, I am using the DATA parameter to pull in data from a PostGIS DB. It is in the format of [geometry_column] from [sql_subquery] , then in a web application I am utilizing the WMS GetFeatureInfo to obtain the data data. This is done by putting a DUMP TRUE in the layer section and defining the relevant "gml_include_items". However, my problem is in that I am able to do an ?order by? in the sql_subquery, but it doesn?t come through to the GetFeatureInfo in the order that I specified. I was curious if anyone has any experience with this, and how I might get this to work. Thanks, Derek From Phil.Anzel at ftc.usda.gov Wed Feb 29 09:30:45 2012 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Wed, 29 Feb 2012 17:30:45 +0000 Subject: [mapserver-users] OGR and MSSQL non-specific error In-Reply-To: References: Message-ID: Hi, Tamas, Your reference to a geometry_metadata table is puzzling; we do not have that in our Sql Server 2008 databases except under one condition: those databases that were modified by addition of ESRI?s ?SDE? product. We find that in these databases, the ownership of the geometry_metadata table is ?sde?, which is quite telling. Thanks for looking into this. - Phil From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Wednesday, February 29, 2012 1:41 AM To: Anzel, Phil - NRCS, Fort Collins, CO Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] OGR and MSSQL non-specific error 2012/2/28 Anzel, Phil - NRCS, Fort Collins, CO > Hi, Tamas, I believe there is at least one bug in the OGR code: the SRID is not properly retrieved from the underlying Sql Server 2008 database or its value is ignored, and therefore zero records are returned. Probably the geometry_columns metadata table contains incorrect srid for the NAV_STATE entry. I also note that all columns are returned. That is unfortunate, as that could potentially represent quite a bit of network traffic, This is a subject of improvement in the mapserver ogr driver. OGR is now capable to limit the fields by using OGR_L_SetIgnoredFields, but it hasn't been utilized yet. We should also modify the OGR mssql driver to rely on OGRFieldDefn::IsIgnored just like for the sqlite driver. Added 2 tickets to implement this addition: http://trac.osgeo.org/mapserver/ticket/4217 http://trac.osgeo.org/gdal/ticket/4534 Best regards, Tamas This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. -------------- next part -------------- An HTML attachment was scrubbed... URL: From web at infogeo.ch Wed Feb 29 10:31:55 2012 From: web at infogeo.ch (web) Date: Wed, 29 Feb 2012 19:31:55 +0100 Subject: [mapserver-users] Representing holes in a layer In-Reply-To: Message-ID: <1330540315-a932d6a9f455228e5104fd5d8d1fbbb1@infogeo.ch> Hi Guys, Is there any mean with Mapserver and Mapscript to render a layer containing a first source of boundary polygon and another source of polygons used as holes inside the first boundary polygon. I could achieve this by using Postgis features, but I would like to now if there is a mean doing this with layers or styles using the Mapscript API. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Wed Feb 29 11:08:17 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 29 Feb 2012 19:08:17 +0000 Subject: [mapserver-users] Representing holes in a layer In-Reply-To: <1330540315-a932d6a9f455228e5104fd5d8d1fbbb1@infogeo.ch> References: , <1330540315-a932d6a9f455228e5104fd5d8d1fbbb1@infogeo.ch> Message-ID: You mean beyond drawing the holes *after* the boundaries? That would give you the look of one layer. ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of web [web at infogeo.ch] Sent: Wednesday, February 29, 2012 12:31 PM To: mapserver-users at lists.osgeo.org; " "@lists.osgeo.org Subject: [mapserver-users] Representing holes in a layer Hi Guys, Is there any mean with Mapserver and Mapscript to render a layer containing a first source of boundary polygon and another source of polygons used as holes inside the first boundary polygon. I could achieve this by using Postgis features, but I would like to now if there is a mean doing this with layers or styles using the Mapscript API. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pdescham49 at gmail.com Wed Feb 29 12:13:28 2012 From: pdescham49 at gmail.com (Paul Deschamps) Date: Wed, 29 Feb 2012 15:13:28 -0500 Subject: [mapserver-users] mapserv CGI - msPostGISLayerWhichShapes(): Item query error. Message-ID: Hi List, This looks familiar to me but it's eluding my brain right now as to why. Mapserver / Postgis is generating an invalid SQL when trying to do an itemquery a layer. Here's the error from mapserv cgi msPostGISLayerWhichShapes(): Query error. Error (ERROR: argument of AND must be type boolean, not type integer LINE 1: ...29.8659509))',find_srid('', 'parcel','the_geom')) and (50105) ^ ) executing query: select "id","transid","qpid","gis_acres","lastmodified",encode(ST_AsBinary(ST_Force_2D("the_geom"),'NDR'),'hex') as geom,"id" from (select * from parcel) as foo where the_geom && GeomFromText('POLYGON((382577.69492276 1555529.8659509,382577.69492276 1851596.8951139,832467.25879056 1851596.8951139,832467.25879056 1555529.8659509,382577.69492276 1555529.8659509))',find_srid('','parcel','the_geom')) and (50105) Notice the end of the sql it is missing (qpid = 50105) qpid being set as qitem is that not supposed to be there :) Any assistance would be greatly appreciated :) Paul Here's the layer and versions ---- CGI params of interest: &mode=itemquery&qitem=qpid&qstring=50105&qformat=parcel_as_html&qlayer=qparcel Here's the layer: --> LAYER NAME 'qparcel' INCLUDE 'projection.inc' INCLUDE 'dbconnection.inc' DATA 'the_geom from (select * from parcel) as foo using unique id' TYPE POLYGON STATUS OFF METADATA qstring_validation_pattern '.' # should set this to a regex specific for this county END CLASS NAME 'Selected Parcel' OUTLINECOLOR 255 0 0 SYMBOL "circle" SIZE 3 LABEL COLOR 0 0 0 SIZE SMALL MINDISTANCE 100 END END TEMPLATE 'void' END ----> Postgis ver: "POSTGIS="1.5.3" GEOS="3.3.1-CAPI-1.7.1" PROJ="Rel. 4.7.1, 23 September 2009" LIBXML="2.7.6" USE_STATS" MapServer ver: MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Feb 29 12:26:55 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 29 Feb 2012 15:26:55 -0500 Subject: [mapserver-users] Representing holes in a layer In-Reply-To: References: , <1330540315-a932d6a9f455228e5104fd5d8d1fbbb1@infogeo.ch> Message-ID: <4F4E8A0F.1030805@swoodbridge.com> And what to you mean/expect when drawing the hole? For example do you expect to be able to see through the hole to the underlying features? -- this is not possible because the first polygon layer would have over written any features that were already in the image. -Steve W On 2/29/2012 2:08 PM, Lime, Steve D (DNR) wrote: > You mean beyond drawing the holes *after* the boundaries? That would > give you the look of one layer. > > *From:* mapserver-users-bounces at lists.osgeo.org > [mapserver-users-bounces at lists.osgeo.org] on behalf of web [web at infogeo.ch] > *Sent:* Wednesday, February 29, 2012 12:31 PM > *To:* mapserver-users at lists.osgeo.org; " > "@lists.osgeo.org > *Subject:* [mapserver-users] Representing holes in a layer > > Hi Guys, > > Is there any mean with Mapserver and Mapscript to render a layer > containing a first source of boundary polygon and another source of > polygons used as holes inside the first boundary polygon. > > I could achieve this by using Postgis features, but I would like to now > if there is a mean doing this with layers or styles using the Mapscript API. > > Regards. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bteluk at gmail.com Wed Feb 29 20:45:33 2012 From: bteluk at gmail.com (bteluk at gmail.com) Date: Wed, 29 Feb 2012 20:45:33 -0800 (PST) Subject: [mapserver-users] Re: Oracle Locator support In-Reply-To: References: <1330408901636-4519962.post@n6.nabble.com> Message-ID: <1330577133665-4533743.post@n6.nabble.com> Hi Michael, Thanks, but I only want to know at this stage whether MapServer is written for Oracle Spatial only, or whether it can support Locator. I'm guessing from reading Oracle's documentation that since SDO.GEOM.INTERSECTS and SDO.GEOM.RELATE aren't supported, that MapServer probably doesn't support Locator. However, how do I know that MapServer doesn't use the SQL/MM functions instead - which are apparently supported. Is there no easy way other than to test every possible variant of MapServer usage against a test Locator installation? Regards, Bill Teluk. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Oracle-Locator-support-tp4519962p4533743.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bfraser at geoanalytic.com Mon Feb 13 12:43:19 2012 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 13 Feb 2012 20:43:19 -0000 Subject: [mapserver-users] mapserv 5 -> 6 symbol question In-Reply-To: References: Message-ID: <4F3975D3.1090906@geoanalytic.com> Rich, For my Intermittent Waterways in v6, I've used CLASS # intermittent NAME 'intermittent' EXPRESSION '1480132' STYLE SYMBOL "SmallDots" COLOR 221 230 254 GAP 2 END STYLE SYMBOL "dashed5" PATTERN 5 5 END WIDTH 1 OUTLINECOLOR 0 122 194 END END where the symbol def is: SYMBOL NAME 'dashed5' TYPE SIMPLE END SYMBOL NAME 'SmallDots' TYPE ELLIPSE POINTS 1 1 END END Best Regards, Brent Fraser On 2/13/2012 1:22 PM, Richard Greenwood wrote: > I'm upgrading a site from mapserver 5.6 to 6.0 and the attached symbol > has me stumped. I can't seem to replicate the style in 6.0. > > My mapserver 5.6 definition that created the attached GIF is here: > > SYMBOL > NAME 'Circle_Open' > TYPE ELLIPSE > FILLED false > POINTS 1 1 END > END > > LAYER > TYPE polygon > TRANSPARENCY alpha > CLASS > STYLE > COLOR 69 158 239 > OUTLINECOLOR 0 0 255 > SYMBOL 'Circle_Open' > SIZE 1 > END > END > END > > In mapserver 6.0 I'm using the same SYMBOL definition. I have split > the outline into a separate STYLE block. But regardless of the SIZE or > WIDTH that I specify for the STYLE all I get is a solid fill. What am > I missing? > > Thanks, > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: intermittent.PNG Type: image/png Size: 66695 bytes Desc: not available URL: