From a.steenveld at vista-online.nl Wed Dec 1 02:52:02 2010 From: a.steenveld at vista-online.nl (Andre Steenveld sr) Date: Wed, 1 Dec 2010 11:52:02 +0100 Subject: [mapserver-users] help Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.steenveld at vista-online.nl Wed Dec 1 04:42:45 2010 From: a.steenveld at vista-online.nl (Andre Steenveld sr) Date: Wed, 1 Dec 2010 13:42:45 +0100 Subject: [mapserver-users] unsubscribe Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From florita026 at gmail.com Wed Dec 1 04:56:24 2010 From: florita026 at gmail.com (florencia.bujan) Date: Wed, 1 Dec 2010 04:56:24 -0800 (PST) Subject: [mapserver-users] Re: Raster Data from PostGIS In-Reply-To: References: <1291038416747-5784362.post@n2.nabble.com> <281132.69958.qm@web38201.mail.mud.yahoo.com> <1291045835952-5784801.post@n2.nabble.com> <1291047127999-5784894.post@n2.nabble.com> <1291048753486-5785003.post@n2.nabble.com> Message-ID: <1291208184785-5791735.post@n2.nabble.com> Thank you very much!!! I am trying with GDAL. Regards. Florencia -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Data-from-PostGIS-tp5784362p5791735.html Sent from the Mapserver - User mailing list archive at Nabble.com. From florita026 at gmail.com Wed Dec 1 05:16:31 2010 From: florita026 at gmail.com (florencia.bujan) Date: Wed, 1 Dec 2010 05:16:31 -0800 (PST) Subject: [mapserver-users] Base Layers (VE y Yahoo) in EPSG:4326 Message-ID: <1291209391525-5791822.post@n2.nabble.com> Hi, I am using "Blue Marble" and "OpenLayers WMS" base layers with postgis layers and the projection is ok: var wms = new OpenLayers.Layer.WMS( "Blue Marble", "http://maps.opengeo.org/geowebcache/service/wms", {layers: 'bluemarble'} ); map.addLayers([wms]); wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} ); But when I add two other base layers (Virtual Earth and Yahoo Layer), the projection is not right: var ve = new OpenLayers.Layer.VirtualEarth("VE"); var yahoo = new OpenLayers.Layer.Yahoo("Yahoo", {"sphericalMercator": true}); I want to change the base layers projection to EPSG:4326 for the correct view. Thanks! Regards. Florencia -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Base-Layers-VE-y-Yahoo-in-EPSG-4326-tp5791822p5791822.html Sent from the Mapserver - User mailing list archive at Nabble.com. From florita026 at gmail.com Wed Dec 1 08:30:48 2010 From: florita026 at gmail.com (=?ISO-8859-1?Q?Florencia_Buj=E1n?=) Date: Wed, 1 Dec 2010 14:30:48 -0200 Subject: [mapserver-users] Base Layers (VE y Yahoo) in EPSG:4326 In-Reply-To: <4CBBAF07-D5F2-4BAD-8A33-15E0DD9A11F6@nokia.com> References: <1291209391525-5791822.post@n2.nabble.com> <4CBBAF07-D5F2-4BAD-8A33-15E0DD9A11F6@nokia.com> Message-ID: Ok. Thank you Christopher. 2010/12/1 > This is an OpenLayers question, and should be setn to the OpenLayers > mailing list. > > Additionally, the thing you want to do is not possible. > > -- Chris > > On Dec 1, 2010, at 8:16 AM, ext florencia.bujan wrote: > > > > > Hi, > > > > I am using "Blue Marble" and "OpenLayers WMS" base layers with postgis > > layers and the projection is ok: > > > > var wms = new OpenLayers.Layer.WMS( "Blue Marble", > > "http://maps.opengeo.org/geowebcache/service/wms", > > {layers: 'bluemarble'} ); > > map.addLayers([wms]); > > wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", > > "http://vmap0.tiles.osgeo.org/wms/vmap0", > > {layers: 'basic'} ); > > > > > > But when I add two other base layers (Virtual Earth and Yahoo Layer), the > > projection is not right: > > > > var ve = new OpenLayers.Layer.VirtualEarth("VE"); > > var yahoo = new OpenLayers.Layer.Yahoo("Yahoo", {"sphericalMercator": > > true}); > > > > I want to change the base layers projection to EPSG:4326 for the correct > > view. > > > > Thanks! > > Regards. > > Florencia > > > > > > -- > > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Base-Layers-VE-y-Yahoo-in-EPSG-4326-tp5791822p5791822.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 yassefa at dmsolutions.ca Wed Dec 1 10:57:55 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 01 Dec 2010 13:57:55 -0500 Subject: [mapserver-users] external graphic symbol don't follow the GetStyles method In-Reply-To: References: Message-ID: <4CF69AB3.6070304@dmsolutions.ca> Hi Martin, I think you need to define WMS_SLD_SYMBOL_URL to be able to generate an External graphic. This is documented (almost hidden :) in http://mapserver.org/ogc/sld.html#client-side-support best regards, On 30/11/2010 5:01 PM, Martin Ouellet wrote: > Hi, > > When I used a external graphic element in a SLD like this: > test > indicatif1030050000 > 40000.000000 > > > xlink:type="simple" > xlink:href="http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif"/> > GIF > > > Then I used the temporary mapfile generated by the call to define the > same symbology but in my mapfile. > SYMBOL > NAME > "http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif" > TYPE PIXMAP > IMAGE "/srv/mapfile/ms_tmp/4cf56a54_49f8_1.gif" > GAP -11 > TRANSPARENT 0 > END > > CLASS > NAME "test" > EXPRESSION ([indicatif] = 1030050000) > MAXSCALEDENOM 40000 > STYLE > ANGLE 360 > COLOR 0 0 0 > SIZE 5.5 > SYMBOL > "http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif" > WIDTH 1 > END > END > > Question: Finally, I would like to expose this symbology through the > GetStyles() method but it seem to be completely ignored? > test > indicatif1030050000 > 40000.000000 > > > > Is it normal? Thank you in advance! > MartinO > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From christopher.schmidt at nokia.com Wed Dec 1 08:29:19 2010 From: christopher.schmidt at nokia.com (christopher.schmidt at nokia.com) Date: Wed, 1 Dec 2010 17:29:19 +0100 Subject: [mapserver-users] Base Layers (VE y Yahoo) in EPSG:4326 In-Reply-To: <1291209391525-5791822.post@n2.nabble.com> References: <1291209391525-5791822.post@n2.nabble.com> Message-ID: <4CBBAF07-D5F2-4BAD-8A33-15E0DD9A11F6@nokia.com> This is an OpenLayers question, and should be setn to the OpenLayers mailing list. Additionally, the thing you want to do is not possible. -- Chris On Dec 1, 2010, at 8:16 AM, ext florencia.bujan wrote: > > Hi, > > I am using "Blue Marble" and "OpenLayers WMS" base layers with postgis > layers and the projection is ok: > > var wms = new OpenLayers.Layer.WMS( "Blue Marble", > "http://maps.opengeo.org/geowebcache/service/wms", > {layers: 'bluemarble'} ); > map.addLayers([wms]); > wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", > "http://vmap0.tiles.osgeo.org/wms/vmap0", > {layers: 'basic'} ); > > > But when I add two other base layers (Virtual Earth and Yahoo Layer), the > projection is not right: > > var ve = new OpenLayers.Layer.VirtualEarth("VE"); > var yahoo = new OpenLayers.Layer.Yahoo("Yahoo", {"sphericalMercator": > true}); > > I want to change the base layers projection to EPSG:4326 for the correct > view. > > Thanks! > Regards. > Florencia > > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Base-Layers-VE-y-Yahoo-in-EPSG-4326-tp5791822p5791822.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 geomartino at gmail.com Wed Dec 1 11:50:34 2010 From: geomartino at gmail.com (Martin Ouellet) Date: Wed, 1 Dec 2010 14:50:34 -0500 Subject: [mapserver-users] external graphic symbol don't follow the GetStyles method In-Reply-To: <4CF69AB3.6070304@dmsolutions.ca> References: <4CF69AB3.6070304@dmsolutions.ca> Message-ID: You're absolutely right Assefa, adding the parameter WMS_SLD_SYMBOL_URL solve the problem. You're also right in saying that the information is somehow hidden BUT it is there so my mistake, I'll try to read more carefully next time MartinO 2010/12/1 Yewondwossen Assefa > Hi Martin, > > I think you need to define WMS_SLD_SYMBOL_URL to be able to generate an > External graphic. This is documented (almost hidden :) in > http://mapserver.org/ogc/sld.html#client-side-support > > best regards, > > > On 30/11/2010 5:01 PM, Martin Ouellet wrote: > > Hi, > > When I used a external graphic element in a SLD like this: > test > > indicatif1030050000 > 40000.000000 > > > xlink:type="simple" xlink:href=" > http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif"/> > GIF > > > Then I used the temporary mapfile generated by the call to define the > same symbology but in my mapfile. > SYMBOL > NAME " > http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif" > TYPE PIXMAP > IMAGE "/srv/mapfile/ms_tmp/4cf56a54_49f8_1.gif" > GAP -11 > TRANSPARENT 0 > END > > CLASS > NAME "test" > EXPRESSION ([indicatif] = 1030050000) > MAXSCALEDENOM 40000 > STYLE > ANGLE 360 > COLOR 0 0 0 > SIZE 5.5 > SYMBOL " > http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif" > WIDTH 1 > END > END > > Question: Finally, I would like to expose this symbology through the > GetStyles() method but it seem to be completely ignored? > test > > indicatif1030050000 > 40000.000000 > > > > Is it normal? Thank you in advance! > MartinO > > > _______________________________________________ > mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steven.ottens at geodan.nl Wed Dec 1 12:34:27 2010 From: steven.ottens at geodan.nl (Steven M. Ottens) Date: Wed, 1 Dec 2010 21:34:27 +0100 Subject: [mapserver-users] Base Layers (VE y Yahoo) in EPSG:4326 In-Reply-To: <4CBBAF07-D5F2-4BAD-8A33-15E0DD9A11F6@nokia.com> References: <1291209391525-5791822.post@n2.nabble.com> <4CBBAF07-D5F2-4BAD-8A33-15E0DD9A11F6@nokia.com> Message-ID: <194A7A00-19CD-465C-9D21-067203FC386E@geodan.nl> If you have full control of the postgis layers, you can serve them reprojected into EPSG:900913 (or EPSG:3785) and put it on top of VE/Yahoo. You cannot (as chris points out) change the projection of VE/Yahoo (or google for that matter). They serve their baselayers in spherical mercator, and you've to adept your data to their standards if you want to use their data. Steven On Dec 1, 2010, at 5:29 PM, wrote: > This is an OpenLayers question, and should be setn to the OpenLayers mailing list. > > Additionally, the thing you want to do is not possible. > > -- Chris > > On Dec 1, 2010, at 8:16 AM, ext florencia.bujan wrote: > >> >> Hi, >> >> I am using "Blue Marble" and "OpenLayers WMS" base layers with postgis >> layers and the projection is ok: >> >> var wms = new OpenLayers.Layer.WMS( "Blue Marble", >> "http://maps.opengeo.org/geowebcache/service/wms", >> {layers: 'bluemarble'} ); >> map.addLayers([wms]); >> wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", >> "http://vmap0.tiles.osgeo.org/wms/vmap0", >> {layers: 'basic'} ); >> >> >> But when I add two other base layers (Virtual Earth and Yahoo Layer), the >> projection is not right: >> >> var ve = new OpenLayers.Layer.VirtualEarth("VE"); >> var yahoo = new OpenLayers.Layer.Yahoo("Yahoo", {"sphericalMercator": >> true}); >> >> I want to change the base layers projection to EPSG:4326 for the correct >> view. >> >> Thanks! >> Regards. >> Florencia >> >> >> -- >> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Base-Layers-VE-y-Yahoo-in-EPSG-4326-tp5791822p5791822.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Steven M. Ottens Senior Ux Designer ------------------------------------- Geodan S&R President Kennedylaan 1 1079 MB Amsterdam (NL) ------------------------------------- Tel: +31 (0)20 - 5711 315 Fax: +31 (0)20 - 5711 333 ------------------------------------- E-mail: steven.ottens at geodan.nl Website: www.geodan.nl KvK-nummer: 33 247475 Disclaimer: www.geodan.nl/disclaimer ------------------------------------- From dbee_kawai at yahoo.com Wed Dec 1 18:49:21 2010 From: dbee_kawai at yahoo.com (elisabeth theresia) Date: Wed, 1 Dec 2010 18:49:21 -0800 (PST) Subject: [mapserver-users] how to change path httpd.d at ms4w for win 7 Message-ID: <477979.31579.qm@web58005.mail.re3.yahoo.com> Hello all, I am successfully install ms4w vs 3.0 vs 11 and tutorial to install it in : http://osgeo-org.1803224.n2.nabble.com/RE-port-from-Apache-to-IIS-td2721888.html but, i have project from win xp in "\ms4w\apps\appweb" contain folders : htdocs, map, shp, samples, admin, config, data, etc and i copied to win 7 in "C:\ms4w\apps\appweb" . then how to open it in address Bar like in win xp : http://localhost/appweb/index.html ? i already add :httpd_appweb in "C:\ms4w\httpd.d" like when in win xp but still can't work.. Alias /appweb "/ms4w/apps/appweb/htdocs/" AllowOverride None Options Indexes FollowSymLinks Multiviews Order allow,deny Allow from all anyone can help? Thanks a lot all :) -dbee, Indonesia :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.b at gritechnologies.com Wed Dec 1 19:15:10 2010 From: bob.b at gritechnologies.com (Bob Basques) Date: Wed, 01 Dec 2010 21:15:10 -0600 Subject: [mapserver-users] how to change path httpd.d at ms4w for win 7 In-Reply-To: <477979.31579.qm@web58005.mail.re3.yahoo.com> References: <477979.31579.qm@web58005.mail.re3.yahoo.com> Message-ID: <4CF70F3E.9020702@gritechnologies.com> try these two versions: http://localhost/index.html or http://localhost/appweb/htdocs/index.html On 12/1/2010 8:49 PM, elisabeth theresia wrote: > Hello all, > > I am successfully install ms4w vs 3.0 vs 11 and tutorial to install it in : > http://osgeo-org.1803224.n2.nabble.com/RE-port-from-Apache-to-IIS-td2721888.html > > but, i have project from win xp in "\ms4w\apps\appweb" contain folders : htdocs, map, shp, samples, admin, config, > data, etc and i copied to win 7 in "C:\ms4w\apps\appweb" . > > then how to open it in address Bar like in win xp : http://localhost/appweb/index.html ? > > i already add :httpd_appweb in "C:\ms4w\httpd.d" like when in win xp but still can't work.. > > Alias /appweb "/ms4w/apps/appweb/htdocs/" > > > AllowOverride None > Options Indexes FollowSymLinks Multiviews > Order allow,deny > Allow from all > > > anyone can help? Thanks a lot all :) > > -dbee, Indonesia :) > > > _______________________________________________ > 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 dbee_kawai at yahoo.com Wed Dec 1 20:10:33 2010 From: dbee_kawai at yahoo.com (elisabeth theresia) Date: Wed, 1 Dec 2010 20:10:33 -0800 (PST) Subject: [mapserver-users] how to change path httpd.d at ms4w for win 7 In-Reply-To: <4CF70F3E.9020702@gritechnologies.com> References: <477979.31579.qm@web58005.mail.re3.yahoo.com> <4CF70F3E.9020702@gritechnologies.com> Message-ID: <462175.79765.qm@web58005.mail.re3.yahoo.com> Thanks Mr. Bob, yeah in option 2 i can do it, so no other way for setting in httpd.d maybe? Hmm... Okay. -Theresia dbee. ________________________________ From: Bob Basques To: mapserver-users at lists.osgeo.org Sent: Thu, December 2, 2010 10:15:10 AM Subject: Re: [mapserver-users] how to change path httpd.d at ms4w for win 7 try these two versions: http://localhost/index.html or http://localhost/appweb/htdocs/index.html On 12/1/2010 8:49 PM, elisabeth theresia wrote: Hello all, > >I am successfully install ms4w vs 3.0 vs 11 and tutorial to install >it in : >http://osgeo-org.1803224.n2.nabble.com/RE-port-from-Apache-to-IIS-td2721888.html > >but, i have project from win xp in "\ms4w\apps\appweb" contain folders >: htdocs, map, shp, samples, admin, config, data, etc and i copied to >win 7 in "C:\ms4w\apps\appweb" . > >then how to open it in address Bar like in win xp : >http://localhost/appweb/index.html ? > >i already add :httpd_appweb in "C:\ms4w\httpd.d" like when in win xp but still >can't work.. > >Alias /appweb "/ms4w/apps/appweb/htdocs/" > > > AllowOverride None > Options Indexes FollowSymLinks Multiviews > Order allow,deny > Allow from all > > >anyone can help? Thanks a lot all :) > >-dbee, Indonesia :) > > > _______________________________________________ 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 Wed Dec 1 21:04:09 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 1 Dec 2010 23:04:09 -0600 Subject: [mapserver-users] Re: Clipping returned WFS data to the requesting bounding box In-Reply-To: <4CF4A826.8060700@uva.nl> References: <1290551237770-5768616.post@n2.nabble.com> <1291054439316-5785372.post@n2.nabble.com> , <4CF4A826.8060700@uva.nl> Message-ID: It's described at: http://mapserver.org/input/vector/postgis.html It's a PostGIS-only hack. I'd advocate binding a few variables like extent and scale to expressions with a special syntax. For example, [_minx] or something like that. RFC 64 makes it much easier to extend expressions like this. Steve ________________________________________ From: Jan Hartmann [j.l.h.hartmann at uva.nl] Sent: Tuesday, November 30, 2010 1:30 AM To: Lime, Steve D (DNR) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Re: Clipping returned WFS data to the requesting bounding box On 2010-11-29 22:11, Lime, Steve D (DNR) wrote: > I'm not aware of any means to do this. If you're using PostGIS perhaps there's a way to use the !BOX! hack in conjunction with some of the analytical functions but it's a long shot... (see http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg03006.html) > > Quoting Paul Ramsey in the link above: " the evil "!BOX!" hack: In your data statement, if you compose it thusly: DATA "the_geom from (select gid,the_geom from thetable where the_geom && !BOX!) using unique gid" When the postgis driver encounters the evil !BOX! it will replace it with the current mapserver bounding box. " What exactly is the status of this demonic !BOX! hack? Is it described somewhere? Is the "current mapserver bounding box" queryable within MapServer itself? Jan From j.l.h.hartmann at uva.nl Thu Dec 2 01:31:11 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Thu, 02 Dec 2010 10:31:11 +0100 Subject: [mapserver-users] Re: Clipping returned WFS data to the requesting bounding box In-Reply-To: References: <1290551237770-5768616.post@n2.nabble.com> <1291054439316-5785372.post@n2.nabble.com> , <4CF4A826.8060700@uva.nl> Message-ID: <4CF7675F.6010001@uva.nl> On 2010-12-02 6:04, Lime, Steve D (DNR) wrote: > I'd advocate binding a few variables like extent and scale to expressions with a special syntax. For example, [_minx] or something like that. RFC 64 makes it much easier to extend expressions like this. > I would certainly like to have that. If I remember well, there has been a discussion about this long ago, but people thought it was too difficult to implement back then, because it would require two passes through the data. Being able to request things like extent and bounding box directly from a template pattern, at the same time as the actual map request, would simplify MapServer's query logic a lot. Jan From aka.djw4n at gmail.com Thu Dec 2 03:52:12 2010 From: aka.djw4n at gmail.com (ikhwana.fath) Date: Thu, 2 Dec 2010 18:52:12 +0700 Subject: [mapserver-users] want to know about OGR Message-ID: Dear master of GIS.. i was complicated with OGR library.. I used the ogr library for called .TAB from MapInfo file in mapserver. But, i dont why it's not appear in localhost.. this is the code.. [spoiler=code] MAP NAME "Indonesia" STATUS ON EXTENT 92.5 -19.5 142.5 14.0 IMAGETYPE PNG SIZE 450 300 SHAPEPATH "../data/dayeuh_kolot/tab" IMAGECOLOR 255 255 255 WEB IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER NAME "Propinsi" CONNECTIONTYPE OGR CONNECTION "desa_table.TAB" STATUS DEFAULT TYPE POLYGON CLASS COLOR 225 200 100 OUTLINECOLOR 0 0 0 END END END [/spoiler] and called the code with url like mapserver called.. but i dont know why still not appear.. when i used the code from book tutorial, it was appear.. Is there something wrong in Map info files or how to create it was? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Thu Dec 2 06:36:18 2010 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 2 Dec 2010 09:36:18 -0500 Subject: [mapserver-users] layer_status always eq 0 with mode=legend and status ON Message-ID: Hi, I'm starting using mode=legend and I cannot get the proper STATUS value of my layers definition when STATUS is ON. My mapfile contains 3 layers, one layer has STATUS ON, another STATUS DEFAULT and the other STATUS OFF In the result of mode=legend I get layer_status = 0 for layers having STATUS ON or OFF. I get layer_status = 2 when STATUS = DEFAULT Here is the line in the template aszLegendArray[szGroup][nLayerId]["selected"] = [if name=layer_status value=0]0[/if][if name=layer_status value=1]1[/if][if name=layer_status value=2]1[/if]; Should layer_status be equal to 1 when STATUS ON? thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Thu Dec 2 06:55:45 2010 From: adube at mapgears.com (Alexandre Dube) Date: Thu, 02 Dec 2010 09:55:45 -0500 Subject: [mapserver-users] layer_status always eq 0 with mode=legend and status ON In-Reply-To: References: Message-ID: <4CF7B371.7050801@mapgears.com> Steve, I'm really not sure about this, but I think you need to specify the 'oper' parameter, as such : aszLegendArray[szGroup][nLayerId]["selected"] = [if name=layer_status oper=eq value=0]0[/if][if name=layer_status oper=eq value=1]1[/if][if name=layer_status oper=eq value=2]1[/if]; That's the way all samples in the doc page [1] are displayed. HTH, Alexandre [1] http://mapserver.org/output/html_legend.html On 10-12-02 09:36 AM, Steve.Toutant at inspq.qc.ca wrote: > > Hi, > I'm starting using mode=legend and I cannot get the proper STATUS > value of my layers definition when STATUS is ON. > My mapfile contains 3 layers, one layer has STATUS ON, another STATUS > DEFAULT and the other STATUS OFF > > In the result of mode=legend I get layer_status = 0 for layers having > STATUS ON or OFF. > I get layer_status = 2 when STATUS = DEFAULT > Here is the line in the template > aszLegendArray[szGroup][nLayerId]["selected"] = [if name=layer_status > value=0]0[/if][if name=layer_status value=1]1[/if][if > name=layer_status value=2]1[/if]; > > Should layer_status be equal to 1 when STATUS ON? > thanks > Steve > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alexandre Dub? Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Thu Dec 2 08:39:12 2010 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Thu, 2 Dec 2010 11:39:12 -0500 Subject: [mapserver-users] layer_status always eq 0 with mode=legend and status ON In-Reply-To: <4CF7B371.7050801@mapgears.com> Message-ID: I did try with and without oper=eq, and the behaviour is the same. I noticed here http://mapserver.org/output/html_legend.html that layer_status is a supported tag in the group block (leg_group_html) but not in a layer block (leg_layer_html) which I'm using. Is the documentation up to date on this? I'm using the result of mode=legend, to populate a geoext layertree. What I'm trying to accomplish is to set the initial visibility parameter of the layer tree node. I thought that using the layer_status value would be a good solution... Is it a bug or my approach is not right? thanks steve Alexandre Dube @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2010-12-02 09:55 A mapserver-users at lists.osgeo.org cc Objet Re: [mapserver-users] layer_status always eq 0 with mode=legend and status ON Steve, I'm really not sure about this, but I think you need to specify the 'oper' parameter, as such : aszLegendArray[szGroup][nLayerId]["selected"] = [if name=layer_status oper=eq value=0]0[/if][if name=layer_status oper=eq value=1]1[/if][if name=layer_status oper=eq value=2]1[/if]; That's the way all samples in the doc page [1] are displayed. HTH, Alexandre [1] http://mapserver.org/output/html_legend.html On 10-12-02 09:36 AM, Steve.Toutant at inspq.qc.ca wrote: Hi, I'm starting using mode=legend and I cannot get the proper STATUS value of my layers definition when STATUS is ON. My mapfile contains 3 layers, one layer has STATUS ON, another STATUS DEFAULT and the other STATUS OFF In the result of mode=legend I get layer_status = 0 for layers having STATUS ON or OFF. I get layer_status = 2 when STATUS = DEFAULT Here is the line in the template aszLegendArray[szGroup][nLayerId]["selected"] = [if name=layer_status value=0]0[/if][if name=layer_status value=1]1[/if][if name=layer_status value=2]1[/if]; Should layer_status be equal to 1 when STATUS ON? thanks Steve _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alexandre Dub? Mapgears www.mapgears.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 dmorissette at mapgears.com Thu Dec 2 11:32:55 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 02 Dec 2010 14:32:55 -0500 Subject: [mapserver-users] layer_status always eq 0 with mode=legend and status ON In-Reply-To: References: Message-ID: <4CF7F467.5000305@mapgears.com> Steve.Toutant at inspq.qc.ca wrote: > > Hi, > I'm starting using mode=legend and I cannot get the proper STATUS value > of my layers definition when STATUS is ON. > My mapfile contains 3 layers, one layer has STATUS ON, another STATUS > DEFAULT and the other STATUS OFF > > In the result of mode=legend I get layer_status = 0 for layers having > STATUS ON or OFF. > I get layer_status = 2 when STATUS = DEFAULT I didn't double check this, but it seems that you are being caught by the mapserv CGI's "feature" that sets all layers with STATUS ON to OFF by default, and then turns on only the layers explicitly specified in the URL via the layer or layers CGI params. Don't ask me why, that's the way it's always been with the CGI and that's related to the way turning layers on and off works in the traditional CGI HTML templates. Unfortunately I don't think you'll be able to access the STATUS ON values via the CGI, unless you use MapScript, since MapScript does not alter the layer status values by default. Maybe that could be an enhancement for 6.0: to add a CGI param that would allow a CGI call to request that layers with STATUS ON not be turned OFF by default. If Steve is reading this perhaps he could comment. -- Daniel Morissette http://www.mapgears.com/ From sumit321 at hotmail.com Thu Dec 2 21:25:39 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Thu, 2 Dec 2010 21:25:39 -0800 (PST) Subject: [mapserver-users] Re: want to know about OGR In-Reply-To: References: Message-ID: <1291353939499-5798732.post@n2.nabble.com> I would recommend you to get Ogrinfo and make sure all parameters that you are using (including extent) are correct. Also try using STYLEITEM ?AUTO? parameter. in that case you must have empty class -Cheers, Sumit -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/want-to-know-about-OGR-tp5795713p5798732.html Sent from the Mapserver - User mailing list archive at Nabble.com. From James.Card at calcad.com Thu Dec 2 21:30:24 2010 From: James.Card at calcad.com (James Card) Date: Thu, 2 Dec 2010 21:30:24 -0800 Subject: [mapserver-users] OGR Join To MS-Access Without Using ODBC Message-ID: I'm trying to determine what syntax to use to create an OGR join to an MS Access database *without* using ODBC (on a Windows server). Is that possible? Current syntax is: DATA "SELECT * FROM LHFO_Routes shp LEFT JOIN 'ODBC:Routes_MDB,vRoutesTheme'.vRoutesTheme mdb ON shp.ROAD_NO_=mdb.RouteNumber" -- James Card California CAD Solutions, Inc. 209-578-5580 - Voice 209-521-6493 - FAX From bfraser at geoanalytic.com Fri Dec 3 06:56:16 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 03 Dec 2010 07:56:16 -0700 Subject: [mapserver-users] OGR Join To MS-Access Without Using ODBC In-Reply-To: References: Message-ID: <4CF90510.9030909@geoanalytic.com> James, Is it the ODBC system you don't want to use, or just the need to create an ODBC DataSource? To avoid creating a DataSource, I tried using ogrinfo (v1.7.1) on the command line: ogrinfo ODBC:"Driver={Microsoft Access Driver (*.mdb)};Dbq=t_505033.mdb",basic basic and that worked. But the need for quoting caused mapserver v5.6.3 to crash when I tried single quotes around the ODBC portion: DATA "SELECT * FROM t_505033 LEFT JOIN ODBC:'Driver={Microsoft Access Driver (*.mdb)};Dbq=G\GeoData\Parcels\Alberta\t_505033.mdb'.basic ON t_505033.PID=basic.PID" or DATA "SELECT * FROM t_505033 LEFT JOIN 'ODBC:Driver={Microsoft Access Driver (*.mdb)};Dbq=G\GeoData\Parcels\Alberta\t_505033.mdb'.basic ON t_505033.PID=basic.PID" I wonder if there is a way to escape the double quotes in the DATA object? Best Regards, Brent Fraser On 12/2/2010 10:30 PM, James Card wrote: > I'm trying to determine what syntax to use to create an OGR join to an > MS Access database *without* using ODBC (on a Windows server). Is that > possible? > > Current syntax is: DATA "SELECT * FROM LHFO_Routes shp LEFT JOIN > 'ODBC:Routes_MDB,vRoutesTheme'.vRoutesTheme mdb ON > shp.ROAD_NO_=mdb.RouteNumber" > From noreply at badoo.com Fri Dec 3 06:26:22 2010 From: noreply at badoo.com (Badoo) Date: Fri, 3 Dec 2010 14:26:22 +0000 Subject: [mapserver-users] =?utf-8?q?=C2=A1Robert_Zavaleta_te_ha_dejado_u?= =?utf-8?q?n_mensaje_en_Badoo!?= Message-ID: ?Tienes un nuevo mensaje en Badoo! Robert Zavaleta te dej? un mensaje. Haz click en este enlace para verlo: http://us1.badoo.com/01133949453/in/-eH1lElpOAc/?lang_id=7 M?s gente que tambi?n te est? esperando: Paul (Quito, Ecuador) Fior3 (Trujillo, Per?) Wihans_1 (Trujillo, Per?) http://us1.badoo.com/01133949453/in/-eH1lElpOAc/?lang_id=7 Si al hacer click sobre el enlace, no funciona, copia y pega la direcci?n en tu barra del navegador. Este email es parte del procedimiento para que leas los mensajes de Robert Zavaleta. Si has recibido este email por equivocaci?n, por favor, ign?ralo. Tras un corto periodo de tiempo el mensaje sera eliminado del sistema. ?Divi?rtete! El Equipo de Badoo Has recibido este email porque un usuario de Badoo te ha dejado un mensaje en Badoo. Este mensaje es autom?tico. Las respuestas a este mensaje no estan controladas y no ser?n contestadas. Si no quieres recibir m?s mensajes de Badoo, h?znoslo saber: http://us1.badoo.com/impersonation.phtml?lang_id=7&mail_code=21&email=mapserver-users%40lists.osgeo.org&secret=&invite_id=366014&user_id=1133949453 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.fonseca.ti at gmail.com Fri Dec 3 07:41:45 2010 From: jose.fonseca.ti at gmail.com (jose p fonseca filho) Date: Fri, 3 Dec 2010 13:41:45 -0200 Subject: [mapserver-users] (no subject) Message-ID: -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Card at calcad.com Fri Dec 3 08:19:36 2010 From: James.Card at calcad.com (James Card) Date: Fri, 3 Dec 2010 08:19:36 -0800 Subject: [mapserver-users] OGR Join To MS-Access Without Using ODBC In-Reply-To: <4CF90510.9030909@geoanalytic.com> References: Message-ID: On Fri, 03 Dec 2010 06:56:16 -0800, Brent Fraser wrote: > Is it the ODBC system you don't want to use, or just the need to > create an ODBC DataSource? To avoid creating a DataSource, I tried > using ogrinfo (v1.7.1) on the command line: We're hoping to eliminate ODBC entirely. If OGR has an alternate method to connect to Access that is faster, that is what we're looking for. Thanks for your tip on using the connection string for DSN-less connections; that may be useful too. -- James Card California CAD Solutions, Inc. 209-578-5580 - Voice 209-521-6493 - FAX From to.tonton at gmail.com Fri Dec 3 08:45:54 2010 From: to.tonton at gmail.com (Tonton) Date: Fri, 3 Dec 2010 17:45:54 +0100 Subject: [mapserver-users] trouble with wfs Message-ID: hello i receive error message when i try this request http://192.168.12.60/cgi-bin/mapserv?map=/var/www/geomod/demo.map&TYPENAME=Stations_de_Bus_TCL&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A2154&BBOX=606718.21606768,6453456.066322,1087998.2160677,6593744.066322 no data but i saw in postgis log that there found few i think i forget something in mapfile layer is explain like that LAYER CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=plaigis user=toto password=XXXX port=5432" DATA "geometry FROM restcl_bus_point" NAME "Stations_de_Bus_TCL" TYPE POINT DEBUG 5 DUMP TRUE LABELCACHE ON METADATA ows_TITLE "Stations_de_Bus_TCL" ##required "ows_SRS" "EPSG:2154" "gml_featureid" "8" ##required "gml_include_items" "all" ##optional END #Metadata LABELITEM nom_stt CLASS NAME "Stations_de_Bus_TCL" STYLE SYMBOL 7 SIZE 2 OUTLINECOLOR 128 128 255 COLOR 128 128 255 END LABEL FONT arial TYPE truetype ANTIALIAS true MAXSCALEDENOM 12500 POSITION lr SIZE 10 COLOR 0 0 0 End #LABEL END END #Layer -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Fri Dec 3 09:39:54 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 03 Dec 2010 10:39:54 -0700 Subject: [mapserver-users] Using OGR with a TILEINDEX layer Message-ID: <4CF92B6A.4060208@geoanalytic.com> I used ogrtindex to create a tileindex shapefile with absolute paths but get an error in mapserver v5.6.1 when attempting to use it: msDrawMap(): Image handling error. Failed to draw layer named 'LINE'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `LINE'. File not found or unsupported format LAYER NAME "index_west" TYPE TILEINDEX DATA "G:\GeoData\1_250k\Alberta\AltaLIS\250k_west.shp" END LAYER # LINE NAME 'LINE' STATUS on TYPE LINE TILEINDEX "index_west" CONNECTIONTYPE OGR # CONNECTION 'G:\GeoData\1_250k\Alberta\AltaLIS\82opos.dgn' # entities' INCLUDE "AltaLIS_250k_render_inc.map" END Does OGR work when referencing a TILEINDEX? -- Best Regards, Brent Fraser From peter.hopfgartner at r3-gis.com Fri Dec 3 09:55:58 2010 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Fri, 3 Dec 2010 18:55:58 +0100 (CET) Subject: [mapserver-users] Using Proj.4 from PHP MapScript Message-ID: <20101203175558.DB310167820F@mail.r3-gis.com> In some elder posts i've found some reference to a PHP binding for Proj.4, http://stackoverflow.com/questions/1939837/gis-spatial-functions-in-php, which seems it was included with MapServer. Anyway, if I have something like: I get PHP Fatal error: Call to undefined function pj_init() in /data/sites/test/proj.php on line 9 MapServer is version 5.6.5 from http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS, PHP MapScript is installed and included as a module. Regards, Peter R3 GIS Srl - GmbH http://www.r3-gis.com From jmckenna at gatewaygeomatics.com Fri Dec 3 10:38:21 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 03 Dec 2010 14:38:21 -0400 Subject: [mapserver-users] Using Proj.4 from PHP MapScript In-Reply-To: <20101203175558.DB310167820F@mail.r3-gis.com> References: <20101203175558.DB310167820F@mail.r3-gis.com> Message-ID: <4CF9391D.2070602@gatewaygeomatics.com> On 10-12-03 1:55 PM, Peter Hopfgartner wrote: > In some elder posts i've found some reference to a PHP binding for Proj.4, http://stackoverflow.com/questions/1939837/gis-spatial-functions-in-php, which seems it was included with MapServer. > Anyway, if I have something like: > > $projarray[0] = "proj=lcc"; > $projarray[1] = "ellps=GRS80"; > $projarray[2] = "lat_0=49"; > $projarray[3] = "lon_0=-95"; > $projarray[4] = "lat_1=49"; > $projarray[5] = "lat_2=77"; > > $pj = pj_init($projarray); > ?> > > I get > PHP Fatal error: Call to undefined function pj_init() in /data/sites/test/proj.php on line 9 > > MapServer is version 5.6.5 from http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS, PHP MapScript is installed and included as a module. > Hello, I'll be honest, I don't use these PHP/Proj bindings...but a quick search of the email archives returns instructions on how to compile this support: http://www.osgeo.org/pipermail/mapserver-users/2002-July/036165.html Others may have more uptodate advice for you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From warmerdam at pobox.com Fri Dec 3 10:43:52 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 03 Dec 2010 13:43:52 -0500 Subject: [mapserver-users] Using OGR with a TILEINDEX layer In-Reply-To: <4CF92B6A.4060208@geoanalytic.com> References: <4CF92B6A.4060208@geoanalytic.com> Message-ID: <4CF93A68.3060202@pobox.com> Brent Fraser wrote: > I used ogrtindex to create a tileindex shapefile with absolute paths but > get an error in mapserver v5.6.1 when attempting to use it: > > msDrawMap(): Image handling error. Failed to draw layer named > 'LINE'. > msOGRFileOpen(): OGR error. Open failed for OGR connection in layer > `LINE'. File not found or unsupported format > > LAYER > NAME "index_west" > TYPE TILEINDEX > DATA "G:\GeoData\1_250k\Alberta\AltaLIS\250k_west.shp" > END > > > LAYER # LINE > NAME 'LINE' > STATUS on > TYPE LINE > TILEINDEX "index_west" > CONNECTIONTYPE OGR > # CONNECTION 'G:\GeoData\1_250k\Alberta\AltaLIS\82opos.dgn' # entities' > > INCLUDE "AltaLIS_250k_render_inc.map" > END > > Does OGR work when referencing a TILEINDEX? Brent, I don't have an authoritative answer, but a brief skim of mapogr.cpp seems to suggest that it only supports tileindexes in OGR supported formats and not in a separate layer. So, the answer seems to be no, though you should be able to just specify the 250k_west.shp file directly as your tileindex in the main OGR layer. It would be desirable to rework mapogr.cpp to support the current more general concept of tileindexes but it might be a non-trivial amount of work and significant care would be required to avoid backward compatibility problems. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bfraser at geoanalytic.com Fri Dec 3 11:52:43 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 03 Dec 2010 12:52:43 -0700 Subject: [mapserver-users] Using OGR with a TILEINDEX layer In-Reply-To: <4CF93A68.3060202@pobox.com> References: <4CF92B6A.4060208@geoanalytic.com> <4CF93A68.3060202@pobox.com> Message-ID: <4CF94A8B.1040508@geoanalytic.com> Frank, That did the trick! For those interested, I used: LAYER # LINE NAME 'LINE' STATUS on TYPE LINE TILEINDEX "G:\GeoData\1_250k\Alberta\AltaLIS\250k_west.shp" # "index_west" CONNECTIONTYPE OGR INCLUDE "AltaLIS_250k_render_inc.map" END Thanks! Best Regards, Brent Fraser On 12/3/2010 11:43 AM, Frank Warmerdam wrote: > Brent Fraser wrote: >> I used ogrtindex to create a tileindex shapefile with absolute paths >> but get an error in mapserver v5.6.1 when attempting to use it: >> >> msDrawMap(): Image handling error. Failed to draw layer named >> 'LINE'. >> msOGRFileOpen(): OGR error. Open failed for OGR connection in layer >> `LINE'. File not found or unsupported format >> >> LAYER >> NAME "index_west" >> TYPE TILEINDEX >> DATA "G:\GeoData\1_250k\Alberta\AltaLIS\250k_west.shp" >> END >> >> >> LAYER # LINE >> NAME 'LINE' >> STATUS on >> TYPE LINE >> TILEINDEX "index_west" >> CONNECTIONTYPE OGR >> # CONNECTION 'G:\GeoData\1_250k\Alberta\AltaLIS\82opos.dgn' # >> entities' >> >> INCLUDE "AltaLIS_250k_render_inc.map" >> END >> >> Does OGR work when referencing a TILEINDEX? > > Brent, > > I don't have an authoritative answer, but a brief skim of mapogr.cpp > seems > to suggest that it only supports tileindexes in OGR supported formats and > not in a separate layer. So, the answer seems to be no, though you > should > be able to just specify the 250k_west.shp file directly as your tileindex > in the main OGR layer. > > It would be desirable to rework mapogr.cpp to support the current more > general concept of tileindexes but it might be a non-trivial amount of > work > and significant care would be required to avoid backward compatibility > problems. > > Best regards, From peter.hopfgartner at r3-gis.com Fri Dec 3 23:41:07 2010 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Sat, 4 Dec 2010 08:41:07 +0100 (CET) Subject: [mapserver-users] Using Proj.4 from PHP MapScript Message-ID: <20101204074107.497B21678217@mail.r3-gis.com> This seems to work. Thank you! Peter Hopfgartner R3 GIS Srl - GmbH http://www.r3-gis.com --------Jeff McKenna wrote-------- Subject: Re: [mapserver-users] Using Proj.4 from PHP MapScript Date: 03.12.2010 19:38 >On 10-12-03 1:55 PM, Peter Hopfgartner wrote: >> In some elder posts i've found some reference to a PHP binding for >Proj.4, >http://stackoverflow.com/questions/1939837/gis-spatial-functions-in-php, >which seems it was included with MapServer. >> Anyway, if I have something like: >> >> > $projarray[0] = "proj=lcc"; >> $projarray[1] = "ellps=GRS80"; >> $projarray[2] = "lat_0=49"; >> $projarray[3] = "lon_0=-95"; >> $projarray[4] = "lat_1=49"; >> $projarray[5] = "lat_2=77"; >> >> $pj = pj_init($projarray); >> ?> >> >> I get >> PHP Fatal error: Call to undefined function pj_init() in >/data/sites/test/proj.php on line 9 >> >> MapServer is version 5.6.5 from >http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS, PHP MapScript is >installed and included as a module. >> > >Hello, > >I'll be honest, I don't use these PHP/Proj bindings...but a quick search >of the email archives returns instructions on how to compile this >support: >http://www.osgeo.org/pipermail/mapserver-users/2002-July/036165.html > >Others may have more uptodate advice for you. > >-jeff > > > >-- >Jeff McKenna >MapServer Consulting and Training Services >http://www.gatewaygeomatics.com/ > > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > From sahaaswina at yahoo.com Sat Dec 4 11:04:13 2010 From: sahaaswina at yahoo.com (Saha Aswina) Date: Sat, 4 Dec 2010 11:04:13 -0800 (PST) Subject: [mapserver-users] WFS GetFeature Help... Message-ID: <198010.11345.qm@web31101.mail.mud.yahoo.com> Dear everyone, I'm new to mapserver. When I want to using wfs getfeature why I just get a lot of number, whats wrong?? http://www.dharmawan.web.id/cgi-bin/mapserv?MAP=/home/dharmawa/www/map_file/fix.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=kecamatan&MAXFEATURES=1&OUTPUTFORMAT=gml3 I don't get same xml code like the example from web http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=continents&MAXFEATURES=1&OUTPUTFORMAT=gml3 thank you From michael.smith at usace.army.mil Sat Dec 4 11:31:21 2010 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Sat, 04 Dec 2010 14:31:21 -0500 Subject: [mapserver-users] WFS GetFeature Help... In-Reply-To: <198010.11345.qm@web31101.mail.mud.yahoo.com> Message-ID: Saha, You are getting XML back. Just do a view source on the result. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 12/4/10 2:04 PM, "Saha Aswina" wrote: > Dear everyone, > > I'm new to mapserver. > When I want to using wfs getfeature why I just get a lot of number, whats > wrong?? > > http://www.dharmawan.web.id/cgi-bin/mapserv?MAP=/home/dharmawa/www/map_file/fi > x.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=kecamatan&MAXFEATU > RES=1&OUTPUTFORMAT=gml3 > > I don't get same xml code like the example from web > http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfea > ture&TYPENAME=continents&MAXFEATURES=1&OUTPUTFORMAT=gml3 > > thank you > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From aeskreis at gmail.com Sun Dec 5 00:17:34 2010 From: aeskreis at gmail.com (Adam Eskreis) Date: Sun, 5 Dec 2010 03:17:34 -0500 Subject: [mapserver-users] Map Rotation Message-ID: Hey all, I am trying to do a rotation on my map and having some problems. I tried using the ANGLE parameter in my MAP object, but since I am using a tiled layer, this was completely useless. I tried doing a CSS3 rotation, but this is a less desirable solution, and is having some unwanted side effects that I can't seem to get rid of. Just wanted to send a message out to the list and see if anyone out there has tried to do this and succeeded, and if so, how did you accomplish it? Any replies would be much appreciated. Thanks. -Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From aeskreis at gmail.com Sun Dec 5 00:19:14 2010 From: aeskreis at gmail.com (Adam Eskreis) Date: Sun, 5 Dec 2010 03:19:14 -0500 Subject: [mapserver-users] Re: Map Rotation In-Reply-To: References: Message-ID: Whoops, forgot to mention, I am using EPSG:900913 for my output projection at the moment, and my layer is using EPSG:4326. On Sun, Dec 5, 2010 at 3:17 AM, Adam Eskreis wrote: > Hey all, > > I am trying to do a rotation on my map and having some problems. I tried > using the ANGLE parameter in my MAP object, but since I am using a tiled > layer, this was completely useless. I tried doing a CSS3 rotation, but this > is a less desirable solution, and is having some unwanted side effects that > I can't seem to get rid of. Just wanted to send a message out to the list > and see if anyone out there has tried to do this and succeeded, and if so, > how did you accomplish it? > > Any replies would be much appreciated. Thanks. > > -Adam > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Sun Dec 5 03:00:27 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 5 Dec 2010 13:00:27 +0200 Subject: [mapserver-users] WFS GetFeature Help... References: Message-ID: Hi, The link seems to work and it gives me XML back. However, Saha made a non-standard request with WFS 1.0.0. and outputformat=gml3. Mapserver sends back data with geometries using GML3, but I am not sure if the output is totally valid. A snippet from the output shows that the schemaLocation in this GML3 file points to WFS 1.0.0 schema Doing DescribeFeatureType by using that URL gives: However, gml in the GetFeature is not of that version. I guess that clients which are doing schema validation may fail because of that and namespace for gml should poit to Anyway, perhaps it would more reliable to use the defaults, WFS 1.0.0 + gml2 or WFS 1.1.0 + gml3. Have you a good reason to mix those two? -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Smith, Michael ERDC-CRREL-NH L?hetetty: la 4.12.2010 21:31 Vastaanottaja: Saha Aswina; mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] WFS GetFeature Help... Saha, You are getting XML back. Just do a view source on the result. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 12/4/10 2:04 PM, "Saha Aswina" wrote: > Dear everyone, > > I'm new to mapserver. > When I want to using wfs getfeature why I just get a lot of number, whats > wrong?? > > http://www.dharmawan.web.id/cgi-bin/mapserv?MAP=/home/dharmawa/www/map_file/fi > x.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=kecamatan&MAXFEATU > RES=1&OUTPUTFORMAT=gml3 > > I don't get same xml code like the example from web > http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfea > ture&TYPENAME=continents&MAXFEATURES=1&OUTPUTFORMAT=gml3 > > thank you > > > _______________________________________________ > 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 sahaaswina at yahoo.com Sun Dec 5 13:42:18 2010 From: sahaaswina at yahoo.com (Saha Aswina) Date: Sun, 5 Dec 2010 13:42:18 -0800 (PST) Subject: [mapserver-users] WFS GetFeature Help... In-Reply-To: Message-ID: <669512.60785.qm@web31101.mail.mud.yahoo.com> Dear Jukka, Thanks for your info, what I need the output using GML3. I'll using the WFS version 1.1.0 then. Regard, Saha Aswina --- Pada Ming, 5/12/10, Rahkonen Jukka menulis: > Dari: Rahkonen Jukka > Judul: Re: [mapserver-users] WFS GetFeature Help... > Kepada: "Smith, Michael ERDC-CRREL-NH" , "Saha Aswina" , mapserver-users at lists.osgeo.org > Tanggal: Minggu, 5 Desember, 2010, 6:00 PM > Hi, > > The link seems to work and it gives me XML back.? > However, Saha made a non-standard request with WFS 1.0.0. > and outputformat=gml3. Mapserver sends back data with > geometries using GML3, but I am not sure if the output is > totally valid. > A snippet from the output shows that the schemaLocation in > this GML3 file points to WFS 1.0.0 schema > > xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver http://www.dharmawan.web.id/cgi-bin/mapserv?map=/home/dharmawa/www/map_file/fix.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=kecamatan&OUTPUTFORMAT=SFE_XMLSCHEMA"> > > Doing DescribeFeatureType by using that URL gives: > schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/> > > However, gml in the GetFeature is not of that version. I > guess that clients which are doing schema validation may > fail because of that and namespace for gml should poit to > schemaLocation="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"/> > > Anyway, perhaps it would more reliable to use the defaults, > WFS 1.0.0 + gml2 or WFS 1.1.0 + gml3. Have you a good reason > to mix those two? > > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > puolesta: Smith, Michael ERDC-CRREL-NH > L?hetetty: la 4.12.2010 21:31 > Vastaanottaja: Saha Aswina; mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] WFS GetFeature Help... > > Saha, > > You are getting XML back. Just do a view source on the > result. > > Mike > > > -- > Michael Smith > Remote Sensing/GIS Center > US Army Corps of Engineers > > > > On 12/4/10 2:04 PM, "Saha Aswina" > wrote: > > > Dear everyone, > > > > I'm new to mapserver. > > When I want to using wfs getfeature why I just get a > lot of number, whats > > wrong?? > > > > http://www.dharmawan.web.id/cgi-bin/mapserv?MAP=/home/dharmawa/www/map_file/fi > > > x.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=kecamatan&MAXFEATU > > RES=1&OUTPUTFORMAT=gml3 > > > > I don't get same xml code like the example from web > > http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfea > > > ture&TYPENAME=continents&MAXFEATURES=1&OUTPUTFORMAT=gml3 > > > > thank you > > > > > > _______________________________________________ > > 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 sahaaswina at yahoo.com Sun Dec 5 13:43:30 2010 From: sahaaswina at yahoo.com (Saha Aswina) Date: Sun, 5 Dec 2010 13:43:30 -0800 (PST) Subject: [mapserver-users] WFS GetFeature Help... In-Reply-To: Message-ID: <293460.55479.qm@web31102.mail.mud.yahoo.com> thanks Smith, my bad... Regard, Saha --- Pada Ming, 5/12/10, Smith, Michael ERDC-CRREL-NH menulis: > Dari: Smith, Michael ERDC-CRREL-NH > Judul: Re: [mapserver-users] WFS GetFeature Help... > Kepada: "Saha Aswina" , mapserver-users at lists.osgeo.org > Tanggal: Minggu, 5 Desember, 2010, 2:31 AM > Saha, > > You are getting XML back. Just do a view source on the > result. > > Mike > > > -- > Michael Smith > Remote Sensing/GIS Center > US Army Corps of Engineers > > > > On 12/4/10 2:04 PM, "Saha Aswina" > wrote: > > > Dear everyone, > > > > I'm new to mapserver. > > When I want to using wfs getfeature why I just get a > lot of number, whats > > wrong?? > > > > http://www.dharmawan.web.id/cgi-bin/mapserv?MAP=/home/dharmawa/www/map_file/fi > > > x.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=kecamatan&MAXFEATU > > RES=1&OUTPUTFORMAT=gml3 > > > > I don't get same xml code like the example from web > > http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfea > > > ture&TYPENAME=continents&MAXFEATURES=1&OUTPUTFORMAT=gml3 > > > > thank you > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From to.tonton at gmail.com Mon Dec 6 02:23:16 2010 From: to.tonton at gmail.com (Tonton) Date: Mon, 6 Dec 2010 11:23:16 +0100 Subject: [mapserver-users] how to use sld file with wms Message-ID: hello i read in mapserver documentation that we can use SLD style definition in server side but i dont find how to . where to write in mapfile the sld_body in each layer or in map object ? i don't use mapscript or php request does the only way is to set it in the url request ? no sld_body or include ? regards tonton -------------- next part -------------- An HTML attachment was scrubbed... URL: From max1000 at gmail.com Mon Dec 6 09:41:27 2010 From: max1000 at gmail.com (rai 8) Date: Mon, 6 Dec 2010 18:41:27 +0100 Subject: [mapserver-users] How to add attributes to feature/shape with mapscript java? Message-ID: Hi!, I trying to add features to a layer with mapscript in a WFS server, there isn't any method to set attributes directly to a feature or a shape. I found initValues and setValue to set value to a shape object but in a xml/gml response it doesn't appear. Anyone knows a way to do this? // add feature shapeObj shape = new shapeObj( mapscriptConstants.MS_SHP_POINTM ); shape.initValues(8); lineObj line = new lineObj(); pointObj point = new pointObj(2.160690, 41.479881, 1); line.add(point); shape.add( line); shape.setValue(0, "attr1"); shape.setValue(1, "attr2"); System.out.println( shape.getValue(0) + " " + shape.getValue(1) + " " + shape.getValue(2) ); layer.addFeature(shape ); shape = new shapeObj( mapscriptConstants.MS_SHP_POINTM ); line = new lineObj(); point = new pointObj(2.170000, 41.480000, 1); line.add(point); shape.add( line); layer.addFeature(shape ); Another workaround I found is generated a dbf file with all features and attributes that I want and then load a mapfile pointing to this dbf file, but this is inefficient. thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hildebrand at afsc.ca Mon Dec 6 11:18:04 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Mon, 6 Dec 2010 12:18:04 -0700 Subject: [mapserver-users] street maps References: Message-ID: <9188AB5935664040805E01E348A2B81D1BF6904D@lacex1.afsc.ads> I want to add a street map (OpenStreetMap, Google, Bing, etc.) as a WMS layer but I'm not sure which service to use and what the URL would be to try them out? My AOI is only about 10 by 10 degrees wide. Any suggestions? =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From boolean10001 at yahoo.com Mon Dec 6 11:18:09 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Mon, 6 Dec 2010 11:18:09 -0800 (PST) Subject: [mapserver-users] WMS image doesn't shows at major scales Message-ID: <996340.77883.qm@web38208.mail.mud.yahoo.com> Hi to all, I have a problem here with an WMS layer, and have no clue about what could be happening. I have an ECW file with the following info: Driver: ECW/ERMapper Compressed Wavelets Files: mosaico_spot_2009.ecw Size is 192034, 184370 Coordinate System is `' Origin = (425473.750000000000000,2527371.250000000000000) Pixel Size = (2.500000000000000,-2.500000000000000) Corner Coordinates: Upper Left ( 425473.750, 2527371.250) Lower Left ( 425473.750, 2066446.250) Upper Right ( 905558.750, 2527371.250) Lower Right ( 905558.750, 2066446.250) Center ( 665516.250, 2296908.750) Band 1 Block=192034x1 Type=Byte, ColorInterp=Red Overviews: arbitrary Metadata: LAYER_TYPE=athematic Band 2 Block=192034x1 Type=Byte, ColorInterp=Green Overviews: arbitrary Metadata: LAYER_TYPE=athematic Band 3 Block=192034x1 Type=Byte, ColorInterp=Blue Metadata: LAYER_TYPE=athematic It is provided as a WMS and here is the MAP file contents: MAP NAME 'spot' SIZE 800 600 UNITS meters DEBUG 5 CONFIG "MS_ERRORFILE" "/var/www/html/spot.log" EXTENT 425473 2066446 905559 2527371 PROJECTION 'proj=utm' 'ellps=WGS84' 'datum=WGS84' 'zone=13' 'north' 'nodefs' END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END METADATA 'wms_title' 'SPOT' 'wms_onlineresource' 'http://sitel.jalisco.gob.mx/cgi-bin/spot' 'wms_srs' 'EPSG:32613' 'wms_fees' 'none' 'wms_contactperson' 'IC Carlos Ruiz' 'wms_contactelectronicmailaddress' 'cruizch at gmail.com' END LAYER NAME 'spot' TYPE RASTER DATA '/var/www/html/raster/spot.ecw' STATUS DEFAULT PROJECTION 'proj=utm' 'ellps=WGS84' 'datum=WGS84' 'zone=13' 'north' 'no_defs' END METADATA 'wms_title' 'Imagen SPOT' END END END Everything works fine above the 1:152,000 scale, but when you try to reach major scales, it shows nothing. The map has no MINSCALEDENOM nor MAXSCALEDENOM. Taking a look at the log file, nothing's wrong. If I set the "MS_NONSQUARE" config key throws: msDrawMap(): kicking into non-squarepixel preserving mode. but nothing yet shows beyond 1:152,000. Does anyone have a clue about what's wrong ? I'm using Mapserver 5.6.5 Thanks in advance IC Carlos Ruiz -------------- next part -------------- An HTML attachment was scrubbed... URL: From msubedee at yahoo.com Mon Dec 6 11:20:19 2010 From: msubedee at yahoo.com (Mukesh Subedee) Date: Mon, 6 Dec 2010 11:20:19 -0800 (PST) Subject: [mapserver-users] PhP/Mapscript expression handling Message-ID: <507013.45335.qm@web37407.mail.mud.yahoo.com> Anyone willing to share a simple example to handle Expression in Mapfile? I have a Mapfile with few layers and want to play with the EXPRESSION parameter in PHP/Mapscript so that I could add dynamism in displaying colors for specific region as user's requirement. However I am able to do it with CGI Application. Any help would be much appreciated! Thanks, Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.smith at usace.army.mil Mon Dec 6 11:23:35 2010 From: michael.smith at usace.army.mil (Smith, Michael D ERDC-CRREL-NH) Date: Mon, 06 Dec 2010 14:23:35 -0500 Subject: [mapserver-users] WMS image doesn't shows at major scales In-Reply-To: <996340.77883.qm@web38208.mail.mud.yahoo.com> Message-ID: Carlos, Can you set DEBUG 5 at both the LAYER and MAP level and see what shows up in the error log? Also I note that you are specifying the projection at the WMS level in EPSG terms but not at the MAP and LAYER levels. You should use the EPSG code at the MAP and LAYER projection blocks as MapServer does not know that your projection text and the EPSG codes are equivalent so you will be undergoing reprojection on each call. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers Hanover, NH On 12/6/10 2:18 PM, "Carlos Ruiz" wrote: > Hi to all, > > I have a problem here with an WMS layer, and have no clue about what could be > happening. I have an ECW file > with the following info: > > Driver: ECW/ERMapper Compressed Wavelets > Files: mosaico_spot_2009.ecw > Size is 192034, 184370 > Coordinate System is `' > Origin = (425473.750000000000000,2527371.250000000000000) > Pixel Size = (2.500000000000000,-2.500000000000000) > Corner Coordinates: > Upper Left ( 425473.750, 2527371.250) > Lower Left ( 425473.750, 2066446.250) > Upper Right ( 905558.750, 2527371.250) > Lower Right ( 905558.750, 2066446.250) > Center ( 665516.250, 2296908.750) > Band 1 Block=192034x1 Type=Byte, ColorInterp=Red > Overviews: arbitrary > Metadata: > LAYER_TYPE=athematic > Band 2 Block=192034x1 Type=Byte, ColorInterp=Green > Overviews: arbitrary > Metadata: > LAYER_TYPE=athematic > Band 3 Block=192034x1 Type=Byte, ColorInterp=Blue > Metadata: > LAYER_TYPE=athematic > > It is provided as a WMS and here is the MAP file contents: > > MAP > > NAME 'spot' > SIZE 800 600 > UNITS meters > > DEBUG 5 > CONFIG "MS_ERRORFILE" "/var/www/html/spot.log" > > EXTENT 425473 2066446 905559 2527371 > > PROJECTION > 'proj=utm' > 'ellps=WGS84' > 'datum=WGS84' > 'zone=13' > 'north' > 'nodefs' > END > > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpg" > END > > METADATA > 'wms_title' 'SPOT' > 'wms_onlineresource' > 'http://sitel.jalisco.gob.mx/cgi-bin/spot' > 'wms_srs' 'EPSG:32613' > 'wms_fees' 'none' > 'wms_contactperson' 'IC Carlos > Ruiz' > 'wms_contactelectronicmailaddress' > 'cruizch at gmail.com' > END > > LAYER > > NAME 'spot' > TYPE RASTER > DATA '/var/www/html/raster/spot.ecw' > STATUS DEFAULT > > PROJECTION > 'proj=utm' > 'ellps=WGS84' > 'datum=WGS84' > 'zone=13' > 'north' > 'no_defs' > END > > METADATA > 'wms_title' 'Imagen SPOT' > END > > END > > END > > Everything works fine above the 1:152,000 scale, but when you try to reach > major scales, it shows nothing. The > map has no MINSCALEDENOM nor MAXSCALEDENOM. > > Taking a look at the log file, nothing's wrong. If I set the "MS_NONSQUARE" > config key throws: > > msDrawMap(): kicking into non-squarepixel preserving mode. > > but nothing yet shows beyond 1:152,000. > > Does anyone have a clue about what's wrong ? I'm using Mapserver 5.6.5 > > Thanks in advance > > IC Carlos Ruiz > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Dec 6 11:59:22 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 06 Dec 2010 15:59:22 -0400 Subject: [mapserver-users] how to use sld file with wms In-Reply-To: References: Message-ID: <4CFD409A.4030908@gatewaygeomatics.com> On 10-12-06 6:23 AM, Tonton wrote: > hello i read in mapserver documentation that we can use SLD style > definition in server side but i dont find how to . > > where to write in mapfile the sld_body in each layer or in map object ? > > i don't use mapscript or php request > > does the only way is to set it in the url request ? no sld_body or > include ? I'm not sure if it was implemented any other way. There was discussions on this mailing list several years ago, but I don't know the outcome: http://osgeo-org.1803224.n2.nabble.com/server-side-SLD-support-td1997798.html http://osgeo-org.1803224.n2.nabble.com/server-side-SLD-support-td1998273.html I have used PHP MapScript to apply SLDs on the server side, such as: ******************************* getLayerByName("country_bounds"); //apply SLD $oLayer->applySLD('country_boundsxxxNA3DESCAfricacenter-line#0000ff2.0'); // set image size $oMap->setsize(400, 300); // set image format $oMap->selectoutputformat("png"); // draw map $oImage = $oMap->draw(); // set header header("Content-type: image/gif"); // output map $url = $oImage->saveImage(""); ?> ************************************** -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From michael.smith at usace.army.mil Mon Dec 6 12:45:18 2010 From: michael.smith at usace.army.mil (Smith, Michael D ERDC-CRREL-NH) Date: Mon, 06 Dec 2010 15:45:18 -0500 Subject: [mapserver-users] WMS image doesn't shows at major scales In-Reply-To: <587928.72367.qm@web38204.mail.mud.yahoo.com> Message-ID: It appears that it is reading the data. Could be be that the color values are not between 0 and 255? Perhaps you need to add a PROCESSING section? Does this display properly is another viewer? Also, you should reply back to the list as well. There are many people that may be able to help. M -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers Hanover, NH On 12/6/10 3:29 PM, "Carlos Ruiz" wrote: > Michael, > > Thanks for the reply. I've set the DEBUG 5 config key at the LAYER section, > I've reproduced > the steps to get nothing and this is the log's contents: > > > mapserv request processing time (msLoadMap not incl.): 0.084s > msFreeMap(): freeing map at 0xa029150. > freeLayer(): freeing layer at 0xa030a28. > mapserv request processing time (msLoadMap not incl.): 0.083s > msFreeMap(): freeing map at 0x9dd6150. > freeLayer(): freeing layer at 0x9ddda28. > msDrawMap(): kicking into non-square pixel preserving mode. > msDrawRasterLayerLow(imagen): entering. > msResampleGDALToMap in effect: cellsize = 298.004345 > msDrawGDAL(imagen): using RAW_WINDOW=0 0 192034 184370, dst=0,0,1611,1546 > msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0 > msDrawMap(): Layer 0 (imagen), 0.897s > msDrawMap(): Drawing Label Cache, 0.000s > msDrawMap() total time: 0.898s > msSaveImage() total time: 3.291s > mapserv request processing time (msLoadMap not incl.): 4.214s > msFreeMap(): freeing map at 0x92376f0. > freeLayer(): freeing layer at 0x923efc8. > msDrawMap(): kicking into non-square pixel preserving mode. > msDrawRasterLayerLow(imagen): entering. > msResampleGDALToMap in effect: cellsize = 22.479058 > msDrawGDAL(imagen): using RAW_WINDOW=70800 88927 17174 14962, > dst=0,0,1910,1664 > msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0 > msDrawMap(): Layer 0 (imagen), 0.525s > msDrawMap(): Drawing Label Cache, 0.000s > msDrawMap() total time: 0.525s > msSaveImage() total time: 1.415s > mapserv request processing time (msLoadMap not incl.): 1.967s > msFreeMap(): freeing map at 0x8bc96f0. > freeLayer(): freeing layer at 0x8bd0fc8. > msDrawMap(): kicking into non-square pixel preserving mode. > msDrawRasterLayerLow(imagen): entering. > msResampleGDALToMap in effect: cellsize = 22.479058 > msDrawGDAL(imagen): using RAW_WINDOW=70800 88927 17174 14962, > dst=0,0,1910,1664 > msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0 > msDrawMap(): Layer 0 (imagen), 0.524s > msDrawMap(): Drawing Label Cache, 0.000s > msDrawMap() total time: 0.524s > msSaveImage() total time: 1.528s > mapserv request processing time (msLoadMap not incl.): 2.078s > msFreeMap(): freeing map at 0x99ca6f0. > freeLayer(): freeing layer at 0x99d1fc8. > > > I didn't noticed about the EPSG matters, thanks, I just change it using > init=epsg:32613. > > IC Carlos Ruiz > > > From: "Smith, Michael D ERDC-CRREL-NH" > To: Carlos Ruiz ; mapserver-users > > Sent: Mon, December 6, 2010 1:23:35 PM > Subject: Re: [mapserver-users] WMS image doesn't shows at major scales > > Re: [mapserver-users] WMS image doesn't shows at major scales Carlos, > > Can you set DEBUG 5 at both the LAYER and MAP level and see what shows up in > the error log? > > Also I note that you are specifying the projection at the WMS level in EPSG > terms but not at the MAP and LAYER levels. You should use the EPSG code at the > MAP and LAYER projection blocks as MapServer does not know that your > projection text and the EPSG codes are equivalent so you will be undergoing > reprojection on each call. > > Mike > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Mon Dec 6 13:02:11 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 06 Dec 2010 14:02:11 -0700 Subject: [mapserver-users] street maps In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF6904D@lacex1.afsc.ads> References: <9188AB5935664040805E01E348A2B81D1BF6904D@lacex1.afsc.ads> Message-ID: <4CFD4F53.9070105@geoanalytic.com> David, This thread may get you started with OpenStreetMap. Be sure to read Google's and Bing's Term Of Service. http://lists.osgeo.org/pipermail/mapserver-users/2010-July/066061.html Best Regards, Brent Fraser On 12/6/2010 12:18 PM, David Hildebrand wrote: > > I want to add a street map (OpenStreetMap, Google, Bing, etc.) as a > WMS layer but I'm not sure which service to use and what the URL would > be to try them out? My AOI is only about 10 by 10 degrees wide. > > Any suggestions? > > =========================== > David V. Hildebrand > Agriculture Financial Services Corporation > (403) 782-8239 > > www.afsc.ca _<_http://www.afsc.ca > _> > _This communication is intended for the use of the recipient to which > it is addressed, and may contain confidential, personal and/or > privileged information. Please contact Agriculture Financial Services > Corporation immediately if you are not the intended recipient of this > communication, and do not copy, distribute, or take action relying on > it. Any communication received in error, or subsequent reply, should > be deleted or destroyed. Please consider the environment before > printing this email. > > > _______________________________________________ > 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 to.tonton at gmail.com Tue Dec 7 01:58:31 2010 From: to.tonton at gmail.com (Tonton) Date: Tue, 7 Dec 2010 10:58:31 +0100 Subject: [mapserver-users] Layer description Message-ID: it is about this error message that seems clear but i can't resolv ! i have to had something like Layer .. Metadata .. "wfs_featureid" "something " ... end class ... end end Someone may explain or show sample for me please? regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From to.tonton at gmail.com Tue Dec 7 02:47:33 2010 From: to.tonton at gmail.com (Tonton) Date: Tue, 7 Dec 2010 11:47:33 +0100 Subject: [mapserver-users] Re: Layer description In-Reply-To: References: Message-ID: i gat it ! "gml_featureid" "fid|gid" ##required On Tue, Dec 7, 2010 at 10:58 AM, Tonton wrote: > it is about this error message that seems clear but i can't resolv ! > > > i have to had something like > > Layer > .. > Metadata > .. > "wfs_featureid" "something " > ... > end > class > ... > end > end > > Someone may explain or show sample for me please? > > regards > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hildebrand at afsc.ca Tue Dec 7 15:56:28 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Tue, 7 Dec 2010 16:56:28 -0700 Subject: [mapserver-users] displaying 3-band images References: <910415.30922.qm@web33205.mail.mud.yahoo.com> Message-ID: <9188AB5935664040805E01E348A2B81D1BF6904F@lacex1.afsc.ads> I have a TIFF image I want to display. The image is a 3-band 8-bit image. The server logs show no error but my display is coming out blank. I am using ms4w with GDAL support so I'm not sure what is going wrong here. A sample of the mapfile is shown below. I get a parsing error if I include IMAGEMODE "RGB" in the layer definition. Any suggestions? LAYER NAME "awifs" PROCESSING "BANDS=3,2,1" PROCESSING "SCALE=AUTO" METADATA "wms_title" "awifs" "wms_opaque" "1" "ows_resolution" "56 56" "wms_srs" "EPSG:43001" "wms_extent" "-701344.000 -417256.000 803040.000 711368.000" "wcs_srs" "EPSG:43001" "wcs_extent" "-701344.000 -417256.000 803040.000 711368.000" END STATUS on TYPE raster DATA "//Plcoressatsb01/AWiFS/initial_delivery/images/July.tif" PROJECTION "init=epsg:43001" END EXTENT -701344.000 -417256.000 803040.000 711368.000 UNITS meters END =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. _____ From: Brent Wood [mailto:pcreso at yahoo.com] Sent: Monday, December 06, 2010 4:37 PM To: David Hildebrand; Brent Fraser Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] street maps Sigh, Get the link right!! PDF summarising Bing/Google licelice issues http://victorianspatialcouncil.org/cms/library/attachments/VSC%20Guidanc e%20Note%201_T&C%20Use%20of%20%20Google%20Maps%20and%20Bing%20Maps%20v1. 0-May%202010.pdf Brent Wood --- On Tue, 12/7/10, Brent Fraser wrote: From: Brent Fraser Subject: Re: [mapserver-users] street maps To: "David Hildebrand" Cc: mapserver-users at lists.osgeo.org Date: Tuesday, December 7, 2010, 10:02 AM David, This thread may get you started with OpenStreetMap. Be sure to read Google's and Bing's Term Of Service. http://lists.osgeo.org/pipermail/mapserver-users/2010-July/066061.html Best Regards, Brent Fraser On 12/6/2010 12:18 PM, David Hildebrand wrote: I want to add a street map (OpenStreetMap, Google, Bing, etc.) as a WMS layer but I'm not sure which service to use and what the URL would be to try them out? My AOI is only about 10 by 10 degrees wide. Any suggestions? =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -----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 mschulz at webgis.de Wed Dec 8 00:20:11 2010 From: mschulz at webgis.de (Michael Schulz) Date: Wed, 8 Dec 2010 09:20:11 +0100 Subject: [mapserver-users] displaying 3-band images In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF6904F@lacex1.afsc.ads> References: <910415.30922.qm@web33205.mail.mud.yahoo.com> <9188AB5935664040805E01E348A2B81D1BF6904F@lacex1.afsc.ads> Message-ID: Hi, are you sure your raster can be read by mapserver cgi? Maybe try adding the ON_MISSING_DATA config option at map file level to rule out this error: CONFIG "ON_MISSING_DATA" "FAIL" Also, I think IMAGEMODE is a parameter of the outputformat object not the layer object. Cheers, Michael 2010/12/8 David Hildebrand > I have a TIFF image I want to display. The image is a 3-band 8-bit > image. The server logs show no error but my display is coming out blank. I > am using ms4w with GDAL support so I?m not sure what is going wrong here. A > sample of the mapfile is shown below. I get a parsing error if I include > IMAGEMODE ?RGB? in the layer definition. Any suggestions? > > > > LAYER > > NAME "awifs" > > PROCESSING "BANDS=3,2,1" > > PROCESSING "SCALE=AUTO" > > METADATA > > "wms_title" "awifs" > > "wms_opaque" "1" > > "ows_resolution" "56 56" > > "wms_srs" "EPSG:43001" > > "wms_extent" "-701344.000 -417256.000 803040.000 711368.000" > > "wcs_srs" "EPSG:43001" > > "wcs_extent" "-701344.000 -417256.000 803040.000 711368.000" > > END > > STATUS on > > TYPE raster > > DATA "//Plcoressatsb01/AWiFS/initial_delivery/images/July.tif" > > PROJECTION > > "init=epsg:43001" > > END > > EXTENT -701344.000 -417256.000 803040.000 711368.000 > > UNITS meters > > END > > > > > > =========================== > David V. Hildebrand > Agriculture Financial Services Corporation > (403) 782-8239 > > www.afsc.ca* <*http://www.afsc.ca*> > *This communication is intended for the use of the recipient to which it > is addressed, and may contain confidential, personal and/or privileged > information. Please contact Agriculture Financial Services Corporation > immediately if you are not the intended recipient of this communication, and > do not copy, distribute, or take action relying on it. Any communication > received in error, or subsequent reply, should be deleted or destroyed. > Please consider the environment before printing this email. > ------------------------------ > > *From:* Brent Wood [mailto:pcreso at yahoo.com] > *Sent:* Monday, December 06, 2010 4:37 PM > *To:* David Hildebrand; Brent Fraser > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] street maps > > > > > Sigh, > > Get the link right!! > > PDF summarising Bing/Google licelice issues > > > http://victorianspatialcouncil.org/cms/library/attachments/VSC%20Guidance%20Note%201_T&C%20Use%20of%20%20Google%20Maps%20and%20Bing%20Maps%20v1.0-May%202010.pdf > > > Brent Wood > > --- On *Tue, 12/7/10, Brent Fraser * wrote: > > > From: Brent Fraser > Subject: Re: [mapserver-users] street maps > To: "David Hildebrand" > Cc: mapserver-users at lists.osgeo.org > Date: Tuesday, December 7, 2010, 10:02 AM > > David, > > This thread may get you started with OpenStreetMap. Be sure to read > Google's and Bing's Term Of Service. > > http://lists.osgeo.org/pipermail/mapserver-users/2010-July/066061.html > > Best Regards, > > Brent Fraser > > > On 12/6/2010 12:18 PM, David Hildebrand wrote: > > I want to add a street map (OpenStreetMap, Google, Bing, etc.) as a WMS > layer but I?m not sure which service to use and what the URL would be to try > them out? My AOI is only about 10 by 10 degrees wide. > > > > Any suggestions? > > > > =========================== > David V. Hildebrand > Agriculture Financial Services Corporation > (403) 782-8239 > > www.afsc.ca* <*http://www.afsc.ca*> > *This communication is intended for the use of the recipient to which it > is addressed, and may contain confidential, personal and/or privileged > information. Please contact Agriculture Financial Services Corporation > immediately if you are not the intended recipient of this communication, and > do not copy, distribute, or take action relying on it. Any communication > received in error, or subsequent reply, should be deleted or destroyed. > Please consider the environment before printing this email. > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -----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 > > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg -------------- next part -------------- An HTML attachment was scrubbed... URL: From jamali.mojtaba at gmail.com Wed Dec 8 00:27:52 2010 From: jamali.mojtaba at gmail.com (mojtabajml) Date: Wed, 8 Dec 2010 00:27:52 -0800 (PST) Subject: [mapserver-users] Re: msPostGISLayerWhichShapes() error In-Reply-To: <1265741967451-4543171.post@n2.nabble.com> References: <1265741967451-4543171.post@n2.nabble.com> Message-ID: <1291796872874-5814516.post@n2.nabble.com> I have a same problem! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/msPostGISLayerWhichShapes-error-tp4543171p5814516.html Sent from the Mapserver - User mailing list archive at Nabble.com. From max1000 at gmail.com Wed Dec 8 06:39:00 2010 From: max1000 at gmail.com (rai 8) Date: Wed, 8 Dec 2010 15:39:00 +0100 Subject: [mapserver-users] Re: How to add attributes to feature/shape with mapscript java? In-Reply-To: References: Message-ID: Hi!, Finaly I found the way set the id of a feature, mapscript maps the last value set by setvalue with layer.setClassItem ,but I only can add a one attribute with layer.setFilteritem("itemName"); // Features add for (Iterator iterator = sites.iterator(); iterator.hasNext();) { Site site = (Site) iterator.next(); shapeObj shape = new shapeObj( mapscriptConstants.MS_SHP_POINTM ); lineObj line = new lineObj(); // latlon source data pointObj point = new pointObj( site.getLatLonPosition().getX() , site.getLatLonPosition().getY() , 0); shape = point.toShape(); shape.initValues(2); shape.setValue(0, site.getId().toString() ); // ID layer.addFeature(shape ); } } layer.setClassitem("id"); I think that the way to add many attributes is with layer.SetItems but isn't implemented in mapscript swig, I found in maplayer.c msLayerSetItems function, why setlayerItem is not appear in mapscript? /* ** A helper function to set the items to be retrieved with a particular shape. Unused at the moment but will be used ** from within MapScript. Should not need modification. */ int msLayerSetItems(layerObj *layer, char **items, int numitems) Another problem that I have is to reproject the data, It seems that there is a bug with reprojections in mapscript, if projection map and projection layer is not the same the reprojected coordinates aren't correct. Also if I try to reproject manualy the coordinates are wrong. I'm leaving something? projectionObj proj4326 = new projectionObj("EPSG:4326"); projectionObj proj32631 = new projectionObj("EPSG:32631"); point.project(proj4326, proj32631); thanks! 2010/12/6 rai 8 > > Hi!, > > I trying to add features to a layer with mapscript in a WFS server, there > isn't any method to set attributes directly to a feature or a shape. > > I found initValues and setValue to set value to a shape object but in a > xml/gml response it doesn't appear. Anyone knows a way to do this? > > // add feature > shapeObj shape = new shapeObj( mapscriptConstants.MS_SHP_POINTM ); > shape.initValues(8); > lineObj line = new lineObj(); > pointObj point = new pointObj(2.160690, 41.479881, 1); > line.add(point); > shape.add( line); > shape.setValue(0, "attr1"); > shape.setValue(1, "attr2"); > System.out.println( shape.getValue(0) + " " + shape.getValue(1) + " " + > shape.getValue(2) ); > layer.addFeature(shape ); > shape = new shapeObj( mapscriptConstants.MS_SHP_POINTM ); > line = new lineObj(); > point = new pointObj(2.170000, 41.480000, 1); > line.add(point); > shape.add( line); > layer.addFeature(shape ); > > Another workaround I found is generated a dbf file with all features and > attributes that I want and then load a mapfile pointing to this dbf file, > but this is inefficient. > > > thanks! > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From oliver.wesp at gmail.com Wed Dec 8 06:58:29 2010 From: oliver.wesp at gmail.com (Oliver Wesp) Date: Wed, 8 Dec 2010 15:58:29 +0100 Subject: [mapserver-users] Mapserver crashes with large number of layers Message-ID: Dear List, we're kind of stuck with the following problem: First of all we are running Mapserver 5.6.5 in CGI Mode on Windows 2003 Server (64bit). Webserver is Apache 2.2. We have a large Mapfile (seperated into 5 different parts using INCLUDE) with a total of 571 Layers. The layers have different MAXSCALEDENOM values so not all of them are drawn at all scales. The layers are referencing the DATA via TILEINDEX (it's S-57 data read through OGR). Most of the layers cover only a small area, so if I zoom in to the map more and more layers must be taken into account of drawing but only a small number must be drawn. All of the layers are divided into three groups using the GROUP parameter. What happens if I zoom in to the map at some point mapserver crashes (actually it's not crashing it just stucks). If I reduce the total number of layers (by commenting out parts of the mapfile) the map will be drawn again. So my guess is that there is a problem with the number of layers (or styles?, or symbols?, or number of layers per group?) included. I turned on debugging on all of my layers but that didn't helped. If I check the taskmanager mapserver.exe goes to 100% cpu usage and goes back to zero after a few seconds but it's not being terminated. It's still running in the process list. Debug output stops right in the middle of the line. No error message is send to the client or written to any of the logfiles. Actually no response is send to the client at all. If I terminate the process using the task manager "Premature end of script headers: mapserv.exe" is written to the apache error.log and the client shows "Internal Server Error". Right know we have no idea of what to look at. If anybody has any hint what might goes wrong we maybe would be able to look at it and maybe fix it. But right now we're stuck. Best regards, Oliver From yves.moisan at boreal-is.com Wed Dec 8 08:07:34 2010 From: yves.moisan at boreal-is.com (Yves Moisan) Date: Wed, 08 Dec 2010 11:07:34 -0500 Subject: [mapserver-users] Mapserver crashes with large number of layers In-Reply-To: References: Message-ID: <4CFFAD46.20808@boreal-is.com> > Dear List, > > we're kind of stuck with the following problem: > > First of all we are running Mapserver 5.6.5 in CGI Mode on Windows > 2003 Server (64bit). Hi, I would first try to run it in FastCGI. We also found running PHP (if you are using MS4W for instance) in FastCGI helps. > Webserver is Apache 2.2. > > We have a large Mapfile (seperated into 5 different parts using > INCLUDE) with a total of 571 Layers. Try to keep separate mapfiles. The shorter they are the better. We also found putting STATUS OFF helps. > The layers have different > MAXSCALEDENOM values so not all of them are drawn at all scales. The > layers are referencing the DATA via TILEINDEX (it's S-57 data read > through OGR). Most of the layers cover only a small area, so if I zoom > in to the map more and more layers must be taken into account of > drawing but only a small number must be drawn. All of the layers are > divided into three groups using the GROUP parameter. > What happens if I zoom in to the map at some point mapserver crashes > (actually it's not crashing it just stucks). If I reduce the total > number of layers (by commenting out parts of the mapfile) the map will > be drawn again. So my guess is that there is a problem with the number > of layers (or styles?, or symbols?, or number of layers per group?) > included. Keep mapfiles small is what we found was most useful. > I turned on debugging on all of my layers but that didn't helped. If I > check the taskmanager mapserver.exe goes to 100% cpu usage and goes > back to zero after a few seconds but it's not being terminated. It's > still running in the process list. Debug output stops right in the > middle of the line. No error message is send to the client or written > to any of the logfiles. Actually no response is send to the client at > all. If I terminate the process using the task manager "Premature end > of script headers: mapserv.exe" is written to the apache error.log and > the client shows "Internal Server Error". I've had premature end os script headers from time to time. I have no idea what triggers that. HTH, Yves From jmckenna at gatewaygeomatics.com Wed Dec 8 09:55:33 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 08 Dec 2010 13:55:33 -0400 Subject: [mapserver-users] Mapserver crashes with large number of layers In-Reply-To: References: Message-ID: <4CFFC695.3080403@gatewaygeomatics.com> Hello, I can give you the steps that I would do in this situation: - test this on a different machine - test on a 32bit machine - test on a Linux machine - if you build mapserv yourself, test with a binary/package (MS4W, FGS) and see if you can replicate the problem - convert your layers to shapefiles and retest (in other words see if avoiding using OGR helps at all) - get the exact CGI query string that causes problems in your browser and then try that same command through the commandline (examples at: http://www.mapserver.org/cgi/mapserv.html)...actually I would try that test first (because an error might be shown at the commandline, that is not displayed through the browser) - test with one big mapfile (avoid using includes just to see if that is the issue) - it might be an issue with tileindex on a layer...so if possible test without using a tileindex - but really, the best test is to start reducing the number of layers until you find the minimum number of layers that still cause the problem..then focus your testing on those few layers that are causing troubles (I often do this, and yes it takes time) Those are my initial thoughts. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 10-12-08 10:58 AM, Oliver Wesp wrote: > Dear List, > > we're kind of stuck with the following problem: > > First of all we are running Mapserver 5.6.5 in CGI Mode on Windows > 2003 Server (64bit). Webserver is Apache 2.2. > > We have a large Mapfile (seperated into 5 different parts using > INCLUDE) with a total of 571 Layers. The layers have different > MAXSCALEDENOM values so not all of them are drawn at all scales. The > layers are referencing the DATA via TILEINDEX (it's S-57 data read > through OGR). Most of the layers cover only a small area, so if I zoom > in to the map more and more layers must be taken into account of > drawing but only a small number must be drawn. All of the layers are > divided into three groups using the GROUP parameter. > What happens if I zoom in to the map at some point mapserver crashes > (actually it's not crashing it just stucks). If I reduce the total > number of layers (by commenting out parts of the mapfile) the map will > be drawn again. So my guess is that there is a problem with the number > of layers (or styles?, or symbols?, or number of layers per group?) > included. > I turned on debugging on all of my layers but that didn't helped. If I > check the taskmanager mapserver.exe goes to 100% cpu usage and goes > back to zero after a few seconds but it's not being terminated. It's > still running in the process list. Debug output stops right in the > middle of the line. No error message is send to the client or written > to any of the logfiles. Actually no response is send to the client at > all. If I terminate the process using the task manager "Premature end > of script headers: mapserv.exe" is written to the apache error.log and > the client shows "Internal Server Error". > > Right know we have no idea of what to look at. If anybody has any hint > what might goes wrong we maybe would be able to look at it and maybe > fix it. But right now we're stuck. > From traviskirstine at gmail.com Wed Dec 8 11:07:15 2010 From: traviskirstine at gmail.com (Travis Kirstine) Date: Wed, 8 Dec 2010 14:07:15 -0500 Subject: [mapserver-users] hiding / combining layers in a wms service Message-ID: I am trying to combine several layers into a single layer for a wms server while using the wms_layer_group option. I have resampled my source tifs so that is displayed based resolutions and map scale to hopefully improve performance. The drawback to this is that clients see all layers. Is there a way to group all layers into one while keeping the hierarchy that is created with the wms_layer_group. # Waterloo LAYER NAME "waterloo_2006_10km_wms" TILEINDEX "waterloo_2006_10km_wms_tindex" MAXSCALE 18000000 MINSCALE 40000 METADATA "wms_layer_group" "/Ontario/Waterloo Region/Waterloo Region 2006" "wms_title" "Waterloo 2006 Low Resolution" "wms_extent" "509999 4790000 569998 4840001" "wms_abstract" "Imagery from the spring of 2006. Maximum resolution 30cm." END PROJECTION "init=epsg:26917" END TYPE RASTER STATUS OFF OFFSITE 0 0 0 PROCESSING "RESAMPLE=BILINEAR" END LAYER NAME "waterloo_2006_5km_wms" TILEINDEX "waterloo_2006_5km_wms_tindex" MAXSCALE 40000 MINSCALE 7500 METADATA "wms_layer_group" "/Ontario/Waterloo Region/Waterloo Region 2006" "wms_title" "Waterloo 2006 Medium Resolution" "wms_extent" "509999 4790000 569998 4840001" "wms_abstract" "Imagery from the spring of 2006. Maximum resolution 30cm." END PROJECTION "init=epsg:26917" END TYPE RASTER STATUS OFF OFFSITE 0 0 0 PROCESSING "RESAMPLE=BILINEAR" END LAYER NAME "waterloo_2006_1km_wms" TILEINDEX "waterloo_2006_1km_wms_tindex" MAXSCALE 7500 METADATA "wms_layer_group" "/Ontario/Waterloo Region/Waterloo Region 2006" "wms_title" "Waterloo 2006 High Resolution" "wms_extent" "509999 4790000 569998 4840001" "wms_abstract" "Imagery from the spring of 2006. Maximum resolution 30cm." END PROJECTION "init=epsg:26917" END TYPE RASTER STATUS OFF OFFSITE 0 0 0 PROCESSING "RESAMPLE=BILINEAR" END From David.Hildebrand at afsc.ca Wed Dec 8 11:33:08 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 8 Dec 2010 12:33:08 -0700 Subject: [mapserver-users] displaying 3-band images References: <910415.30922.qm@web33205.mail.mud.yahoo.com><9188AB5935664040805E01E348A2B81D1BF6904F@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF69050@lacex1.afsc.ads> Michael: I inserted the following lines in my map file. CONFIG "MS_ERRORFILE" "stdout" DEBUG 5 CONFIG "CPL_DEBUG" "ON" CONFIG "PROJ_DEBUG" "ON" CONFIG "ON_MISSING_DATA" "FAIL" However, the behavior is the same and I get no additional messages. However, the following message shows up in the apache error file. GDAL: GDALDeregister_GTiff() called.\r My mapserver (ms4w) has been built with GDAL support because mapserv -v gives me the following. MapServer version 5.3-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I'm wondering if there is a problem in GDAL reading the projection information because using gdalinfo on the source file gives me the following in the output. Coordinate System is: LOCAL_CS[] Yet, when I add the correct projection information using gdal_translate -a_srs ... ArcView comes up with a blank image. Any clues? =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. _____ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Michael Schulz Sent: Wednesday, December 08, 2010 1:20 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] displaying 3-band images Hi, are you sure your raster can be read by mapserver cgi? Maybe try adding the ON_MISSING_DATA config option at map file level to rule out this error: CONFIG "ON_MISSING_DATA" "FAIL" Also, I think IMAGEMODE is a parameter of the outputformat object not the layer object. Cheers, Michael 2010/12/8 David Hildebrand I have a TIFF image I want to display. The image is a 3-band 8-bit image. The server logs show no error but my display is coming out blank. I am using ms4w with GDAL support so I'm not sure what is going wrong here. A sample of the mapfile is shown below. I get a parsing error if I include IMAGEMODE "RGB" in the layer definition. Any suggestions? LAYER NAME "awifs" PROCESSING "BANDS=3,2,1" PROCESSING "SCALE=AUTO" METADATA "wms_title" "awifs" "wms_opaque" "1" "ows_resolution" "56 56" "wms_srs" "EPSG:43001" "wms_extent" "-701344.000 -417256.000 803040.000 711368.000" "wcs_srs" "EPSG:43001" "wcs_extent" "-701344.000 -417256.000 803040.000 711368.000" END STATUS on TYPE raster DATA "//Plcoressatsb01/AWiFS/initial_delivery/images/July.tif" PROJECTION "init=epsg:43001" END EXTENT -701344.000 -417256.000 803040.000 711368.000 UNITS meters END =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. _____ From: Brent Wood [mailto:pcreso at yahoo.com] Sent: Monday, December 06, 2010 4:37 PM To: David Hildebrand; Brent Fraser Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] street maps Sigh, Get the link right!! PDF summarising Bing/Google licelice issues http://victorianspatialcouncil.org/cms/library/attachments/VSC%20Guidance%20Note%201_T&C%20Use%20of%20%20Google%20Maps%20and%20Bing%20Maps%20v1.0-May%202010.pdf Brent Wood --- On Tue, 12/7/10, Brent Fraser wrote: From: Brent Fraser Subject: Re: [mapserver-users] street maps To: "David Hildebrand" Cc: mapserver-users at lists.osgeo.org Date: Tuesday, December 7, 2010, 10:02 AM David, This thread may get you started with OpenStreetMap. Be sure to read Google's and Bing's Term Of Service. http://lists.osgeo.org/pipermail/mapserver-users/2010-July/066061.html Best Regards, Brent Fraser On 12/6/2010 12:18 PM, David Hildebrand wrote: I want to add a street map (OpenStreetMap, Google, Bing, etc.) as a WMS layer but I'm not sure which service to use and what the URL would be to try them out? My AOI is only about 10 by 10 degrees wide. Any suggestions? =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -----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 -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg -------------- next part -------------- An HTML attachment was scrubbed... URL: From oliver.wesp at gmail.com Wed Dec 8 11:48:51 2010 From: oliver.wesp at gmail.com (Oliver Wesp) Date: Wed, 8 Dec 2010 20:48:51 +0100 Subject: [mapserver-users] Mapserver crashes with large number of layers In-Reply-To: <4CFFC695.3080403@gatewaygeomatics.com> References: <4CFFC695.3080403@gatewaygeomatics.com> Message-ID: Hello, thanks for your help. Like you recommended I tried the request through the commandline hoping for some kind of new error messages. Instead the request just did what it should und returned the png without any error. So it works through commandline and crashes through cgi. I also made a test on a 32bit machine and it shows the same behaviour. And indeed we build mapserver by ourself but we can replicate the problem with the binary from MS4W. Best regards, Oliver 2010/12/8 Jeff McKenna : > Hello, > > I can give you the steps that I would do in this situation: > > - test this on a different machine > - test on a 32bit machine > - test on a Linux machine > - if you build mapserv yourself, test with a binary/package (MS4W, FGS) and > see if you can replicate the problem > - convert your layers to shapefiles and retest (in other words see if > avoiding using OGR helps at all) > - get the exact CGI query string that causes problems in your browser and > then try that same command through the commandline (examples at: > http://www.mapserver.org/cgi/mapserv.html)...actually I would try that test > first (because an error might be shown at the commandline, that is not > displayed through the browser) > - test with one big mapfile (avoid using includes just to see if that is the > issue) > - it might be an issue with tileindex on a layer...so if possible test > without using a tileindex > - but really, the best test is to start reducing the number of layers until > you find the minimum number of layers that still cause the problem..then > focus your testing on those few layers that are causing troubles (I often do > this, and yes it takes time) > > Those are my initial thoughts. > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > > On 10-12-08 10:58 AM, Oliver Wesp wrote: >> >> Dear List, >> >> we're kind of stuck with the following problem: >> >> First of all we are running Mapserver 5.6.5 in CGI Mode on Windows >> 2003 Server (64bit). Webserver is Apache 2.2. >> >> We have a large Mapfile (seperated into 5 different parts using >> INCLUDE) with a total of 571 Layers. The layers have different >> MAXSCALEDENOM values ?so not all of them are drawn at all scales. The >> layers are referencing the DATA via TILEINDEX (it's S-57 data read >> through OGR). Most of the layers cover only a small area, so if I zoom >> in to the map more and more layers must be taken into account of >> drawing but only a small number must be drawn. All of the layers are >> divided into three groups using the GROUP parameter. >> What happens if I zoom in to the map at some point mapserver crashes >> (actually it's not crashing it just stucks). If I reduce the total >> number of layers (by commenting out parts of the mapfile) the map will >> be drawn again. So my guess is that there is a problem with the number >> of layers (or styles?, or symbols?, or number of layers per group?) >> included. >> I turned on debugging on all of my layers but that didn't helped. If I >> check the taskmanager mapserver.exe goes to 100% cpu usage and goes >> back to zero after a few seconds but it's not being terminated. It's >> still running in the process list. Debug output stops right in the >> middle of the line. No error message is send to the client or written >> to any of the logfiles. Actually no response is send to the client at >> all. If I terminate the process using the task manager "Premature end >> of script headers: mapserv.exe" is written to the apache error.log and >> the client shows "Internal Server Error". >> >> Right know we have no idea of what to look at. If anybody has any hint >> what might goes wrong we maybe would be able to look at it and maybe >> fix it. But right now we're stuck. >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Wed Dec 8 11:48:43 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 8 Dec 2010 21:48:43 +0200 Subject: [mapserver-users] displaying 3-band images References: <910415.30922.qm@web33205.mail.mud.yahoo.com><9188AB5935664040805E01E348A2B81D1BF6904F@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69050@lacex1.afsc.ads> Message-ID: Hi, What does gdalinfo tell about your image? -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: David Hildebrand L?hetetty: ke 8.12.2010 21:33 Vastaanottaja: Michael Schulz; mapserver-users at lists.osgeo.org Aihe: RE: [mapserver-users] displaying 3-band images Michael: I inserted the following lines in my map file. CONFIG "MS_ERRORFILE" "stdout" DEBUG 5 CONFIG "CPL_DEBUG" "ON" CONFIG "PROJ_DEBUG" "ON" CONFIG "ON_MISSING_DATA" "FAIL" However, the behavior is the same and I get no additional messages. However, the following message shows up in the apache error file. GDAL: GDALDeregister_GTiff() called.\r My mapserver (ms4w) has been built with GDAL support because mapserv -v gives me the following. MapServer version 5.3-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I'm wondering if there is a problem in GDAL reading the projection information because using gdalinfo on the source file gives me the following in the output. Coordinate System is: LOCAL_CS[] Yet, when I add the correct projection information using gdal_translate -a_srs ... ArcView comes up with a blank image. Any clues? =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. _____ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Michael Schulz Sent: Wednesday, December 08, 2010 1:20 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] displaying 3-band images Hi, are you sure your raster can be read by mapserver cgi? Maybe try adding the ON_MISSING_DATA config option at map file level to rule out this error: CONFIG "ON_MISSING_DATA" "FAIL" Also, I think IMAGEMODE is a parameter of the outputformat object not the layer object. Cheers, Michael 2010/12/8 David Hildebrand I have a TIFF image I want to display. The image is a 3-band 8-bit image. The server logs show no error but my display is coming out blank. I am using ms4w with GDAL support so I'm not sure what is going wrong here. A sample of the mapfile is shown below. I get a parsing error if I include IMAGEMODE "RGB" in the layer definition. Any suggestions? LAYER NAME "awifs" PROCESSING "BANDS=3,2,1" PROCESSING "SCALE=AUTO" METADATA "wms_title" "awifs" "wms_opaque" "1" "ows_resolution" "56 56" "wms_srs" "EPSG:43001" "wms_extent" "-701344.000 -417256.000 803040.000 711368.000" "wcs_srs" "EPSG:43001" "wcs_extent" "-701344.000 -417256.000 803040.000 711368.000" END STATUS on TYPE raster DATA "//Plcoressatsb01/AWiFS/initial_delivery/images/July.tif" PROJECTION "init=epsg:43001" END EXTENT -701344.000 -417256.000 803040.000 711368.000 UNITS meters END =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. _____ From: Brent Wood [mailto:pcreso at yahoo.com] Sent: Monday, December 06, 2010 4:37 PM To: David Hildebrand; Brent Fraser Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] street maps Sigh, Get the link right!! PDF summarising Bing/Google licelice issues http://victorianspatialcouncil.org/cms/library/attachments/VSC%20Guidance%20Note%201_T&C%20Use%20of%20%20Google%20Maps%20and%20Bing%20Maps%20v1.0-May%202010.pdf Brent Wood --- On Tue, 12/7/10, Brent Fraser wrote: From: Brent Fraser Subject: Re: [mapserver-users] street maps To: "David Hildebrand" Cc: mapserver-users at lists.osgeo.org Date: Tuesday, December 7, 2010, 10:02 AM David, This thread may get you started with OpenStreetMap. Be sure to read Google's and Bing's Term Of Service. http://lists.osgeo.org/pipermail/mapserver-users/2010-July/066061.html Best Regards, Brent Fraser On 12/6/2010 12:18 PM, David Hildebrand wrote: I want to add a street map (OpenStreetMap, Google, Bing, etc.) as a WMS layer but I'm not sure which service to use and what the URL would be to try them out? My AOI is only about 10 by 10 degrees wide. Any suggestions? =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -----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 -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From umberto.nicoletti at gmail.com Wed Dec 8 14:21:18 2010 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Wed, 8 Dec 2010 23:21:18 +0100 Subject: [mapserver-users] Mapserver crashes with large number of layers In-Reply-To: References: Message-ID: On Wed, Dec 8, 2010 at 3:58 PM, Oliver Wesp wrote: > Dear List, > > we're kind of stuck with the following problem: > > First of all we are running Mapserver 5.6.5 in CGI Mode on Windows > 2003 Server (64bit). Webserver is Apache 2.2. > > We have a large Mapfile (seperated into 5 different parts using > INCLUDE) with a total of 571 Layers. The layers have different > MAXSCALEDENOM values ?so not all of them are drawn at all scales. The > layers are referencing the DATA via TILEINDEX (it's S-57 data read > through OGR). Most of the layers cover only a small area, so if I zoom > in to the map more and more layers must be taken into account of > drawing but only a small number must be drawn. All of the layers are > divided into three groups using the GROUP parameter. > What happens if I zoom in to the map at some point mapserver crashes > (actually it's not crashing it just stucks). If I reduce the total > number of layers (by commenting out parts of the mapfile) the map will > be drawn again. So my guess is that there is a problem with the number > of layers (or styles?, or symbols?, or number of layers per group?) > included. > I turned on debugging on all of my layers but that didn't helped. If I > check the taskmanager mapserver.exe goes to 100% cpu usage and goes > back to zero after a few seconds but it's not being terminated. It's > still running in the process list. Debug output stops right in the > middle of the line. No error message is send to the client or written > to any of the logfiles. Actually no response is send to the client at Looks like a deadlock to me. If you have msvc on the machine try to attach the debugger to the process and see where it's stuck by requesting a stacktrace for example. If msvc is not available I'd try ProcessMonitor from sysinternals and last but not least good ole gdb (yes it does run on Windows). Recompile mapserver with debugging symbols to get accurate function names and line numbers from the debugger. Last step: verify that the mapserv process ran by apache is not loading different dlls from the command line you used to test it. HTH, Umberto > all. If I terminate the process using the task manager "Premature end > of script headers: mapserv.exe" is written to the apache error.log and > the client shows "Internal Server Error". > > Right know we have no idea of what to look at. If anybody has any hint > what might goes wrong we maybe would be able to look at it and maybe > fix it. But right now we're stuck. > > Best regards, > Oliver > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From donald.kerr at dkerr.co.uk Wed Dec 8 15:13:51 2010 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Wed, 8 Dec 2010 23:13:51 -0000 Subject: [mapserver-users] MSXML2.ServerXMLHTTP - POST not GET - OpenLayers/Mapserver WFS Message-ID: <16B72292AEC24CE4AC2DBA198D9B1A9D@DELLM4500> Apologies for cross-posting on two lists but I'm not sure who may be better placed to answer this one. Basically, the setup is MapServer and OpenLayers. I have two pages, both are exactly the same with the exception that one calls mapserver on Port 81 (Apache) and the other calls Mapserver on Port 81 via an asp page using MSXML2.ServerXMLHTTP to hide the mapfile string and its location. This method is documented here: http://mapserver.org/ogc/wms_server.html (3.On IIS servers (Windows), you can use the following ASP script ..... etc). OpenLayers.Layer.WFS works fine on both setups as this uses GET requests but this will be deprecated in version 3, see here: http://dev.openlayers.org/docs/files/OpenLayers/Layer/WFS-js.html. I am trying to port the setup so that it uses OpenLayers.Layer.Vector with OpenLayers.Protocol.WFS which uses POST as opposed to GET. This works fine with the setup that calls Apache directly on port 81 but does not work using MSXML2.ServerXMLHTTP in the asp page. When I say that it works fine with Apache, it returns valid GML but there's no geometry which, I believe, is sorted in MapServer 5.6.4 - I am using 5.6.3 in the latest MS4W package. The method using MSXML2.ServerXMLHTTP (see the first link above) converts everything to GET but I have changed the code to use post as follows: ============================================================= Set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP") Select Case Request.ServerVariables("REQUEST_METHOD") Case "GET" strRequest = Request.QueryString MapserverUrl = "mapserv.exe?MAP=.map&" & strRequest xmlhttp.open "GET", MapServerURL, False xmlhttp.send ' Case "POST" strRequest = Request.Form MapserverUrl = "mapserv.exe?MAP=" xmlhttp.Open "POST", MapserverUrl, False Set SendDoc = server.createobject("Microsoft.XMLDOM") SendDoc.ValidateOnParse= True SendDoc.LoadXML(strRequest) 'Various header types (All tried at different times) 'xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" 'xmlhttp.setRequestHeader "Content-Type", "application/xml" //OpenLayers 'xmlhttp.setRequestHeader "Content-Type","text/xml" 'Two ways of sending xml (Both tried) 'xmlhttp.send strRequest xmlhttp.send Sendoc End Select Response.ContentType = xmlhttp.getResponseHeader("content-type") Response.BinaryWrite xmlhttp.responseBody Set xmlhttp = Nothing ============================================================= I have tried everything I can think of including setting a variable that contains the xml within the code above, i.e. it isn't sent from the html page with the map, to no avail. The closest I can get to it working is a response (as shown in Firebug) as follows: ============================================================= msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : <filter ogc="http://www.opengis.net/ogc"> <bbox> <propertyname>msGeometry</propertyname> <box gml="http://www.opengis.net/gml" srsName="EPSG:27700"> <coordinates decimal="." cs="," ts=" ">256643.52324254,664529.16740962 260422.47675746,667280.83259038</coordinates> </box> </bbox> </filter> ============================================================= The above is using a variable (that contains xml) in the asp file and not the Request.Form in the code above. I also get the following when using the Request.Form from the map page: ============================================================= msWCSParseRequest(): WCS server error. WCS Server does not support XML POST requests, please use KVP. ============================================================= What I want to get using MSXML2.ServerXMLHTTP is the same response as I get using the method that calls MapServer on port 81 i.e. I should get valid GML without the geometry. OpenLayers uses MSXML2.ServerXMLHTTP for the POST and all I am really trying to do is pass that request through another MSXML2.ServerXMLHTTP to MapServer. This is be quite basic I think but I have spent hours on the problem and have visited everything that I possibly can on Google without success. I suppose that someone who knows about MSXML2.ServerXMLHTTP might be the person to ask but I am hopeful that someone in the MapServer or the OpenLayers community might have cracked this problem. I'm stumped! HELP PLEASE!!! Many thanks. Regards, Donald Kerr P.S. Please don't tell me to use Apache directly! I know that this may be a solution that would work but I want to solve this one and I want to have IIS on port 80 for other stuff and MS4w on Port 81 for maps. From adams at terrestris.de Thu Dec 9 00:20:19 2010 From: adams at terrestris.de (adams) Date: Thu, 09 Dec 2010 09:20:19 +0100 Subject: [mapserver-users] print config question / pdf-layers Message-ID: <4D009143.8080206@terrestris.de> Dear Mapfishers, I have a question regarding the pdf output of the print-module. We have a mapping client with external wms such as orthophotos and internal wms with some kinds thematic maps. The print works fine but... somebody found out, that it is possible to switch the layers off inside the pdf (e.g. using adobe viewer, as the customers do) - which causes a legal problem with the terms of use of the external data. They must be delivered in a print inseperable together with the thematic maps. (Of course I know I can take the external wms out of the application and print it seperated from the rest of the data somewhere else, but this is not my problem ... the problem is more ... let's say political ;-) ) So my question is, is there a config-method which forces the print module to put all layers in one image first and then puts this into the pdf or is there a possibility to disable to view the seperate layers inside the Pdf? Best regards, Till -- --------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From janbf at webgis.de Thu Dec 9 03:08:18 2010 From: janbf at webgis.de (=?ISO-8859-1?Q?Jan_Berghoff=2DFl=FCel?=) Date: Thu, 9 Dec 2010 12:08:18 +0100 Subject: [mapserver-users] deploying mapserver to render WFS which is secured by OWS Proxy? Message-ID: Hi, does anyone have experiences deploying mapserver to render a WFS which is secured by OWS Proxy? The problem is how to provide the dynamicly created sessionID to the OWS Proxy to retrieve WFS data, especially when using POST method. Is this possible at all? Any hints are appreciated. Thanks in advance. Jan -- Jan Berghoff-Fl?el in medias res Gesellschaft f?r Informationstechnologie mbH 79100 Freiburg, Schwimmbadstr. 2 Telefon +49 761 705 798 - 0 Direkt -100, Fax -09 +++++++++++++++++++++++++++++++++ Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg +++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Dec 9 05:09:16 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 09 Dec 2010 09:09:16 -0400 Subject: [mapserver-users] MSXML2.ServerXMLHTTP - POST not GET - OpenLayers/Mapserver WFS In-Reply-To: <16B72292AEC24CE4AC2DBA198D9B1A9D@DELLM4500> References: <16B72292AEC24CE4AC2DBA198D9B1A9D@DELLM4500> Message-ID: <4D00D4FC.7060001@gatewaygeomatics.com> On 10-12-08 7:13 PM, Donald Kerr wrote: > > I am trying to port the setup so that it uses OpenLayers.Layer.Vector with > OpenLayers.Protocol.WFS which uses POST as opposed to GET. This works fine > with the setup that calls Apache directly on port 81 but does not work using > MSXML2.ServerXMLHTTP in the asp page. When I say that it works fine with > Apache, it returns valid GML but there's no geometry which, I believe, is > sorted in MapServer 5.6.4 - I am using 5.6.3 in the latest MS4W package. > Note that MapServer version 5.6.5 is available through the MS4W downloads page (http://www.maptools.org/ms4w/index.phtml?page=downloads.html). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From stephan.holl at intevation.de Thu Dec 9 05:39:49 2010 From: stephan.holl at intevation.de (Stephan Holl) Date: Thu, 9 Dec 2010 14:39:49 +0100 Subject: [mapserver-users] deploying mapserver to render WFS which is secured by OWS Proxy? In-Reply-To: References: Message-ID: <20101209143949.63525283@keto> Hallo Jan, Jan Berghoff-Fl?el , [20101209 - 12:08:18] > Hi, > > does anyone have experiences deploying mapserver to render a WFS > which is secured by OWS Proxy? > > The problem is how to provide the dynamicly created sessionID to the > OWS Proxy to retrieve WFS data, > especially when using POST method. > > Is this possible at all? > > Any hints are appreciated. Thanks in advance. Which OWS Proxy are you referring to? Best Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: From janbf at webgis.de Thu Dec 9 06:01:37 2010 From: janbf at webgis.de (=?ISO-8859-1?Q?Jan_Berghoff=2DFl=FCel?=) Date: Thu, 9 Dec 2010 15:01:37 +0100 Subject: [mapserver-users] deploying mapserver to render WFS which is secured by OWS Proxy? In-Reply-To: <20101209143949.63525283@keto> References: <20101209143949.63525283@keto> Message-ID: I'm trying to retrieve WFS data from www.geoproxy.geoportal-th.de/geoproxy/services The problem is currently not the OWS Proxy itself but how to setup a mapfile to send the right POST or GET request including the sessionID. 2010/12/9 Stephan Holl > Hallo Jan, > > Jan Berghoff-Fl?el , [20101209 - 12:08:18] > > > Hi, > > > > does anyone have experiences deploying mapserver to render a WFS > > which is secured by OWS Proxy? > > > > The problem is how to provide the dynamicly created sessionID to the > > OWS Proxy to retrieve WFS data, > > especially when using POST method. > > > > Is this possible at all? > > > > Any hints are appreciated. Thanks in advance. > > Which OWS Proxy are you referring to? > > Best > Stephan > > -- > Stephan Holl | Tel.: +49 (0)541-33 508 3663 > Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 > Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- -- Mit freundlichen Gr??en Jan Berghoff-Fl?el -- in medias res Gesellschaft f?r Informationstechnologie mbH 79100 Freiburg, Schwimmbadstr. 2 Telefon +49 761 705 798 - 0 Direkt -100, Fax -09 +++++++++++++++++++++++++++++++++ Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg +++++++++++++++++++++++++++++++++ -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Thu Dec 9 07:40:51 2010 From: donald.kerr at dkerr.co.uk (donald.kerr) Date: Thu, 09 Dec 2010 15:40:51 +0000 Subject: [mapserver-users] MSXML2.ServerXMLHTTP - POST not GET-OpenLayers/Mapserver WFS Message-ID: -----Original message----- From: Jeff McKenna jmckenna at gatewaygeomatics.com Date: Thu, 09 Dec 2010 13:09:30 +0000 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MSXML2.ServerXMLHTTP - POST not GET- OpenLayers/Mapserver WFS On 10-12-08 7:13 PM, Donald Kerr wrote: > > I am trying to port the setup so that it uses OpenLayers.Layer.Vector with > OpenLayers.Protocol.WFS which uses POST as opposed to GET. This works fine > with the setup that calls Apache directly on port 81 but does not work using > MSXML2.ServerXMLHTTP in the asp page. When I say that it works fine with > Apache, it returns valid GML but there's no geometry which, I believe, is > sorted in MapServer 5.6.4 - I am using 5.6.3 in the latest MS4W package. > Note that MapServer version 5.6.5 is available through the MS4W downloads page (http://www.maptools.org/ms4w/index.phtml?page=downloads.html). -jeff Excellent, Jeff. I never noticed that download link before! Should solve the wfs geometry issue which is good. I'll download and test tonight. Regards, Donald -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From maymerich at argongra.es Thu Dec 9 08:03:11 2010 From: maymerich at argongra.es (Manuel Aymerich) Date: Thu, 9 Dec 2010 17:03:11 +0100 Subject: [mapserver-users] PNG symbol transparency supported in map MODE? References: <000001cb8249$2bcc1690$836443b0$@es> Message-ID: <008201cb97ba$94e555c0$beb00140$@es> Just in case this thread is followed by someone facing the same problem. The icon transparency issue is solved inserting TRANSPARENCY ALPHA on each mapfile layer. Manuel De: Manuel Aymerich [mailto:maymerich at argongra.es] Enviado el: lunes, 15 de noviembre de 2010 17:54 Para: 'Gracia Fern?ndez L?pez' Asunto: RE: [mapserver-users] PNG symbol transparency supported in map MODE? Thanks for your tip Gracia. However using WMS to retrieve a single and untiled image to insert on a pdf doesn?t seem like a good idea to me. I would have to handle each tile separately, and that should be horribly tedious. Even more, the area bounds would be delimited by these frontier tiles and not the exact area the user desires. It is a server side process not a service. On the other hand, I don?t think the issue has to do anything with the OUTPUTFORMAT transparency. My images are transparent pngs. However to produce this transparent images, mapserver merges the symbols layer together with all the other layers but without considering the symbols transparency (in mode=map of course). Regards and again thanks for your time and effort, Manuel De: Gracia Fern?ndez L?pez [mailto:graciafdez at gmail.com] Enviado el: lunes, 15 de noviembre de 2010 9:56 Para: Manuel Aymerich CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] PNG symbol transparency supported in map MODE? Hello Manuel, I am not an expert with MapServer, but I can suggest you to do all the queries in WMS mode (or other OGC query), because it is a standard and it already works to you. Taking a look to my MapServer configuration, I have the following: OUTPUTFORMAT NAME gif ... TRANSPARENT ON END I hope this can help you. -- Regards Gracia 2010/11/12 Manuel Aymerich Hi, I am working with mapserver to provide a wms service in which users can select a map area and get a pdf print as an output. On one my vector layers, I?ve inserted some new png symbols with an alpha channel. Everything works great in the WMS mode, transparency for those symbols is supported. However, when the users wants to get the pdf of an area, I make a mapserver CGI call in MODE=MAP to retrieve the map area as a single image an construct the pdf output on the fly. In this MODE=MAP case, transparency for those symbols is not supported. Here is a visual example of the problem I am facing, so that you can all judge it yourselves: + WMS mode (transparency for symbols supported). + Map mode (symbols transparency). It seems that when mapserver merges all layers into one in map mode to obtain a single output image, symbol features are rendered without transparency support. At the layer level I?ve set << OPACITY alpha >>, but the problem persists. Any clue of want I might be missing? Is this a mapserver bug? Any help or hint will be appreciated. Thanks in advanced, regards, Manuel Aymerich _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Se certific? que el correo entrante no contiene virus. Comprobada por AVG - www.avg.es Versi?n: 9.0.869 / Base de datos de virus: 271.1.1/3257 - Fecha de la versi?n: 11/14/10 20:34:00 -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Thu Dec 9 09:07:41 2010 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 9 Dec 2010 11:07:41 -0600 Subject: [mapserver-users] get the closest feature in a point query Message-ID: <3D56274B4A7874468F58FADDBFD098010A1AD119@llmhs02.r8nssis.local> Hello, I know we can use tolerance / toleranceusnits to control the sensitivity for spatial queries. Is there a way to further control queries by getting the nearest feature, or the first feature found? Thanks Mark Volz GIS Specialist Lyon County, MN -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Thu Dec 9 09:17:19 2010 From: andy at squeakycode.net (Andy Colson) Date: Thu, 09 Dec 2010 11:17:19 -0600 Subject: [mapserver-users] get the closest feature in a point query In-Reply-To: <3D56274B4A7874468F58FADDBFD098010A1AD119@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD098010A1AD119@llmhs02.r8nssis.local> Message-ID: <4D010F1F.2070000@squeakycode.net> On 12/9/2010 11:07 AM, Mark Volz wrote: > Hello, > > I know we can use tolerance/ toleranceusnitsto control the sensitivity > forspatial queries. Is there a way tofurthercontrol queries by getting > the nearest feature, or the first feature found? > > Thanks > > Mark Volz > > GIS Specialist > > Lyon County, MN > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Not sure if this'll help, but I use PostGIS for that, here is the query I use to find the nearest road from a click point: select roads, distance(the_geom, GeomFromText(point, -1)) as distance from cadastralLine, ST_Buffer(GeomFromText(point, -1), 100) as g where the_geom && g and roads is not null order by distance limit 1 point here is a text variable, like: POINT(1 100) -Andy From David.Hildebrand at afsc.ca Thu Dec 9 14:13:55 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Thu, 9 Dec 2010 15:13:55 -0700 Subject: [mapserver-users] displaying 3-band images References: <910415.30922.qm@web33205.mail.mud.yahoo.com><9188AB5935664040805E01E348A2B81D1BF6904F@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69050@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69051@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69053@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF69057@lacex1.afsc.ads> Jukka: For now I am making a simple Mapserver CGI call (http://localhost/cgi-bin/mapserv.exe?map=MSTEST&layer=awifs&mode=map). This URL works for other raster layers but I have only had single-band images so far. In all cases the final map is in a projection different from the layer projection. Incidentally, when I point to a data source which I know does not exist I get the same behavior (no image and no error) even when I use CONFIG "ON_MISSING_DATA" "FAIL" in my map file. Thanks for your help. =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Thursday, December 09, 2010 2:21 PM To: David Hildebrand Subject: Re: [mapserver-users] displaying 3-band images Hi, I will have a closer look tomorrow. What did you use for showing the image? Mapserver CGI call or WMS client or what? Could you send the request as well? Regards, -Jukka- -----Alkuper?inen viesti----- L?hett?j?: David Hildebrand [mailto:David.Hildebrand at afsc.ca] L?hetetty: to 9.12.2010 22:32 Vastaanottaja: Rahkonen Jukka Aihe: RE: [mapserver-users] displaying 3-band images Jukka: I posted this to the mailing list but I don't think it got there because the body was too long so I'm sending it to you directly. -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Thu Dec 9 14:14:25 2010 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 9 Dec 2010 22:14:25 -0000 Subject: [mapserver-users] MSXML2.ServerXMLHTTP - POST not GET- OpenLayers/Mapserver WFS In-Reply-To: <4D00D4FC.7060001@gatewaygeomatics.com> Message-ID: <50456C11AFFE440CB6CB96DF70BDEA18@DELLM4500> Here's my solution incorporating the binary read suggestion from Arnd Wippermann over on users at openlayers.org: <% MapServerUrl = "http://127.0.0.1:81/cgi-bin/mapserv.exe" MapFile = "D:\mymapfilepath\mymapfile.map" Server.ScriptTimeout = 360 Set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP") Function BytesToText(strBytes) strAsciiText = "" lngLength = LenB(strBytes) For lngIndex = 1 To lngLength lngAsciiCode = AscB(MidB(strBytes, lngIndex, 1)) strAsciiText = strAsciiText & Chr(lngAsciiCode) Next BytesToText = strAsciiText End Function Select Case Request.ServerVariables("REQUEST_METHOD") Case "GET" strRequest = Request.QueryString xmlhttp.open "GET", MapServerURL & "?MAP=" & MapFile & "&" & strRequest, False xmlhttp.send Response.ContentType = xmlhttp.getResponseHeader("content-type") Response.BinaryWrite xmlhttp.responseBody Case "POST" lngByteSize = Request.TotalBytes strRequest = BytesToText(Request.BinaryRead(lngByteSize)) xmlhttp.open "POST", MapServerURL & "?MAP=" & MapFile, false xmlhttp.setRequestHeader "Content-Type", "application/xml; charset=UTF-8" xmlhttp.send strRequest Response.write xmlhttp.responseText End Select Set xmlhttp = Nothing %> Just set the MapServerUrl and the MapFile constants at the top of the code. Works for both GETs and POSTs in my setup where the map baselayers are using OpenLayers.Layer.WMS. I also have OpenLayers.Layer.WFS (uses GET) and OpenLayers.Layer.Vector with OpenLayers.Protocol.WFS (uses POST). All are working. Many thanks. Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: 09 December 2010 13:09 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MSXML2.ServerXMLHTTP - POST not GET- OpenLayers/Mapserver WFS On 10-12-08 7:13 PM, Donald Kerr wrote: > > I am trying to port the setup so that it uses OpenLayers.Layer.Vector > with OpenLayers.Protocol.WFS which uses POST as opposed to GET. This > works fine with the setup that calls Apache directly on port 81 but > does not work using MSXML2.ServerXMLHTTP in the asp page. When I say > that it works fine with Apache, it returns valid GML but there's no > geometry which, I believe, is sorted in MapServer 5.6.4 - I am using > 5.6.3 in the latest MS4W package. > Note that MapServer version 5.6.5 is available through the MS4W downloads page (http://www.maptools.org/ms4w/index.phtml?page=downloads.html). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Thu Dec 9 14:38:30 2010 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 9 Dec 2010 22:38:30 -0000 Subject: [mapserver-users] MSXML2.ServerXMLHTTP - POST not GET- OpenLayers/Mapserver WFS In-Reply-To: <4D00D4FC.7060001@gatewaygeomatics.com> Message-ID: <988DE70150214A9EA36B9EF446F66D03@DELLM4500> I should have included the OpenLayers side of things: layer = new OpenLayers.Layer.Vector("WFS", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ url: "http://localhost/maps/mapserv.asp", featureType: "MyFeatures", featureNS: "http://mapserver.gis.umn.edu/mapserver", featurePrefix: "ms", geometryName: "msGeometry", version: '1.0.0' }) }); Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: 09 December 2010 13:09 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MSXML2.ServerXMLHTTP - POST not GET- OpenLayers/Mapserver WFS On 10-12-08 7:13 PM, Donald Kerr wrote: > > I am trying to port the setup so that it uses OpenLayers.Layer.Vector > with OpenLayers.Protocol.WFS which uses POST as opposed to GET. This > works fine with the setup that calls Apache directly on port 81 but > does not work using MSXML2.ServerXMLHTTP in the asp page. When I say > that it works fine with Apache, it returns valid GML but there's no > geometry which, I believe, is sorted in MapServer 5.6.4 - I am using > 5.6.3 in the latest MS4W package. > Note that MapServer version 5.6.5 is available through the MS4W downloads page (http://www.maptools.org/ms4w/index.phtml?page=downloads.html). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Thu Dec 9 14:39:59 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 09 Dec 2010 15:39:59 -0700 Subject: [mapserver-users] displaying 3-band images In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF69057@lacex1.afsc.ads> References: <910415.30922.qm@web33205.mail.mud.yahoo.com><9188AB5935664040805E01E348A2B81D1BF6904F@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69050@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69051@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69053@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69057@lacex1.afsc.ads> Message-ID: <4D015ABF.2050901@geoanalytic.com> David, It sounds like image registration / coordinate system definition problem. While it is not necessary for the image to have a coordinate system defined (e.g as a geotiff tag) sine you can specify it in the LAYER portion of the map file, I think it does need image registration information, either as geotiff tags or in a .tfw (or .wld) file. Specifying the EXTENT in the map file is only a layer "hint" to mapserver, it does not specify the image registration. I could be wrong; mayby there have been enhancements to use the EXTENT or METADATA information. What are your parameters for EPSG:43001? Best Regards, Brent Fraser On 12/9/2010 3:13 PM, David Hildebrand wrote: > > Jukka: > > For now I am making a simple Mapserver CGI call > (http://localhost/cgi-bin/mapserv.exe?map=MSTEST&layer=awifs&mode=map > ). > This URL works for other raster layers but I have only had > single-band images so far. In all cases the final map is in a > projection different from the layer projection. Incidentally, when I > point to a data source which I know does not exist I get the same > behavior (no image and no error) even when I use CONFIG > "ON_MISSING_DATA" "FAIL" in my map file. > > Thanks for your help. > > =========================== > > David V. Hildebrand > > Agriculture Financial Services Corporation > > (403) 782-8239 > > www.afsc.ca > > This communication is intended for the use of the recipient to which > it is addressed, and may contain confidential, personal and/or > privileged information. Please contact Agriculture Financial Services > Corporation immediately if you are not the intended recipient of this > communication, and do not copy, distribute, or take action relying on > it. Any communication received in error, or subsequent reply, should > be deleted or destroyed. Please consider the environment before > printing this email. > > -----Original Message----- > From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] > Sent: Thursday, December 09, 2010 2:21 PM > To: David Hildebrand > Subject: Re: [mapserver-users] displaying 3-band images > > Hi, > > I will have a closer look tomorrow. What did you use for showing the > image? Mapserver CGI call or WMS client or what? Could you send the > request as well? > > Regards, > > -Jukka- > > -----Alkuper?inen viesti----- > > L?hett?j?: David Hildebrand [mailto:David.Hildebrand at afsc.ca] > > L?hetetty: to 9.12.2010 22:32 > > Vastaanottaja: Rahkonen Jukka > > Aihe: RE: [mapserver-users] displaying 3-band images > > Jukka: > > I posted this to the mailing list but I don't think it got there > because the body was too long so I'm sending it to you directly. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hildebrand at afsc.ca Thu Dec 9 15:04:56 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Thu, 9 Dec 2010 16:04:56 -0700 Subject: [mapserver-users] displaying 3-band images References: <910415.30922.qm@web33205.mail.mud.yahoo.com><9188AB5935664040805E01E348A2B81D1BF6904F@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69050@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69051@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69053@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69057@lacex1.afsc.ads> <4D015ABF.2050901@geoanalytic.com> Message-ID: <9188AB5935664040805E01E348A2B81D1BF69059@lacex1.afsc.ads> To all: I discovered the problem which actually had a very simple solution. My DATA path was incorrect. The data resides on another file server and I had incorrectly specified the UNC path. =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. _____ From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Thursday, December 09, 2010 3:40 PM To: David Hildebrand Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] displaying 3-band images David, It sounds like image registration / coordinate system definition problem. While it is not necessary for the image to have a coordinate system defined (e.g as a geotiff tag) sine you can specify it in the LAYER portion of the map file, I think it does need image registration information, either as geotiff tags or in a .tfw (or .wld) file. Specifying the EXTENT in the map file is only a layer "hint" to mapserver, it does not specify the image registration. I could be wrong; mayby there have been enhancements to use the EXTENT or METADATA information. What are your parameters for EPSG:43001? Best Regards, Brent Fraser On 12/9/2010 3:13 PM, David Hildebrand wrote: Jukka: For now I am making a simple Mapserver CGI call (http://localhost/cgi-bin/mapserv.exe?map=MSTEST&layer=awifs&mode=map). This URL works for other raster layers but I have only had single-band images so far. In all cases the final map is in a projection different from the layer projection. Incidentally, when I point to a data source which I know does not exist I get the same behavior (no image and no error) even when I use CONFIG "ON_MISSING_DATA" "FAIL" in my map file. Thanks for your help. =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Thursday, December 09, 2010 2:21 PM To: David Hildebrand Subject: Re: [mapserver-users] displaying 3-band images Hi, I will have a closer look tomorrow. What did you use for showing the image? Mapserver CGI call or WMS client or what? Could you send the request as well? Regards, -Jukka- -----Alkuper?inen viesti----- L?hett?j?: David Hildebrand [mailto:David.Hildebrand at afsc.ca] L?hetetty: to 9.12.2010 22:32 Vastaanottaja: Rahkonen Jukka Aihe: RE: [mapserver-users] displaying 3-band images Jukka: I posted this to the mailing list but I don't think it got there because the body was too long so I'm sending it to you directly. _______________________________________________ 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 cedric.moullet at gmail.com Thu Dec 9 22:21:28 2010 From: cedric.moullet at gmail.com (=?ISO-8859-1?Q?C=E9dric_MOULLET?=) Date: Fri, 10 Dec 2010 07:21:28 +0100 Subject: [mapserver-users] PNG Optimization Message-ID: Hi, We are using MapServer to generate tiles and the following ouptut format is used: OUTPUTFORMAT NAME "pnga" MIMETYPE "image/pnga" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE "RGBA" TRANSPARENT TRUE FORMATOPTION "INTERLACE=OFF" END We observe that the size of the tiles can be reduced by a at least factor 2 if we use a tool like optipng. Is it possible to configure MapServer in order to optimize the file output (and for example use optipng) ? Or do you see another way to optimize the image (I'd like to do that on the MapServer side in order to avoid a postprocessing) ? Thanks in advance for any hints. C?dric -- Welcome to my world: http://www.cedricmoullet.com/ My Linked In profile: http://www.linkedin.com/in/cedricmoullet Twitter: http://twitter.com/cedricmoullet Home sweet home: http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephan.holl at intevation.de Fri Dec 10 00:54:03 2010 From: stephan.holl at intevation.de (Stephan Holl) Date: Fri, 10 Dec 2010 09:54:03 +0100 Subject: [mapserver-users] deploying mapserver to render WFS which is secured by OWS Proxy? In-Reply-To: References: <20101209143949.63525283@keto> Message-ID: <20101210095403.3e87a450@keto> Hallo Jan, Jan Berghoff-Fl?el , [20101209 - 15:01:37] > I'm trying to retrieve WFS data from > www.geoproxy.geoportal-th.de/geoproxy/services > > The problem is currently not the OWS Proxy itself but how to setup a > mapfile to send > the right POST or GET request including the sessionID. I might be wrong but this seems impossible atm. If the proxy is secured by http basic auth you could hand in the needed credentials within the URL (untested though): CONNECTION "https://user:pw at server.fqd:port/service?..." Make sure you import the SSL-cert correctly in libcurls keystore (found in the value of URL_CA_BUNDLE env-var. See [1] for more details. HTH Stephan [1] https://trac.osgeo.org/mapserver/ticket/3070 > > 2010/12/9 Stephan Holl > > > Hallo Jan, > > > > Jan Berghoff-Fl?el , [20101209 - 12:08:18] > > > > > Hi, > > > > > > does anyone have experiences deploying mapserver to render a WFS > > > which is secured by OWS Proxy? > > > > > > The problem is how to provide the dynamicly created sessionID to > > > the OWS Proxy to retrieve WFS data, > > > especially when using POST method. > > > > > > Is this possible at all? > > > > > > Any hints are appreciated. Thanks in advance. > > > > Which OWS Proxy are you referring to? > > > > Best > > Stephan > > > > -- > > Stephan Holl | Tel.: +49 (0)541-33 508 > > 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - > > HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. > > Jan-Oliver Wagner > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available URL: From simone.frigerio at univie.ac.at Fri Dec 10 01:26:56 2010 From: simone.frigerio at univie.ac.at (Simone Frigerio) Date: Fri, 10 Dec 2010 10:26:56 +0100 Subject: [mapserver-users] publish raster with integer pixel values Message-ID: <4D01F260.7090201@univie.ac.at> Hi all! I have some raster (e.g. DTM) to publish but I have problem on pixel value. e.g.: an img raster file classified. The attribute table could be as following: OID VALUE COUNT 0 944 3 1 945 7 ... .... .... 2014 3008 4 Briefly: first record copes with an elevation on 944 m present in 3 pixels. Last record has an elevation of 3008 m in 4 pixels. How can I visualized continuously this layer with all his 2014 values? How can I define automatically all these classes? Can you suggest me an idea? Thanks! Simo From oliver.wesp at gmail.com Fri Dec 10 01:56:29 2010 From: oliver.wesp at gmail.com (Oliver Wesp) Date: Fri, 10 Dec 2010 10:56:29 +0100 Subject: [mapserver-users] Mapserver crashes with large number of layers In-Reply-To: References: Message-ID: Thanks anyone for the help. We didn't actually solved the problem but we found out how to avoid it. First thing we found out was that the map was succesfully drawn and that mapserver stucks after that. I tried it with mapscript and the map image gets written to disk and after that php cgi stucks the same way mapserver cgi does before. We didn't find out what exactly happens but it's seems mapserver stucks when writing to the log files. When we did some try and error with the logging mechanism we found out (by accident) that everything is fine as soon as we turn of debugging in the mapfile. For the moment I'm fine with this workaround but I will try to get a small demo together as soon as as possible so maybe somebody can have a look at it. Best regards , Oliver 2010/12/8 Umberto Nicoletti : > > Looks like a deadlock to me. > If you have msvc on the machine try to attach the debugger to the > process and see where it's stuck by requesting a stacktrace for > example. If msvc is not available I'd try ProcessMonitor from > sysinternals and last but not least good ole gdb (yes it does run on > Windows). > > Recompile mapserver with debugging symbols to get accurate function > names and line numbers from the debugger. > > Last step: verify that the mapserv process ran by apache is not > loading different dlls from the command line you used to test it. > > HTH, > Umberto > > >> all. If I terminate the process using the task manager "Premature end >> of script headers: mapserv.exe" is written to the apache error.log and >> the client shows "Internal Server Error". >> >> Right know we have no idea of what to look at. If anybody has any hint >> what might goes wrong we maybe would be able to look at it and maybe >> fix it. But right now we're stuck. >> >> Best regards, >> Oliver >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From the_incredibal at gmx.de Fri Dec 10 02:35:38 2010 From: the_incredibal at gmx.de (Marcus) Date: Fri, 10 Dec 2010 11:35:38 +0100 Subject: [mapserver-users] Mapserver query using database connection Message-ID: <20101210103546.85F6CE01429@lists.osgeo.org> Hello, I am a cartography student from Germany und I am working on my diploma thesis at the moment. My task is to plan and create a webservice application for a transportation company and I decided to use the UMN Mapserver for the implementation. The users should have the ability to query the objects, too. As you probably know the query function of Mapserver allows to query the attribute table or to join another table-file, but now there's my question: Is it possible to create a query which directly connects to an existing database via PHP and show the results in a query template? I have doubts that this could work, cause the query function uses mapserver variables which are converted into the strings or numbers like they are in the attribute table by the Mapserver program and in my opinion a database won't understand these variables. But may be you've heard of a possibility and I would be glad if anyone could help me. Please keep in my mind that I have to use a Microsoft SQL Server 2008 database and sqlserv as the "driver". Thank you and best regards from Germany. Marcus -------------- next part -------------- An HTML attachment was scrubbed... URL: From iacovlev.pavel at gmail.com Fri Dec 10 03:07:34 2010 From: iacovlev.pavel at gmail.com (Pavel Iacovlev) Date: Fri, 10 Dec 2010 13:07:34 +0200 Subject: [mapserver-users] Mapserver query using database connection In-Reply-To: <20101210103546.85F6CE01429@lists.osgeo.org> References: <20101210103546.85F6CE01429@lists.osgeo.org> Message-ID: In mapserver you can specify the desired SQL query with variables in the DATA section and create a template for it (example is for Postgis but works for MSSQL in a similar way) CONNECTIONTYPE POSTGIS CONNECTION "dbname=yourdatabasename user=yourdbusername" DATA "the_geom from (select g.gid, g.the_geom, a.attr1, a.attr2 from geotable g join attrtable a on g.gid = a.aid) as subquery unique gid using srid=4326" You can avoid mapserver template's for querying if you 1) Want to do it from PHP anyway 2) You don't specifically need it in WMFS/WFS GetFeatureInfo format For example create info.php that queries your databse and returns the geometry as WKT and needed attributes, convert them to JSON/XML and send back to web-browser where it can be easily read and displayed by OpenLayers. On Fri, Dec 10, 2010 at 12:35 PM, Marcus wrote: > Hello, > > I am a cartography student from Germany und I am working on my diploma > thesis at the moment. My task is to plan and create a webservice application > for a transportation company and I decided to use the UMN Mapserver for the > implementation. The users should have the ability to query the objects, too. > As you probably know the query function of Mapserver allows to query the > attribute table or to join another table-file, but now there?s my question: > Is it possible to create a query which directly connects to an existing > database via PHP and show the results in a query template? I have doubts > that this could work, cause the query function uses mapserver variables > which are converted into the strings or numbers like they are in the > attribute table by the Mapserver program and in my opinion a database won?t > understand these variables. But may be you?ve heard of a possibility and I > would be glad if anyone could help me. Please keep in my mind that I have to > use a Microsoft SQL Server 2008 database and sqlserv as the ?driver?. > > Thank you and best regards from Germany. > > Marcus > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- http://iap.md, The future is open -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Fri Dec 10 05:45:56 2010 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 10 Dec 2010 08:45:56 -0500 Subject: RE [mapserver-users] Mapserver query using database connection In-Reply-To: <20101210103546.85F6CE01429@lists.osgeo.org> Message-ID: Are you using the MSSQL spatial extension? Or you only need to create points from a X and Y fields. If you don't have the spatial extension you must use the Virtual Spatial Data http://www.mapserver.org/input/vector/VirtualSpatialData.html You can specify a sql query in the config file Steve "Marcus" @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2010-12-10 05:35 A cc Objet [mapserver-users] Mapserver query using database connection Hello, I am a cartography student from Germany und I am working on my diploma thesis at the moment. My task is to plan and create a webservice application for a transportation company and I decided to use the UMN Mapserver for the implementation. The users should have the ability to query the objects, too. As you probably know the query function of Mapserver allows to query the attribute table or to join another table-file, but now there?s my question: Is it possible to create a query which directly connects to an existing database via PHP and show the results in a query template? I have doubts that this could work, cause the query function uses mapserver variables which are converted into the strings or numbers like they are in the attribute table by the Mapserver program and in my opinion a database won?t understand these variables. But may be you?ve heard of a possibility and I would be glad if anyone could help me. Please keep in my mind that I have to use a Microsoft SQL Server 2008 database and sqlserv as the ?driver?. Thank you and best regards from Germany. Marcus _______________________________________________ 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 Dec 10 06:09:06 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 10 Dec 2010 15:09:06 +0100 Subject: [mapserver-users] PNG Optimization In-Reply-To: References: Message-ID: Cedric, Mapserver currently doesn't support png options, although this souldn't be to difficult to add as a FORMATOPTION (at least for the non GD renderers). You should note that the quality of the compression you apply to pngs has a non trivial effect on the overall rendering time, so we can't just add maximum compression by default. ps: you can see the effect of png compression schemes (on throughput and image size) on this small benchmark I ran for mod-geacache. the use case is the on the fly merging of two 256x256 png tiles: http://mod-geocache.googlecode.com/svn-history/r69/trunk/static/benchmark.png regards, thomas 2010/12/10 C?dric MOULLET : > Hi, > We are using MapServer to generate tiles and the following ouptut format is > used: > > OUTPUTFORMAT > ?NAME "pnga" > ?MIMETYPE "image/pnga" > ?DRIVER "AGG/PNG" > ?EXTENSION "png" > ?IMAGEMODE "RGBA" > ?TRANSPARENT TRUE > ?FORMATOPTION "INTERLACE=OFF" > END > > We observe that the size of the tiles can be reduced by a at least factor 2 > if we use a tool like optipng. > Is it possible to configure MapServer in order to optimize the file output > (and for example use optipng)? ? Or do you see another way to optimize the > image (I'd like to do that on the MapServer side in order to avoid a > postprocessing) ? > Thanks in advance for any hints. > C?dric > > -- > Welcome to my world: http://www.cedricmoullet.com/ > My Linked In profile: http://www.linkedin.com/in/cedricmoullet > Twitter: http://twitter.com/cedricmoullet > Home sweet home: > http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Steve.Toutant at inspq.qc.ca Fri Dec 10 06:09:03 2010 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 10 Dec 2010 09:09:03 -0500 Subject: [mapserver-users] Virtual Spatial Data - problem with GetFeatureInfo Message-ID: Hi, I have a layer defined as a OGR - Virtual Spatial Data. it is linked to a mssql 2005 database. the getMap requests work very well. But theGetFeatureInfo requests don't. I query several features, but I always get the same response. I'm using MS 5.2.1, is it a known issue? thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Dec 10 06:18:10 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 10 Dec 2010 16:18:10 +0200 Subject: [mapserver-users] Virtual Spatial Data - problem with GetFeatureInfo In-Reply-To: References: Message-ID: Hi, Perhaps I suffered the same trouble with a bunch of shapefiles which were read through tileindex using an OGR connection. I was advised to use tileindex without OGR because it is not necessary in case of shapefiles, and GetFeatureInfo started to work. My version was the same, 5.2.1. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Steve.Toutant at inspq.qc.ca L?hetetty: 10. joulukuuta 2010 16:09 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Virtual Spatial Data - problem with GetFeatureInfo Hi, I have a layer defined as a OGR - Virtual Spatial Data. it is linked to a mssql 2005 database. the getMap requests work very well. But theGetFeatureInfo requests don't. I query several features, but I always get the same response. I'm using MS 5.2.1, is it a known issue? thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Fri Dec 10 07:52:27 2010 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 10 Dec 2010 10:52:27 -0500 Subject: [mapserver-users] Virtual Spatial Data - problem with GetFeatureInfo In-Reply-To: Message-ID: Thanks But VRT is an OGR format I need to use it, unless there is another way to create a layer from non-spatial data. I'll create a ticket Steve "Rahkonen Jukka" @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2010-12-10 09:18 A , cc Objet Re: [mapserver-users] Virtual Spatial Data - problem with GetFeatureInfo Hi, Perhaps I suffered the same trouble with a bunch of shapefiles which were read through tileindex using an OGR connection. I was advised to use tileindex without OGR because it is not necessary in case of shapefiles, and GetFeatureInfo started to work. My version was the same, 5.2.1. -Jukka Rahkonen- L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Steve.Toutant at inspq.qc.ca L?hetetty: 10. joulukuuta 2010 16:09 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Virtual Spatial Data - problem with GetFeatureInfo Hi, I have a layer defined as a OGR - Virtual Spatial Data. it is linked to a mssql 2005 database. the getMap requests work very well. But theGetFeatureInfo requests don't. I query several features, but I always get the same response. I'm using MS 5.2.1, is it a known issue? thanks Steve_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Fri Dec 10 07:54:16 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 10 Dec 2010 10:54:16 -0500 Subject: [mapserver-users] Virtual Spatial Data - problem with GetFeatureInfo In-Reply-To: References: Message-ID: <4D024D28.4020807@mapgears.com> Steve.Toutant at inspq.qc.ca wrote: > > Thanks > But VRT is an OGR format I need to use it, unless there is another way > to create a layer from non-spatial data. > I'll create a ticket > Steve > Steve, Can you test this with MapServer 5.6.5? It is possible that this kind of issue may have been fixed since 5.2 -- Daniel Morissette http://www.mapgears.com/ From benftee at gmail.com Fri Dec 10 09:39:00 2010 From: benftee at gmail.com (Ben Thompson) Date: Fri, 10 Dec 2010 12:39:00 -0500 Subject: [mapserver-users] MS4W using apache/htdocs rather than ms4w/apps Message-ID: I'm trying to put my code in the apache/htdocs folder rather than in ms4w/apps...that way you don't have to bother with setting up aliases in httpd.conf in httpd.conf I say: DocumentRoot "d:/ms4w/Apache/htdocs" in chameleon.xml I say: web_server_path /chameleon/htdocs but nothing in the chameleon folder loads...all are 404-not-found even though the files do exist: (other folders ok) for example, for /chameleon/htdocs/skins/IGIS/a_pixel.gif in access.log: "GET /chameleon/htdocs///skins/IGIS/a_pixel.gif HTTP/1.1" 404 239 in error.log: File does not exist: D:/ms4w/apps/chameleon/htdocs/htdocs, referer: http://localhost/raap/index.php where is "/ms4w/apps" coming from? where is "/htdocs/htdocs" coming from? what am I missing? is this impossible with ms4w? thanx, Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Dec 10 09:51:10 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 10 Dec 2010 13:51:10 -0400 Subject: [mapserver-users] MS4W using apache/htdocs rather than ms4w/apps In-Reply-To: References: Message-ID: <4D02688E.1080200@gatewaygeomatics.com> On 10-12-10 1:39 PM, Ben Thompson wrote: > I'm trying to put my code in the apache/htdocs folder rather than in > ms4w/apps...that way you don't have to bother with setting up aliases in > httpd.conf > in httpd.conf I say: > DocumentRoot "d:/ms4w/Apache/htdocs" > > in chameleon.xml I say: > web_server_path > /chameleon/htdocs > > but nothing in the chameleon folder loads...all are 404-not-found even > though the files do exist: (other folders ok) > > for example, for /chameleon/htdocs/skins/IGIS/a_pixel.gif > in access.log: > "GET /chameleon/htdocs///skins/IGIS/a_pixel.gif HTTP/1.1" 404 239 > in error.log: > File does not exist: D:/ms4w/apps/chameleon/htdocs/htdocs, referer: > http://localhost/raap/index.php > > where is "/ms4w/apps" coming from? where is "/htdocs/htdocs" coming from? > what am I missing? is this impossible with ms4w? > Hello Ben, If you have questions such as this about configuring MS4W, I encourage you to use the MS4W mailing list (subscribe at: http://lists.maptools.org/mailman/listinfo/ms4w-users), so all of the MS4W users and developers can assist. Out of the box, MS4W allows you to use Apache's htdocs directory (the document root in your case out-of-the-box (unmodified after install) was probably: DocumentRoot "/ms4w/Apache/htdocs" Reinstall a fresh MS4W and then try placing a file in your Apache/htdocs folder and it will be accessible through your web browser by default. Any references to /ms4w/apps are made through the conf files located in the /ms4w/httpd.d/ directory. I assume you are having problems because there is a chameleon conf file in that /ms4w/httpd.d/ directory. Check it out. You can contact me directly as well if you need further support. Happy holidays. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From yves.moisan at boreal-is.com Fri Dec 10 11:27:59 2010 From: yves.moisan at boreal-is.com (Yves Moisan) Date: Fri, 10 Dec 2010 14:27:59 -0500 Subject: [mapserver-users] PNG Optimization In-Reply-To: References: Message-ID: <4D027F3F.308@boreal-is.com> Hi Thomas, Thanx for sharing this benchmark. I've tried optipng for fun and didn't see much difference with a 27 KB Agg/png file (saved about 600 bytes even with -o7). I'm eager to see compression post-processing strategies that are worth it. Cheers, Yves > Cedric, > Mapserver currently doesn't support png options, although this > souldn't be to difficult to add as a FORMATOPTION (at least for the > non GD renderers). > You should note that the quality of the compression you apply to pngs > has a non trivial effect on the overall rendering time, so we can't > just add maximum compression by default. > > ps: you can see the effect of png compression schemes (on throughput > and image size) on this small benchmark I ran for mod-geacache. the > use case is the on the fly merging of two 256x256 png tiles: > http://mod-geocache.googlecode.com/svn-history/r69/trunk/static/benchmark.png > > regards, > thomas > > > 2010/12/10 C?dric MOULLET: >> Hi, >> We are using MapServer to generate tiles and the following ouptut format is >> used: >> >> OUTPUTFORMAT >> NAME "pnga" >> MIMETYPE "image/pnga" >> DRIVER "AGG/PNG" >> EXTENSION "png" >> IMAGEMODE "RGBA" >> TRANSPARENT TRUE >> FORMATOPTION "INTERLACE=OFF" >> END >> >> We observe that the size of the tiles can be reduced by a at least factor 2 >> if we use a tool like optipng. >> Is it possible to configure MapServer in order to optimize the file output >> (and for example use optipng) ? Or do you see another way to optimize the >> image (I'd like to do that on the MapServer side in order to avoid a >> postprocessing) ? >> Thanks in advance for any hints. >> C?dric >> >> -- >> Welcome to my world: http://www.cedricmoullet.com/ >> My Linked In profile: http://www.linkedin.com/in/cedricmoullet >> Twitter: http://twitter.com/cedricmoullet >> Home sweet home: >> http://map.geo.admin.ch/?crosshair=bowl&zoom=11&X=185241.24219&Y=561288.90625&bgOpacity=0&selectedNode=node_ch.swisstopo.fixpunkte-lage1 >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Toutant at inspq.qc.ca Fri Dec 10 12:00:05 2010 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 10 Dec 2010 15:00:05 -0500 Subject: [mapserver-users] Virtual Spatial Data - problem with GetFeatureInfo In-Reply-To: <4D024D28.4020807@mapgears.com> Message-ID: I updated to mapserver 5.6.3 (ms4w) and everything works thanks Steve Daniel Morissette @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2010-12-10 10:54 A mapserver-users at lists.osgeo.org cc Objet Re: [mapserver-users] Virtual Spatial Data - problem with GetFeatureInfo Steve.Toutant at inspq.qc.ca wrote: > > Thanks > But VRT is an OGR format I need to use it, unless there is another way > to create a layer from non-spatial data. > I'll create a ticket > Steve > Steve, Can you test this with MapServer 5.6.5? It is possible that this kind of issue may have been fixed since 5.2 -- Daniel Morissette http://www.mapgears.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 joanne.mcgraw at SYMPATICO.CA Fri Dec 10 13:57:02 2010 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Fri, 10 Dec 2010 13:57:02 -0800 (PST) Subject: [mapserver-users] =?utf-8?b?4oCYbW9kZT1tYXDigJkgd2l0aCBXTUMgb2Yg?= =?utf-8?q?dynamic_=3CLayer=3E_failing_with_getString=28=29_error?= Message-ID: <1292018222357-5824774.post@n2.nabble.com> I apologize profusely for how brutally long this post is, but I?m trying to avoid a bunch of questions by providing as much background to the full process I am trying to develop before I actually get to specific problem I am stuck at now. I think it will save time, but I could be wrong?in which case, I?m sorry. I have a MAP file with an "empty" line LAYER defined as follows: LAYER NAME "line" STATUS ON TYPE line PROJECTION "init=epsg:42304" END CLASS COLOR 0 0 0 NAME "Some Line Layer" END METADATA "wms_title" "Some Line Layer" END END My process dynamically generates a shapefile. Then, within a WMS getMap request, I provide the DATA value to create an image of its contents as follows: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/testing/dynamic.map&request=getMap&service=wms&version=1.1.1&map.layer[line]=DATA ?id3/vector? END&layers=line&srs=EPSG:42304&bbox=-2338951,-800000,3008692,3900000&format=image/png&height=300&width=300 Knowing this, I can define this dynamic layer in a WMC tag and load it into OpenLayers (or probably anything else that supports loading and displaying a WMC, OpenLayers is just what I am using). The WMC definition for the above layer is as follows: Okay, that?s the background and everything works fine up to this point. Now, I?d like to print the image displayed to the user. To do this, I have another empty MAP file that I use to print a WMC. The entire contents of the MAP file are: MAP NAME "wmsContextServer" FONTSET "../../../mapserv/etc/fonts.txt" SYMBOLSET "../../../mapserv/etc/symbols.sym" SIZE 400 300 STATUS ON IMAGETYPE PNG IMAGECOLOR 255 255 255 EXTENT -2338951 -800000 3008692 3900000 UNITS METERS CONFIG "CGI_CONTEXT_URL" "1" PROJECTION "init=epsg:42304" END RESOLUTION 96 REFERENCE # Parameter settings NOT to change STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 # Parameter settings that will change if you replace the default 'refmap.png' IMAGE "../htdocs/images/refmap.png" SIZE 100 74 EXTENT -2.2e+006 -712631 3.0728e+006 3.84e+006 END # REFERENCE SCALEBAR STATUS EMBED INTERVALS 1 POSITION LL TRANSPARENT true UNITS kilometers STYLE 1 SIZE 100 7 LABEL SIZE small END END WEB INCLUDE "../../../mapserv/conf/imagepath.inc.map" METADATA # Used for App Page Title "wms_title" "WMC Context Client" "wms_connectiontimeout" "60" END END OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' IMAGEMODE RGB FORMATOPTION "INTERLACE=OFF" EXTENSION 'png' #TRANSPARENT ON END OUTPUTFORMAT NAME gif DRIVER 'GD/GIF' MIMETYPE 'image/gif' IMAGEMODE RGB FORMATOPTION "INTERLACE=OFF" EXTENSION 'gif' END END For any WMC I have tried so far that doesn?t contain one of these ?dynamic? layers in it, I can use the following URL to get an image of all of the layers in the WMC successfully: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/testing/wmsContextServer.map&mode=map&context=http://localhost/contexts/non-dynamiclayer.xml&layers=all And, without using any dynamic layers, we have been following this approach in a production environment for a couple of years to provide our print functionality. The wmsContextServer.map file has not changed since February 2, 2009. However, now we are trying to introduce these dynamic layers into the mix and I am running into trouble. If I use the same URL to the wmsContextServer.map but point to a context with a dynamic layer added in to it (I start with one that works and just insert the WMC contents I included above), I get the following error message and the *.img.tmp file mentioned is not created in the IMAGEURL directory (which is pointed to, BTW in the imagepath.inc.map file included in the ?wmsContextServer? MAP file above): msDrawMap(): WMS connection error. Failed to draw WMS layer named 'line'. This most likely happened because the remote WMS server returned an invalid image, and XML exception or another unexpected result in response to the GetMap request. Also check and make sure that the layer's connection URL is valid. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. /data/nl18/httpd/htdocs/ogc_tmp/4d027765_4cb4_3.img.tmp is not an EPPL file. I?ve looked online for some suggestions re: why I might be getting this message. It seems to have many possibilities but generally indicates a problem with the data. Unfortunately, the suggestions they contain aren?t helping me to figure out my specific problem and what could be wrong with the data or my definition of it or the request being made to get it, etc. In trying to figure this out, I guessed there must be some difference in generating the image depicting the dynamic layer when it is done as a WMS GetMap request vs. when it is done using a MapServer ?mode=map? parameter. So, I?ve been trying to figure out what the ?mode=map? URL would be to display that single ?dynamic? layer and perhaps identify my specific problem. And, maybe I have, but now I?m completely stuck. At this point, I have the following URL: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/testing/dynamic.map&map.layer[line]=DATA ?id3/vector? END&layers=line&mode=map And it is giving me this error: getString(): Symbol definition error. Parsing error near (?):(line 1) >From searching again online, I think that MapServer is trying to tell me there?s an error with the MAP file somehow but, first, I?m not clear how (if there?s a problem with the MAP file) the WMS GetMap requests against the same LAYER are working (and generally the MAP file has been working for close to 2 years) and, second, how to figure out what the problem with the MAP file is that it doesn?t like the dynamic layers. I came across the following post: http://osgeo-org.1803224.n2.nabble.com/Clarification-on-RFC-44-changes-td2585073.html which suggests that there may be a problem with the syntax of ?map.layer[line]=DATA ?id3/vector? END? in my URL but I don?t know what an alternative correct way to send this information would be that would work for both the WMS GetMap requests and the ?mode=map? method. I haven?t been able to get either the WMS GetMap request or the ?mode=map? request to work trying to guess. Is there anyone out there who can provide any help with this? Either some way to find out what the specific problem in the MAP file is that is causing the getString() error? Or, some alternative syntax to try for specifying the DATA parameter that would work for both a getMap request and using ?mode=map?? Very important, I am restricted to using MapServer 5.4.0 as that is the version currently running in our production environment and there are no plans for upgrading at this time. Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/mode-map-with-WMC-of-dynamic-Layer-failing-with-getString-error-tp5824774p5824774.html Sent from the Mapserver - User mailing list archive at Nabble.com. From forest21000 at yahoo.cn Fri Dec 10 19:59:37 2010 From: forest21000 at yahoo.cn (Forest) Date: Sat, 11 Dec 2010 11:59:37 +0800 (CST) Subject: [mapserver-users] Question about shp2img Tools In-Reply-To: <20101210134621.F3D9EE021A0@lists.osgeo.org> Message-ID: <659245.28250.qm@web92106.mail.cnh.yahoo.com> Hello, ???Has anyone used shp2img.exe tools in Win32 System? I've used the tools to create tiles for my web applications.It can create proper image for me,but there was problems about the labels.Take a point for example,its name is "MapServer",If it is?just beside?the boundary of tile extent,it may look like "MapSer",no "ver"."ver" was cut off.And the label's POSITION was set to auto,and it's still useless. ??Can anyone help me?Any help will be appreciated,thank you. ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sat Dec 11 05:44:31 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 11 Dec 2010 09:44:31 -0400 Subject: [mapserver-users] Question about shp2img Tools In-Reply-To: <659245.28250.qm@web92106.mail.cnh.yahoo.com> References: <659245.28250.qm@web92106.mail.cnh.yahoo.com> Message-ID: <4D03803F.50604@gatewaygeomatics.com> On 10-12-10 11:59 PM, Forest wrote: > Hello, > Has anyone used shp2img.exe tools in Win32 System? I've used the tools > to create tiles for my web applications.It can create proper image for > me,but there was problems about the labels.Take a point for example,its > name is "MapServer",If it is just beside the boundary of tile extent,it > may look like "MapSer",no "ver"."ver" was cut off.And the label's > POSITION was set to auto,and it's still useless. > Can anyone help me?Any help will be appreciated,thank you. Try adding "PARTIALS FALSE" to your label object. http://www.mapserver.org/mapfile/label.html Have a nice holiday. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Sat Dec 11 05:49:48 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 11 Dec 2010 09:49:48 -0400 Subject: [mapserver-users] =?UTF-8?B?4oCYbW9kZT1tYXDigJkgd2l0aCBXTUMg?= =?UTF-8?B?b2YgZHluYW1pYyA8TGF5ZXI+IGZhaWxpbmcgd2l0aCBnZXRTdHJpbmcoKSBlcnI=?= =?UTF-8?B?b3I=?= In-Reply-To: <1292018222357-5824774.post@n2.nabble.com> References: <1292018222357-5824774.post@n2.nabble.com> Message-ID: <4D03817C.6030202@gatewaygeomatics.com> On 10-12-10 5:57 PM, myOpenLayersUName wrote: > > And, maybe I have, but now I?m completely stuck. At this point, I have the > following URL: > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/testing/dynamic.map&map.layer[line]=DATA > ?id3/vector? END&layers=line&mode=map > > > And it is giving me this error: getString(): Symbol definition error. > Parsing error near (?):(line 1) > Quick note: That error usually occurs when there is a problem with the syntax of your CGI query string. There are notes on that at: http://www.mapserver.org/cgi/controls.html#changing-map-file-parameters-via-a-form-or-a-url My experience is that that error doesn't refer to a problem in your mapfile, but refers to a problem with the way you are calling mapserv.exe Others can hopefully assist you more thoroughly :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From forest21000 at yahoo.cn Sat Dec 11 19:40:35 2010 From: forest21000 at yahoo.cn (Forest) Date: Sun, 12 Dec 2010 11:40:35 +0800 (CST) Subject: [mapserver-users] Question about shp2img Tools In-Reply-To: <20101211170012.CC37EE01292@lists.osgeo.org> Message-ID: <944043.31695.qm@web92102.mail.cnh.yahoo.com> Thanks for Jeff McKenna's answer.With your help,I've solved the problem.Thanks again -------------- next part -------------- An HTML attachment was scrubbed... URL: From sumit321 at hotmail.com Sun Dec 12 23:34:40 2010 From: sumit321 at hotmail.com (Sumit Sharma) Date: Sun, 12 Dec 2010 23:34:40 -0800 (PST) Subject: [mapserver-users] Re: print config question / pdf-layers In-Reply-To: <4D009143.8080206@terrestris.de> References: <4D009143.8080206@terrestris.de> Message-ID: <1292225680319-5829924.post@n2.nabble.com> Have you tried to set PDF type as raster instead of vector? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/print-config-question-pdf-layers-tp5818177p5829924.html Sent from the Mapserver - User mailing list archive at Nabble.com. From wimvanbelle at gmail.com Mon Dec 13 00:04:38 2010 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Mon, 13 Dec 2010 09:04:38 +0100 Subject: =?UTF-8?Q?Re=3A_=5Bmapserver=2Dusers=5D_=E2=80=98mode=3Dmap=E2=80=99_with_WMC_of_dyn?= =?UTF-8?Q?amic_=3CLayer=3E_failing_with_getString=28=29_error?= In-Reply-To: <4D03817C.6030202@gatewaygeomatics.com> References: <1292018222357-5824774.post@n2.nabble.com> <4D03817C.6030202@gatewaygeomatics.com> Message-ID: I haven't done something similar to what you are trying to do, but at first glance i see a space standing between vector? and END. Did you try replacing the space with %20? Just a thought :). On 11 December 2010 14:49, Jeff McKenna wrote: > On 10-12-10 5:57 PM, myOpenLayersUName wrote: > >> >> And, maybe I have, but now I?m completely stuck. At this point, I have the >> following URL: >> >> >> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/testing/dynamic.map&map.layer[line]=DATA >> ?id3/vector? END&layers=line&mode=map >> >> >> And it is giving me this error: getString(): Symbol definition error. >> Parsing error near (?):(line 1) >> >> > Quick note: > > That error usually occurs when there is a problem with the syntax of your > CGI query string. There are notes on that at: > http://www.mapserver.org/cgi/controls.html#changing-map-file-parameters-via-a-form-or-a-url > > My experience is that that error doesn't refer to a problem in your > mapfile, but refers to a problem with the way you are calling mapserv.exe > > Others can hopefully assist you more thoroughly :) > > -jeff > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From toomas.aas at raad.tartu.ee Mon Dec 13 00:50:23 2010 From: toomas.aas at raad.tartu.ee (Toomas Aas) Date: Mon, 13 Dec 2010 10:50:23 +0200 Subject: [mapserver-users] MyGIS problem after upgrading 5.2.1 -> 5.6.5 Message-ID: <20101213105023.179464ran5lbrwws@webmail.raad.tartu.ee> Hello! I have read about MyGIS being deprecated, but I'm hoping for a quick fix for this particular problem, which wouldn't involve rewriting a lot of queries. We have a MyGIS layer which stopped working after upgrading Mapserver from 5.2.1 to 5.6.5. The data definition is: DATA 'geometry from (select * from koht where omavalitsus_id>=-1) feature, koht_bin geometry' When this layer is accessed from PHP/Mapscript, the following errors are logged by PHP: [MapServer Error]: msQueryByPoint(): No matching record(s) found. in source_file.php on line 35 [MapServer Error]: msMYGISLayerGetShapeRandom(): GetShape called on MYGIS layer with invalid DB query results. in source_file.php on line 35 [MapServer Error]: SELECT feature.id, feature.vertices,geometry.WKB_GEOMETRY , fe: mysql query failed in source_file.php on line 35 [MapServer Error]: describe (select: mysql query failed in source_file.php on line 35 I turned on query logging in MySQL, and the log shows that the query being sent to MySQL is: describe (select which certainly *should* fail. It seems that if I use a subquery in data definition, DESCRIBE is being done only on first word of the subquery. If I replace the subquery with a table name, things do not break, but this way I can't get the result that I actually need. Can anyone suggest a workaround? -- Toomas Aas From fjricca at gmail.com Mon Dec 13 01:41:17 2010 From: fjricca at gmail.com (=?ISO-8859-1?Q?Fco=2E_Javier_Garc=EDa_Ricca?=) Date: Mon, 13 Dec 2010 10:41:17 +0100 Subject: [mapserver-users] problems with relative path in mapfile Message-ID: Hello, I have an application with mapserver and pmapper. All work fine with relative path in mapfile but when I try to export the map to geotiff I get the next error: [13-Dec-2010 10:37:20] PHP Warning: readfile(../../../ms_tmp/18c6hpup5imb6vqlva3f950585.tif) [function.readfile]: failed to open stream If I change the relative path by the fullpath I can export to geotiff correctly. Is possible to solve this problem? Thanks -- FJRicca -------------- next part -------------- An HTML attachment was scrubbed... URL: From joanne.mcgraw at SYMPATICO.CA Mon Dec 13 08:05:56 2010 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Mon, 13 Dec 2010 08:05:56 -0800 (PST) Subject: [mapserver-users] =?utf-8?b?UmU6IOKAmG1vZGU9bWFw4oCZIHdpdGggV01D?= =?utf-8?q?_of_dynamic_=3CLayer=3E_failing_with_getString=28=29_error?= In-Reply-To: References: <1292018222357-5824774.post@n2.nabble.com> <4D03817C.6030202@gatewaygeomatics.com> Message-ID: <1292256356978-5831237.post@n2.nabble.com> "That error usually occurs when there is a problem with the syntax of your CGI query string." That is consistent with the post I found at: http://osgeo-org.1803224.n2.nabble.com/Clarification-on-RFC-44-changes-td2585073.html which suggests that there may be a problem with the syntax of ?map.layer[line]=DATA ?id3/vector? END? in my URL but I don?t know what an alternative correct way to send this information would be that would work for both the WMS GetMap requests and the ?mode=map? method. I haven?t been able to get either the WMS GetMap request or the ?mode=map? request to work trying to guess. Is there anyone out there who can provide any help with this? I have reviewed the URL Jeff provided and tried using an underscore rather than the dot notation but continue to receive the getString() error. Is there some alternative syntax to try for specifying the DATA parameter that would work for both a getMap request and using ?mode=map?? I don't see anything else in my URL that could be wrong...but maybe I've been looking at it too long. Also, to respond to Ophidian, I have tried inserting %20 and '+' in the blanks and tried replacing the single quotes as shown below. All to no effect. Thanks for the suggestion though. http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/testing/dynamic.map&map.layer[line]=DATA%20%91id3/vector%92%20END&layers=line&mode=map -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/mode-map-with-WMC-of-dynamic-Layer-failing-with-getString-error-tp5824774p5831237.html Sent from the Mapserver - User mailing list archive at Nabble.com. From greenkov at gmail.com Mon Dec 13 08:43:40 2010 From: greenkov at gmail.com (Alexander Petkov) Date: Mon, 13 Dec 2010 09:43:40 -0700 Subject: [mapserver-users] publish raster with integer pixel values In-Reply-To: <4D01F260.7090201@univie.ac.at> References: <4D01F260.7090201@univie.ac.at> Message-ID: Hi Simo: The table snippet you posted below looks like a histogram (ie how many pixels for each value), and in its form is not sufficient for a map display. Do you also have the geolocations for these pixels? Alex On Fri, Dec 10, 2010 at 2:26 AM, Simone Frigerio wrote: > ?Hi all! > I have some raster (e.g. DTM) to publish but I have problem on pixel value. > > e.g.: an img raster file ?classified. The attribute ?table could be as > following: > > OID ? ?VALUE ? ?COUNT > 0 ? ? ? ?944 ? ? ? ? ? 3 > 1 ? ? ? ?945 ? ? ? ? ? 7 > ... ? ? ? .... ? ? ? ? ? ? ?.... > 2014 ?3008 ? ? ? ?4 > > Briefly: first record copes with an elevation on 944 m present in 3 pixels. > Last record has an elevation of 3008 m in 4 pixels. > How can I visualized continuously this layer with all his 2014 values? How > can I define automatically all these classes? > Can you suggest me an idea? > > Thanks! > Simo > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From joanne.mcgraw at SYMPATICO.CA Mon Dec 13 08:58:35 2010 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Mon, 13 Dec 2010 08:58:35 -0800 (PST) Subject: [mapserver-users] =?utf-8?b?UmU6IOKAmG1vZGU9bWFw4oCZIHdpdGggV01D?= =?utf-8?q?_of_dynamic_=3CLayer=3E_-_Solved!?= In-Reply-To: <1292256356978-5831237.post@n2.nabble.com> References: <1292018222357-5824774.post@n2.nabble.com> <4D03817C.6030202@gatewaygeomatics.com> <1292256356978-5831237.post@n2.nabble.com> Message-ID: <1292259515296-5831449.post@n2.nabble.com> After preparing my last post, I noticed the strange numbers (really the fact that I got two different ones) for the single quotes when I encoded the URL (%91 and %92) that was failing: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/testing/dynamic.map&map.layer[line]=DATA%20%91id3/vector%92%20END&layers=line&mode=map And, after looking closer, I realized there were "smart" rather than regular (as in %27) single quotes. Once I changed them the following URL worked fine in the browser after all: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/testing/dynamic.map&map.layer[line]=DATA 'id3/vector' END&layers=line&mode=map So, I thought, my attempts at trying to figure out what the bigger problem I was having had failed to this point. I did not have "smart" quotes in the WMC for that definition (as shown in the original post) but I was unable to create an output image with it. Then, I thought of Obsidian's suggestion and changed the definition as follows (see the blanks replaced with %20 in the values): And, low and behold, I have an image with the dynamic shapefile's contents included. Yay!!! Thank you, Jeff and Obsidian, for your pointers towards things to look more closely at. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/mode-map-with-WMC-of-dynamic-Layer-failing-with-getString-error-tp5824774p5831449.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vsaraf.gmu at gmail.com Mon Dec 13 09:17:13 2010 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Mon, 13 Dec 2010 12:17:13 -0500 Subject: [mapserver-users] Boundary overlay shift Message-ID: Hello, I have been using Mapserver with Tilecache and Google maps to display polygon boundary overlays for some time now. However, the users complain that the overlay is not accurate if they zoom in to the map (zoom level 14 onwards). Is this a problem with the projection scheme being used? I think my data is in epsg 4326 format. What projection scheme does google maps use? Its strange that everything looks fine at the higher levels but when I zoom in beyond level 13, the boundary gets misaligned though the shape of the boundaries is accurate. Has anyone solved this problem? If yes, it would be great if you can point me in the correct direction. BTW, I use ms4w for windows and the GtileOverlay method with tilecache to render the boundary overlays. Thanks, Varun From toomas.aas at raad.tartu.ee Mon Dec 13 10:01:07 2010 From: toomas.aas at raad.tartu.ee (Toomas Aas) Date: Mon, 13 Dec 2010 20:01:07 +0200 Subject: [mapserver-users] MyGIS problem after upgrading 5.2.1 -> 5.6.5 In-Reply-To: <20101213105023.179464ran5lbrwws@webmail.raad.tartu.ee> References: <20101213105023.179464ran5lbrwws@webmail.raad.tartu.ee> Message-ID: <20101213200107.207555f52cz8xv48@webmail.raad.tartu.ee> E, 13 dets 2010 kirjutas Toomas Aas : > > We have a MyGIS layer which stopped working after upgrading > Mapserver from 5.2.1 to 5.6.5. > Moving back to 5.4.2 (which as I understand is the earliest version supporting PHP 5.3) solved the problem for now, until we can re-work our application. -- Toomas Aas From greenkov at gmail.com Mon Dec 13 12:13:08 2010 From: greenkov at gmail.com (Alexander Petkov) Date: Mon, 13 Dec 2010 13:13:08 -0700 Subject: [mapserver-users] publish raster with integer pixel values In-Reply-To: References: <4D01F260.7090201@univie.ac.at> Message-ID: On Mon, Dec 13, 2010 at 11:16 AM, Simone Frigerio wrote: > Yes of course Alex, > sorry I didn't include in the example. I can generate pixel geolocation, > of course. > Suggestion? You can use classes in your map file's layer declaration, where values within a certain range are given a color range, as in below: ================================== ... CLASS NAME "[-200..-175]" EXPRESSION ([pixel] >-255 AND [pixel] <=-175) KEYIMAGE "class2.gif" STYLE COLORRANGE 128 0 0 192 64 0 DATARANGE -255 -175 OUTLINECOLOR 0 0 0 END END CLASS NAME "[-175..-100]" EXPRESSION ([pixel] >=-175 AND [pixel] <=-100) KEYIMAGE "class3.gif" STYLE COLORRANGE 192 64 0 255 150 0 DATARANGE -175 -100 OUTLINECOLOR 0 0 0 END END ... =========================== In the example above, values start from -200, but you can adapt it to your case for values b/n 0 and 3008. class2.gif, class3.gif, etc are small images created by hand to show up in the legend with the color gradient. Using COLORRANGE will cut down significantly on the number of CLASS objects declared for your LAYER. Does this help? I hope I understand your problem correctly... Alex From Steve.Lime at state.mn.us Mon Dec 13 14:46:39 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 13 Dec 2010 16:46:39 -0600 Subject: [mapserver-users] get the closest feature in a point query In-Reply-To: <4D010F1F.2070000@squeakycode.net> References: <3D56274B4A7874468F58FADDBFD098010A1AD119@llmhs02.r8nssis.local> <4D010F1F.2070000@squeakycode.net> Message-ID: For mode=query (e.g. a standard point query) the closet feature is found. A layer's tolerance is used to select candidate features and then distances are computed for each candidate feature. If no feature is found in one layer then the process moves to the next layer. The computed distance doesn't persist across layers... Does this make sense or are you seeing something different? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Colson Sent: Thursday, December 09, 2010 11:17 AM To: Mark Volz Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] get the closest feature in a point query On 12/9/2010 11:07 AM, Mark Volz wrote: > Hello, > > I know we can use tolerance/ toleranceusnitsto control the sensitivity > forspatial queries. Is there a way tofurthercontrol queries by getting > the nearest feature, or the first feature found? > > Thanks > > Mark Volz > > GIS Specialist > > Lyon County, MN > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Not sure if this'll help, but I use PostGIS for that, here is the query I use to find the nearest road from a click point: select roads, distance(the_geom, GeomFromText(point, -1)) as distance from cadastralLine, ST_Buffer(GeomFromText(point, -1), 100) as g where the_geom && g and roads is not null order by distance limit 1 point here is a text variable, like: POINT(1 100) -Andy _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From David.Hildebrand at afsc.ca Thu Dec 9 08:15:09 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Thu, 9 Dec 2010 09:15:09 -0700 Subject: [mapserver-users] displaying 3-band images References: <910415.30922.qm@web33205.mail.mud.yahoo.com><9188AB5935664040805E01E348A2B81D1BF6904F@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69050@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF69051@lacex1.afsc.ads> Jukka: Here is the output from gdalinfo Driver: GTiff/GeoTIFF Files: Z:\AWiFS\initial_delivery\images\July.tif Z:\AWiFS\initial_delivery\images\July.aux Z:\AWiFS\initial_delivery\images\July.rrd Size is 26864, 20154 Coordinate System is: LOCAL_CS[] Origin = (-701343.999999998950000,711367.999999999190000) Pixel Size = (55.999999999999915,-55.999999999999950) Metadata: AREA_OR_POINT=Area TIFFTAG_XRESOLUTION=100 TIFFTAG_YRESOLUTION=100 Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( -701344.000, 711368.000) Lower Left ( -701344.000, -417256.000) Upper Right ( 803040.000, 711368.000) Lower Right ( 803040.000, -417256.000) Center ( 50848.000, 147056.000) Band 1 Block=26864x1 Type=Byte, ColorInterp=Red Min=0.000 Max=255.000 Minimum=0.000, Maximum=255.000, Mean=48.345, StdDev=55.880 Overviews: 6716x5039, 3358x2520, 1679x1260, 840x630, 420x315, 210x158, 105x79, 53x40 Metadata: STATISTICS_MINIMUM=0 STATISTICS_MAXIMUM=255 STATISTICS_MEAN=48.345449373874 STATISTICS_MEDIAN=4.8562875856817e-167 STATISTICS_MODE=1.5919265163982e+244 STATISTICS_STDDEV=55.880036995387 LAYER_TYPE=athematic Band 2 Block=26864x1 Type=Byte, ColorInterp=Green Min=0.000 Max=255.000 Minimum=0.000, Maximum=255.000, Mean=17.392, StdDev=33.316 Overviews: 6716x5039, 3358x2520, 1679x1260, 840x630, 420x315, 210x158, 105x79, 53x40 Metadata: STATISTICS_MINIMUM=0 STATISTICS_MAXIMUM=255 STATISTICS_MEAN=17.392222305608 STATISTICS_MEDIAN=4.8562875856817e-167 STATISTICS_MODE=1.5919265163982e+244 STATISTICS_STDDEV=33.315967583066 LAYER_TYPE=athematic Band 3 Block=26864x1 Type=Byte, ColorInterp=Blue Min=0.000 Max=255.000 Minimum=0.000, Maximum=255.000, Mean=24.741, StdDev=36.606 Overviews: 6716x5039, 3358x2520, 1679x1260, 840x630, 420x315, 210x158, 105x79, 53x40 Metadata: STATISTICS_MINIMUM=0 STATISTICS_MAXIMUM=255 STATISTICS_MEAN=24.74071367083 STATISTICS_MEDIAN=4.8562875856817e-167 STATISTICS_MODE=1.5919265163982e+244 STATISTICS_STDDEV=36.605847882772 LAYER_TYPE=athematic =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Wednesday, December 08, 2010 12:49 PM To: David Hildebrand; Michael Schulz; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] displaying 3-band images Hi, What does gdalinfo tell about your image? -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: David Hildebrand L?hetetty: ke 8.12.2010 21:33 Vastaanottaja: Michael Schulz; mapserver-users at lists.osgeo.org Aihe: RE: [mapserver-users] displaying 3-band images Michael: I inserted the following lines in my map file. CONFIG "MS_ERRORFILE" "stdout" DEBUG 5 CONFIG "CPL_DEBUG" "ON" CONFIG "PROJ_DEBUG" "ON" CONFIG "ON_MISSING_DATA" "FAIL" However, the behavior is the same and I get no additional messages. However, the following message shows up in the apache error file. GDAL: GDALDeregister_GTiff() called.\r My mapserver (ms4w) has been built with GDAL support because mapserv -v gives me the following. MapServer version 5.3-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I'm wondering if there is a problem in GDAL reading the projection information because using gdalinfo on the source file gives me the following in the output. Coordinate System is: LOCAL_CS[] Yet, when I add the correct projection information using gdal_translate -a_srs ... ArcView comes up with a blank image. Any clues? =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. _____ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Michael Schulz Sent: Wednesday, December 08, 2010 1:20 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] displaying 3-band images Hi, are you sure your raster can be read by mapserver cgi? Maybe try adding the ON_MISSING_DATA config option at map file level to rule out this error: CONFIG "ON_MISSING_DATA" "FAIL" Also, I think IMAGEMODE is a parameter of the outputformat object not the layer object. Cheers, Michael 2010/12/8 David Hildebrand I have a TIFF image I want to display. The image is a 3-band 8-bit image. The server logs show no error but my display is coming out blank. I am using ms4w with GDAL support so I'm not sure what is going wrong here. A sample of the mapfile is shown below. I get a parsing error if I include IMAGEMODE "RGB" in the layer definition. Any suggestions? LAYER NAME "awifs" PROCESSING "BANDS=3,2,1" PROCESSING "SCALE=AUTO" METADATA "wms_title" "awifs" "wms_opaque" "1" "ows_resolution" "56 56" "wms_srs" "EPSG:43001" "wms_extent" "-701344.000 -417256.000 803040.000 711368.000" "wcs_srs" "EPSG:43001" "wcs_extent" "-701344.000 -417256.000 803040.000 711368.000" END STATUS on TYPE raster DATA "//Plcoressatsb01/AWiFS/initial_delivery/images/July.tif" PROJECTION "init=epsg:43001" END EXTENT -701344.000 -417256.000 803040.000 711368.000 UNITS meters END =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. _____ From: Brent Wood [mailto:pcreso at yahoo.com] Sent: Monday, December 06, 2010 4:37 PM To: David Hildebrand; Brent Fraser Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] street maps Sigh, Get the link right!! PDF summarising Bing/Google licelice issues http://victorianspatialcouncil.org/cms/library/attachments/VSC%20Guidance%20Note%201_T&C%20Use%20of%20%20Google%20Maps%20and%20Bing%20Maps%20v1.0-May%202010.pdf Brent Wood --- On Tue, 12/7/10, Brent Fraser wrote: From: Brent Fraser Subject: Re: [mapserver-users] street maps To: "David Hildebrand" Cc: mapserver-users at lists.osgeo.org Date: Tuesday, December 7, 2010, 10:02 AM David, This thread may get you started with OpenStreetMap. Be sure to read Google's and Bing's Term Of Service. http://lists.osgeo.org/pipermail/mapserver-users/2010-July/066061.html Best Regards, Brent Fraser On 12/6/2010 12:18 PM, David Hildebrand wrote: I want to add a street map (OpenStreetMap, Google, Bing, etc.) as a WMS layer but I'm not sure which service to use and what the URL would be to try them out? My AOI is only about 10 by 10 degrees wide. Any suggestions? =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -----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 -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg -------------- next part -------------- An HTML attachment was scrubbed... URL: From angelarifb at gmail.com Tue Dec 14 11:40:17 2010 From: angelarifb at gmail.com (Eugene Zola) Date: Tue, 14 Dec 2010 21:40:17 +0200 Subject: [mapserver-users] Post positive reviews Message-ID: Google?s Huge Change and How it affects you. ? Anyone can now post bad reviews and kill your rank. ? We post good reviews and improve your rank. ? We post good reviews to keep others from killing your rank. Google: Judge, Jury and Online Shopping Executioner Google rank is based on reviews of your business? Google Statement: "...in the last few days we developed an algorithmic solution which detects the merchant from the Times article along with hundreds of other merchants that, in our opinion, provide an extremely poor user experience. The algorithm we incorporated into our search rankings represents an initial solution to this issue, and Google users are now getting a better experience as a result." This means that anyone can write bad reviews about your business and lower your ranking. We knew that getting good reviews and not getting bad reviews was always important. Now it is a must to have good reviews for your business to keep the rank safe or to improve rank with Google. We post positive reviews for your company. We have the experience and ability to post hundreds of positive reviews that are all unique content and posted on unique IP addresses. www.postpositivereviews.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gilberto.reis at urbansystems.com.br Tue Dec 14 12:15:14 2010 From: gilberto.reis at urbansystems.com.br (gilberto.reis@urbansystems.com) Date: Tue, 14 Dec 2010 12:15:14 -0800 (PST) Subject: [mapserver-users] How to configure MapScript in Zend Server 5? Message-ID: <1292357714650-5834747.post@n2.nabble.com> Hello, We are running our map applications in the the Linux Debian 5 Server and Apache 2 and MapServer and PHP/Mapscript and PHP Version 5.2.14. Migrating the same application to Zend Server 5.0 the mapscript extension are not loaded. Anybody have ever some troubles unsing Zend Server and Mapscript? What's recomendation to run my application in this plataform? Thanks very much in advance. Gilberto Reis -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-configure-MapScript-in-Zend-Server-5-tp5834747p5834747.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Wed Dec 15 07:39:54 2010 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 15 Dec 2010 10:39:54 -0500 Subject: [mapserver-users] GetFeatureInfo - get wms_title Message-ID: Hi, I use INFO_FORMAT=gml for a GetFeatureInfo request. It works, but I would like to get the wms_title instead of the layers name. In the UI people are seeing the title not the name. Showing the name of a layer is useless in our context. Is it possible to retreive the wms_title if it exists? thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Wed Dec 15 08:03:52 2010 From: ian.walberg at airborne.aero (Ian Walberg) Date: Wed, 15 Dec 2010 11:03:52 -0500 Subject: [mapserver-users] Creating and editing UTF8 shape files In-Reply-To: References: Message-ID: Hello list, Can anyone advise us what tools are available for creating and editing UTF8 shape files. Many thanks Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From cnieman at dmsolutions.ca Wed Dec 15 08:12:30 2010 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Wed, 15 Dec 2010 11:12:30 -0500 Subject: [mapserver-users] Creating and editing UTF8 shape files In-Reply-To: References: Message-ID: <4D08E8EE.5080604@dmsolutions.ca> Hello Ian, QGIS can handle many different encodings. You set the encoding when you save a new shapefile or load an existing shapefile. Regards, Christy -- Christy Nieman GIS Technician DM Solutions Group, Inc. Email: cnieman at dmsolutions.ca Web: http://dmsolutions.ca On 12/15/2010 11:03 AM, Ian Walberg wrote: > > Hello list, > > Can anyone advise us what tools are available for creating and editing > UTF8 shape files. > > Many thanks > > Ian > > > _______________________________________________ > 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 woodbri at swoodbridge.com Wed Dec 15 08:22:36 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 15 Dec 2010 11:22:36 -0500 Subject: [mapserver-users] Creating and editing UTF8 shape files In-Reply-To: References: Message-ID: <4D08EB4C.1040708@swoodbridge.com> On 12/15/2010 11:03 AM, Ian Walberg wrote: > Hello list, > > Can anyone advise us what tools are available for creating and editing > UTF8 shape files. > > Many thanks > > Ian Hi Ian, You might want to try: http://www.smartwebonline.com/ I think you will find that their free software will do what you want. I'm not associated with this product. -Steve W From dmorissette at mapgears.com Wed Dec 15 09:16:33 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 15 Dec 2010 12:16:33 -0500 Subject: [mapserver-users] GetFeatureInfo - get wms_title In-Reply-To: References: Message-ID: <4D08F7F1.1050508@mapgears.com> Steve.Toutant at inspq.qc.ca wrote: > > Hi, > I use INFO_FORMAT=gml for a GetFeatureInfo request. It works, but I > would like to get the wms_title instead of the layers name. > > In the UI people are seeing the title not the name. Showing the name of > a layer is useless in our context. > Is it possible to retreive the wms_title if it exists? It seems that there is a nice undocumented feature to do what you want (I found it in the code just now): Add a "wms_layername" metadata to your layer definition and this value will be used as the layer name in the GetFeatureInfo GML output. (The default is to use the layer name + "_layer" (e.g. "parks_layer" for a layer named "parks") Daniel -- Daniel Morissette http://www.mapgears.com/ From ian.walberg at airborne.aero Wed Dec 15 09:53:09 2010 From: ian.walberg at airborne.aero (Ian Walberg) Date: Wed, 15 Dec 2010 12:53:09 -0500 Subject: [mapserver-users] Creating and editing UTF8 shape files In-Reply-To: <4D08E8EE.5080604@dmsolutions.ca> References: <4D08E8EE.5080604@dmsolutions.ca> Message-ID: Christy, Many thanks, that seems to do what we want. Do you know how to import a UTF8 text from a CSV file? Thanks Ian From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Christy Nieman Sent: Wednesday, December 15, 2010 8:13 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Creating and editing UTF8 shape files Hello Ian, QGIS can handle many different encodings. You set the encoding when you save a new shapefile or load an existing shapefile. Regards, Christy -- Christy Nieman GIS Technician DM Solutions Group, Inc. Email: cnieman at dmsolutions.ca Web: http://dmsolutions.ca On 12/15/2010 11:03 AM, Ian Walberg wrote: Hello list, Can anyone advise us what tools are available for creating and editing UTF8 shape files. Many thanks Ian _______________________________________________ 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 qazi.iqbal at gmail.com Wed Dec 15 10:03:23 2010 From: qazi.iqbal at gmail.com (qazi iqbal) Date: Wed, 15 Dec 2010 13:03:23 -0500 Subject: [mapserver-users] Installling GDAL Message-ID: Hello I am trying to install mapserver on a remote server. Before installation I have installed all the required external libraries. Now I got stuck on GDAL. I ran ./configure, it looked went ok, but when I ran #make, it is giving me following error. Can anyone help me in resolving it. (cd port; make) make[1]: Entering directory `/usr/local/src/gdal-1.5.3/port' /bin/sh /usr/local/src/gdal-1.5.3/libtool --mode=compile --tag=CXX --tag CXX g++ -DOGR_ENABLED -I/usr/local/src/gdal-1.5.3/port -c -o cpl_conv.o cpl_conv.cpp libtool: compile: g++ -DOGR_ENABLED -I/usr/local/src/gdal-1.5.3/port -c cpl_conv.cpp -o .libs/cpl_conv.o /usr/local/src/gdal-1.5.3/libtool: line 809: g++: command not found make[1]: *** [cpl_conv.o] Error 1 make[1]: Leaving directory `/usr/local/src/gdal-1.5.3/port' make: *** [port-target] Error 2 Thanks Qazi Iqbal -------------- next part -------------- An HTML attachment was scrubbed... URL: From greenkov at gmail.com Wed Dec 15 10:19:11 2010 From: greenkov at gmail.com (Alexander Petkov) Date: Wed, 15 Dec 2010 11:19:11 -0700 Subject: [mapserver-users] Installling GDAL In-Reply-To: References: Message-ID: > /usr/local/src/gdal-1.5.3/libtool: line 809: g++: command not found You need to install g++ BTW, why not try and compile the latest GDAL version, since you are compiling from source anyway? The 1.5.3 release is quite dated. Alex On Wed, Dec 15, 2010 at 11:03 AM, qazi iqbal wrote: From cnieman at dmsolutions.ca Wed Dec 15 10:29:30 2010 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Wed, 15 Dec 2010 13:29:30 -0500 Subject: [mapserver-users] Creating and editing UTF8 shape files In-Reply-To: References: <4D08E8EE.5080604@dmsolutions.ca> Message-ID: <4D09090A.8040901@dmsolutions.ca> Ian, For future QGIS-related questions, QGIS user's list email address is here: qgis-user at lists.osgeo.org To import a delimited text file, there is a plugin called "Add Delimited Text Layer". It can then be saved to a shapefile by right-clicking on it in the list of Layers on the left. Regards, Christy On 12/15/2010 12:53 PM, Ian Walberg wrote: > > Christy, > > Many thanks, that seems to do what we want. > > Do you know how to import a UTF8 text from a CSV file? > > Thanks > > Ian > > *From:*mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of > *Christy Nieman > *Sent:* Wednesday, December 15, 2010 8:13 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Creating and editing UTF8 shape files > > Hello Ian, > > QGIS can handle many different encodings. You set the encoding when > you save a new shapefile or load an existing shapefile. > > Regards, > Christy > -- > Christy Nieman > GIS Technician > DM Solutions Group, Inc. > Email: cnieman at dmsolutions.ca > Web: http://dmsolutions.ca > > On 12/15/2010 11:03 AM, Ian Walberg wrote: > > Hello list, > > Can anyone advise us what tools are available for creating and editing > UTF8 shape files. > > Many thanks > > Ian > > > > _______________________________________________ > 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.Toutant at inspq.qc.ca Wed Dec 15 10:44:14 2010 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 15 Dec 2010 13:44:14 -0500 Subject: [mapserver-users] GetFeatureInfo - get wms_title In-Reply-To: <4D08F7F1.1050508@mapgears.com> Message-ID: Hi daniel, It seems that only the parameter NAME of the LAYER key is used by getFeatureInfo. the wms_name of the METADATA is not used. I tried to set wms_layername in the METADATA but I get an error and no response. I tried with wms_layer_name and the query's result still returns LAYER NAME Steve Daniel Morissette @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2010-12-15 12:16 A mapserver-users at lists.osgeo.org cc Objet Re: [mapserver-users] GetFeatureInfo - get wms_title Steve.Toutant at inspq.qc.ca wrote: > > Hi, > I use INFO_FORMAT=gml for a GetFeatureInfo request. It works, but I > would like to get the wms_title instead of the layers name. > > In the UI people are seeing the title not the name. Showing the name of > a layer is useless in our context. > Is it possible to retreive the wms_title if it exists? It seems that there is a nice undocumented feature to do what you want (I found it in the code just now): Add a "wms_layername" metadata to your layer definition and this value will be used as the layer name in the GetFeatureInfo GML output. (The default is to use the layer name + "_layer" (e.g. "parks_layer" for a layer named "parks") Daniel -- Daniel Morissette http://www.mapgears.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 Steve.Toutant at inspq.qc.ca Wed Dec 15 11:28:01 2010 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Wed, 15 Dec 2010 14:28:01 -0500 Subject: [mapserver-users] GetFeatureInfo - get wms_title In-Reply-To: <4D08F7F1.1050508@mapgears.com> Message-ID: wms_layername works. the given name should not have spaces in it. Otherwise the MGL is not valid. Steve Daniel Morissette @lists.osgeo.org Envoy? par : mapserver-users-bounces at lists.osgeo.org 2010-12-15 12:16 A mapserver-users at lists.osgeo.org cc Objet Re: [mapserver-users] GetFeatureInfo - get wms_title Steve.Toutant at inspq.qc.ca wrote: > > Hi, > I use INFO_FORMAT=gml for a GetFeatureInfo request. It works, but I > would like to get the wms_title instead of the layers name. > > In the UI people are seeing the title not the name. Showing the name of > a layer is useless in our context. > Is it possible to retreive the wms_title if it exists? It seems that there is a nice undocumented feature to do what you want (I found it in the code just now): Add a "wms_layername" metadata to your layer definition and this value will be used as the layer name in the GetFeatureInfo GML output. (The default is to use the layer name + "_layer" (e.g. "parks_layer" for a layer named "parks") Daniel -- Daniel Morissette http://www.mapgears.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 greenkov at gmail.com Wed Dec 15 12:39:56 2010 From: greenkov at gmail.com (Alexander Petkov) Date: Wed, 15 Dec 2010 13:39:56 -0700 Subject: [mapserver-users] Installling GDAL In-Reply-To: References: Message-ID: Hey Qazi: On Wed, Dec 15, 2010 at 12:15 PM, qazi iqbal wrote: > Thanks Alex > I am compiling from latest version 1.5.3 The latest release is 1.7.3: http://www.gdal.org/index.html > Are there any prerequisit before installing gdal? Yes, software like geos, netcdf, libgeotiff, etc. > Do you know what is g++? g++ is the compiler needed to compile gdal, without it compile won't work. See here for building instructions: http://trac.osgeo.org/gdal/wiki/BuildHints > Qazi > > On Wed, Dec 15, 2010 at 1:19 PM, Alexander Petkov > wrote: >> >> > /usr/local/src/gdal-1.5.3/libtool: line 809: g++: command not found >> >> You need to install g++ >> >> BTW, why not try and compile the latest GDAL version, since you are >> compiling from source anyway? The 1.5.3 release is quite dated. >> >> Alex >> >> On Wed, Dec 15, 2010 at 11:03 AM, qazi iqbal wrote: > > > > -- > Qazi M. Iqbal > From David.Hildebrand at afsc.ca Wed Dec 15 14:28:35 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 15 Dec 2010 15:28:35 -0700 Subject: [mapserver-users] symbolizing polygon outlines References: Message-ID: <9188AB5935664040805E01E348A2B81D1BF69062@lacex1.afsc.ads> Is there a way of symbolizing a polygon outline other than with OUTLINECOLOR? I would like to create a complex dashed line but it seems that polygons do not support that. Any suggestions? =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. From bfraser at geoanalytic.com Wed Dec 15 15:13:00 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 15 Dec 2010 16:13:00 -0700 Subject: [mapserver-users] symbolizing polygon outlines In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF69062@lacex1.afsc.ads> References: <9188AB5935664040805E01E348A2B81D1BF69062@lacex1.afsc.ads> Message-ID: <4D094B7C.9020503@geoanalytic.com> David, One technique is to render the polygon data twice; once as TYPE POLYGON to render the fill, and again as TYPE LINE to render the polygon outline as a dashed line. You can use the same polygon data file for each. If you name the layers the same, they'll turn on/off together. Best Regards, Brent Fraser On 12/15/2010 3:28 PM, David Hildebrand wrote: > Is there a way of symbolizing a polygon outline other than with > OUTLINECOLOR? I would like to create a complex dashed line but it seems > that polygons do not support that. > > Any suggestions? > > > =========================== > David V. Hildebrand > Agriculture Financial Services Corporation > (403) 782-8239 > > www.afsc.ca > This communication is intended for the use of the recipient to which it > is addressed, and may contain confidential, personal and/or privileged > information. Please contact Agriculture Financial Services Corporation > immediately if you are not the intended recipient of this communication, > and do not copy, distribute, or take action relying on it. Any > communication received in error, or subsequent reply, should be deleted > or destroyed. Please consider the environment before printing this > email. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From tchaddad at gmail.com Wed Dec 15 15:21:31 2010 From: tchaddad at gmail.com (TC Haddad) Date: Wed, 15 Dec 2010 15:21:31 -0800 Subject: [mapserver-users] =?iso-8859-1?q?Fwd=3A_Hiding_Layers_in_OGC_Web?= =?iso-8859-1?q?_Services_=B6?= In-Reply-To: References: Message-ID: Tried sending this to the Dev list this morning, but it doesn't seem to have made it. TH ---------- Forwarded message ---------- Date: Wed, Dec 15, 2010 at 10:57 AM Subject: Hiding Layers in OGC Web Services ? To: mapserver-dev at lists.osgeo.org Hi all, Hope it's appropriate to post this question here. I was just wondering about the status of the issue described here: http://trac.osgeo.org/mapserver/wiki/HidingLayersInOGCWebServices Recently I revisited this issue and dusted off an old WMS manual that seemed to have the elements of the solution I desired. Perhaps I am being overly optimistic, but I thought I should ask if this approach has already been considered, or how it could be used via MapServer. Specifically, I am interested in being able to serve a group of layers (say a base map composed of many layers with nice cartography) and have that group only visible in my GetCapabilities as a single entry. I don not want my users to be able to look inside my base map group and request the individual component layers (like roads, streams, etc). >From this old WMS manual I have, it seems this should be possible using different combinations of the Layer Name and Title elements in GetCapabilities. here is the relevant quote: "A Map Server which advertises a Layer containing a Name element MUST be able to accept that Name as the value of LAYERS argument in a GetMap request and return the corresponding map. A viewer Client MUST NOT attempt to request a Layer that has a Title but no Name." So from this it looks like the behavior I want would be possible if I could somehow get MapServer to allow me to advertise a Name and Title for my basemap group, but only a Title (and no Name) element for the Layers inside that group. Hope I am making sense here. I can tell a lot of people have looked at this, so I'm not sure this is a helpful additional perspective, but I just had to ask! Tanya From Neil.Mercer at douglaspartners.com.au Wed Dec 15 21:49:12 2010 From: Neil.Mercer at douglaspartners.com.au (Neil Mercer) Date: Thu, 16 Dec 2010 16:49:12 +1100 Subject: [mapserver-users] Accessing NearMap tile server through MapServer Message-ID: Hi, I'm attempting to access the NearMap service through MapServer. Based on the documentation on the NearMap web site I have successfully created an XML file for GDAL to source imagery. Testing via gdal_translate shows I can pull imagery OK. I've added the GDAL source to my mapfile as shown below, and have been able to have the layer show in a GetCapabilities request. However if I attempt to request a map I get a blank image back from MapServer - no error, just a blank image. Is there something obvious wrong? Is there a way to verify the request being passed from MapServer to GDAL? Here's my layer definition: LAYER NAME "NearMap" METADATA "wms_title" "NearMap" END TYPE RASTER DATA "data/nearmap.xml" STATUS ON PROJECTION "init=epsg:4326" END EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34 UNITS meters END Thanks, Neil. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Wed Dec 15 22:00:34 2010 From: ian.walberg at airborne.aero (Ian Walberg) Date: Thu, 16 Dec 2010 01:00:34 -0500 Subject: [mapserver-users] OGR data layer type - points and lines In-Reply-To: References: Message-ID: Hello list, Using an OGR connection to an sqlite data file we can get point and labels to draw successfully. However when we try and draw a line using the point data we do not get anything drawn. Layer details below. Thanks Ian LAYER NAME ogr_points STATUS DEFAULT TYPE point CONNECTIONTYPE OGR CONNECTION "points.sqlite" DATA "DataPoints" CLASS NAME "From OGR" COLOR 255 0 0 STYLE SYMBOL 'City' SIZE 5 COLOR 0 255 255 END LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 TYPE truetype FONT Unicode SIZE 16 ANTIALIAS TRUE POSITION AUTO END # end of label END END LAYER NAME ogr_line STATUS OFF TYPE line CONNECTIONTYPE OGR CONNECTION "points.sqlite" DATA "DataPoints" CLASS STYLE COLOR 255 22 22 WIDTH 2 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at vdputte.nl Thu Dec 16 00:42:51 2010 From: tom at vdputte.nl (Tom van der Putte) Date: Thu, 16 Dec 2010 09:42:51 +0100 Subject: [mapserver-users] Creating and editing UTF8 shape files Message-ID: <4032.1292488971@vdputte.nl> Hi Ian, It is also possible to save shapefiles in UTF8 in ArcMap by changing a registry entry (a little user-unfriendly, but it works). See http://resources.arcgis.com/content/kbase?fa=articleShow&d=21106 [1] . Tom van der Putte Links: ------ [1] http://resources.arcgis.com/content/kbase?fa=articleShow&d=21106 -------------- next part -------------- An HTML attachment was scrubbed... URL: From micklesh at gmail.com Thu Dec 16 00:54:49 2010 From: micklesh at gmail.com (Michael Shishcu) Date: Thu, 16 Dec 2010 10:54:49 +0200 Subject: [mapserver-users] Accessing NearMap tile server through MapServer In-Reply-To: References: Message-ID: Hi Neil Actually EPSG 4326 has extent +/- 90, +/- 180. Think you do not have blank map, but everything in a single pixel in the center ;-) try EPSG:900913 instead hope this helps, regards, michael On 16 December 2010 07:49, Neil Mercer wrote: > Hi, > > > > I?m attempting to access the NearMap service through MapServer. Based on > the documentation on the NearMap web site I have successfully created an XML > file for GDAL to source imagery. Testing via gdal_translate shows I can > pull imagery OK. > > > > I?ve added the GDAL source to my mapfile as shown below, and have been able > to have the layer show in a GetCapabilities request. However if I attempt > to request a map I get a blank image back from MapServer ? no error, just a > blank image. Is there something obvious wrong? Is there a way to verify > the request being passed from MapServer to GDAL? > > > > Here?s my layer definition: > > > > LAYER > > NAME "NearMap" > > METADATA > > "wms_title" "NearMap" > > END > > TYPE RASTER > > DATA "data/nearmap.xml" > > STATUS ON > > PROJECTION > > "init=epsg:4326" > > END > > EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34 > > UNITS meters > > END > > > > Thanks, > > Neil. > > _______________________________________________ > 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.ellett at statkart.no Thu Dec 16 01:05:03 2010 From: thomas.ellett at statkart.no (tellett) Date: Thu, 16 Dec 2010 01:05:03 -0800 (PST) Subject: [mapserver-users] =?utf-8?q?Re=3A_Fwd=3A_Hiding_Layers_in_OGC_We?= =?utf-8?q?b_Services_=C2=B6?= In-Reply-To: References: Message-ID: <1292490303858-5841309.post@n2.nabble.com> Hi Tanya, You have a couple of options here depending on whether you want the individual layer metadata to be visible in the capabilities file or not. The first option is to assign no NAME attribute to the individual layers but have a GROUP attribute. This would allow the individual layers to be seen in the capabilities file, with all their associated metadata (metadata which the group layer would not have), but they would not be queryable in an OGC request. Option 2 is to use the "ows_hidden_layer" "true" attribute and code. This is slightly different in that you use this with the REQUIRES attribute to 'tie' layers together. This has the downside that no group layer is created as such, just a kind of 'master' layer that all other layers are tied to, so that if the 'master' layer is requested all other layers tied to it are automatically requested.That probably made no sense so an example: LAYER NAME "master" ..... ..... END LAYER NAME "sublayer1" ....... REQUIRES "[master]" METADATA "ows_hidden_layer" "true" END END LAYER NAME "sublayer2" ..... REQUIRES "[master]" METADATA "ows_hidden_layer" "true" END END In this example, "sublayer1" and "sublayer2" will not be seen in a capabilities file and cannot be queried. However, they are 'tied' to the "master" layer so that if this layer is requested, "sublayer1" and "sublayer2" are also requested. Hope this might help a bit!! To be honest we're not that happy with the options available for hiding layers and the control over nested layers, especially as the current options don't fulfill our needs over here in Europe with regards the INSPIRE specifications. So we've written an RFC if you're interested with regards container layers that would give you a lot more control over layer behaviour, we're still hoping someone is interested enough to make the, not insignificant, coding changes! http://osgeo-org.1803224.n2.nabble.com/INSPIRE-compliancy-A-request-for-comments-on-a-possible-RFC-td5661761.html#a5661761 ' http://trac.osgeo.org/mapserver/ticket/3608 Cheers Tom -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Fwd-Hiding-Layers-in-OGC-Web-Services-tp5840585p5841309.html Sent from the Mapserver - User mailing list archive at Nabble.com. From isao.nasuno at ctc-g.co.jp Thu Dec 16 01:46:24 2010 From: isao.nasuno at ctc-g.co.jp (Isao NASUNO) Date: Thu, 16 Dec 2010 18:46:24 +0900 Subject: [mapserver-users] draw hatch pattern with image file (ex. gif, etc) In-Reply-To: <1292490303858-5841309.post@n2.nabble.com> References: <1292490303858-5841309.post@n2.nabble.com> Message-ID: <4D09DFF0.6050504@ctc-g.co.jp> Hello all, Is it possible to draw hatch pattern without symbol (vector) but using small image file which have tranparency like gif etc ? Layer type is polygon. ------------ : type polygon : class name "xxxxx" expression "x" color 255 200 200 style image smallimage.gif # <-- like this.. end end ------------ Thanks, Isao NASUNO From thomas.bonfort at gmail.com Thu Dec 16 01:59:44 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 16 Dec 2010 10:59:44 +0100 Subject: [mapserver-users] draw hatch pattern with image file (ex. gif, etc) In-Reply-To: <4D09DFF0.6050504@ctc-g.co.jp> References: <1292490303858-5841309.post@n2.nabble.com> <4D09DFF0.6050504@ctc-g.co.jp> Message-ID: if your image contains a hatch, yes, it's possible, although you can't change the color. if you want to create a hatch, use: symbol name "hatch" type hatch end layer ... style symbol "hatch" color 0 0 0 angle 45 #hatch orientation width 1 #line width size 10 #spacing between lines end end -- thomas On Thu, Dec 16, 2010 at 10:46, Isao NASUNO wrote: > Hello all, > > Is it possible to draw hatch pattern without symbol (vector) > but using small image file which have tranparency like gif etc ? > Layer type is polygon. > > ------------ > ?: > type polygon > ?: > class > ?name "xxxxx" > ?expression "x" > ?color 255 200 200 > ?style > ? ?image smallimage.gif ? # <-- like this.. > ?end > end > ------------ > > Thanks, > > Isao NASUNO > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Thu Dec 16 06:57:22 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 16 Dec 2010 09:57:22 -0500 Subject: [mapserver-users] OGR data layer type - points and lines In-Reply-To: References: Message-ID: <4D0A28D2.8020308@swoodbridge.com> I do not believe that this is possible. If you want to draw lines you have to create a data source the returns lines not points. The problem is that mapserver draws features and each point is a feature. It does not have a mechanism that can read a data source and aggregate the point features into a single line feature. I have seen posts on the PostGIS list for SQL that can do this. You might ask on the GDAL list if there is a way to do this. Or if you can use PostGIS, then you can find the SQL in the archives or ask again. -Steve W On 12/16/2010 1:00 AM, Ian Walberg wrote: > Hello list, > > Using an OGR connection to an sqlite data file we can get point and > labels to draw successfully. > > However when we try and draw a line using the point data we do not get > anything drawn. > > Layer details below. > > Thanks > > Ian > > LAYER > > NAME ogr_points > > STATUS DEFAULT > > TYPE point > > CONNECTIONTYPE OGR > > CONNECTION "points.sqlite" > > DATA "DataPoints" > > CLASS > > NAME "From OGR" > > COLOR 255 0 0 > > STYLE > > SYMBOL 'City' > > SIZE 5 > > COLOR 0 255 255 > > END > > LABEL > > COLOR 255 255 255 > > OUTLINECOLOR 0 0 0 > > TYPE truetype > > FONT Unicode > > SIZE 16 > > ANTIALIAS TRUE > > POSITION AUTO > > END # end of label > > END > > END > > LAYER > > NAME ogr_line > > STATUS OFF > > TYPE line > > CONNECTIONTYPE OGR > > CONNECTION "points.sqlite" > > DATA "DataPoints" > > CLASS > > STYLE > > COLOR 255 22 22 > > WIDTH 2 > > END > > END > > END > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ian.walberg at airborne.aero Thu Dec 16 07:51:47 2010 From: ian.walberg at airborne.aero (Ian Walberg) Date: Thu, 16 Dec 2010 10:51:47 -0500 Subject: [mapserver-users] OGR data layer type - points and lines In-Reply-To: <4D0A28D2.8020308@swoodbridge.com> References: <4D0A28D2.8020308@swoodbridge.com> Message-ID: Ah, ok let us look at that. I do believe the data source we have has data in the format POINT (-118.550003051999994 34.016666412399999). What is the format for line data? 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: Thursday, December 16, 2010 6:57 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] OGR data layer type - points and lines I do not believe that this is possible. If you want to draw lines you have to create a data source the returns lines not points. The problem is that mapserver draws features and each point is a feature. It does not have a mechanism that can read a data source and aggregate the point features into a single line feature. I have seen posts on the PostGIS list for SQL that can do this. You might ask on the GDAL list if there is a way to do this. Or if you can use PostGIS, then you can find the SQL in the archives or ask again. -Steve W On 12/16/2010 1:00 AM, Ian Walberg wrote: > Hello list, > > Using an OGR connection to an sqlite data file we can get point and > labels to draw successfully. > > However when we try and draw a line using the point data we do not get > anything drawn. > > Layer details below. > > Thanks > > Ian > > LAYER > > NAME ogr_points > > STATUS DEFAULT > > TYPE point > > CONNECTIONTYPE OGR > > CONNECTION "points.sqlite" > > DATA "DataPoints" > > CLASS > > NAME "From OGR" > > COLOR 255 0 0 > > STYLE > > SYMBOL 'City' > > SIZE 5 > > COLOR 0 255 255 > > END > > LABEL > > COLOR 255 255 255 > > OUTLINECOLOR 0 0 0 > > TYPE truetype > > FONT Unicode > > SIZE 16 > > ANTIALIAS TRUE > > POSITION AUTO > > END # end of label > > END > > END > > LAYER > > NAME ogr_line > > STATUS OFF > > TYPE line > > CONNECTIONTYPE OGR > > CONNECTION "points.sqlite" > > DATA "DataPoints" > > CLASS > > STYLE > > COLOR 255 22 22 > > WIDTH 2 > > END > > END > > END > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From julien.beylat at caramail.com Thu Dec 16 07:57:46 2010 From: julien.beylat at caramail.com (Lordnecron) Date: Thu, 16 Dec 2010 07:57:46 -0800 (PST) Subject: [mapserver-users] [MAPFILE] How to display Logos above Labels ? Message-ID: <1292515066223-5842449.post@n2.nabble.com> Hi, I'm currently writing a mapfile. I'm trying to display my point layer with the following CLASS : LAYER NAME "LAYER_DN" DATA "D:\Data\DN" TYPE POINT STATUS ON CLASS SYMBOL 'D:\temp\Telecom_1_20px.png' SIZE 15 END END This LAYER is placed ABOVE a "Road Layer" -> GOOD This LAYER is displayed ABOVE the "Road Layer" BUT UNDER the "Road Labels". -> NOT GOOD Is there a way to display the POINT above the labels ? If not, is there a way to manage the conflict between the Road Labels & my point symbol ? Thanks a lot for your help, Best regards, Julien -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MAPFILE-How-to-display-Logos-above-Labels-tp5842449p5842449.html Sent from the Mapserver - User mailing list archive at Nabble.com. From micklesh at gmail.com Thu Dec 16 08:05:10 2010 From: micklesh at gmail.com (Michael Shishcu) Date: Thu, 16 Dec 2010 18:05:10 +0200 Subject: [mapserver-users] [MAPFILE] How to display Logos above Labels ? In-Reply-To: <1292515066223-5842449.post@n2.nabble.com> References: <1292515066223-5842449.post@n2.nabble.com> Message-ID: maybe POSTLABELCACHE ? On 16 December 2010 17:57, Lordnecron wrote: > > Hi, > > I'm currently writing a mapfile. > I'm trying to display my point layer with the following CLASS : > > LAYER > NAME "LAYER_DN" > DATA "D:\Data\DN" > TYPE POINT > STATUS ON > CLASS > SYMBOL 'D:\temp\Telecom_1_20px.png' > SIZE 15 > END > END > > This LAYER is placed ABOVE a "Road Layer" -> GOOD > This LAYER is displayed ABOVE the "Road Layer" BUT UNDER the "Road Labels". > -> NOT GOOD > > Is there a way to display the POINT above the labels ? > If not, is there a way to manage the conflict between the Road Labels & my > point symbol ? > > Thanks a lot for your help, > > Best regards, > > Julien > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/MAPFILE-How-to-display-Logos-above-Labels-tp5842449p5842449.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 woodbri at swoodbridge.com Thu Dec 16 08:43:47 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 16 Dec 2010 11:43:47 -0500 Subject: [mapserver-users] OGR data layer type - points and lines In-Reply-To: References: <4D0A28D2.8020308@swoodbridge.com> Message-ID: <4D0A41C3.4050106@swoodbridge.com> On 12/16/2010 10:51 AM, Ian Walberg wrote: > Ah, ok let us look at that. > > I do believe the data source we have has data in the format POINT > (-118.550003051999994 34.016666412399999). > > What is the format for line data? I'm not sure, I have not used the OGR connection. Assuming it is returning WKT where points are: POINT(-118.550003051999994 34.016666412399999) then lines would be: LINESTRING(-118.550003051999994 34.016666412399999,-118.560003051999994 34.016666412399999,...) -Steve > 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: Thursday, December 16, 2010 6:57 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] OGR data layer type - points and lines > > I do not believe that this is possible. > If you want to draw lines you have to create a data source the returns > lines not points. > > The problem is that mapserver draws features and each point is a > feature. It does not have a mechanism that can read a data source and > aggregate the point features into a single line feature. > > I have seen posts on the PostGIS list for SQL that can do this. You > might ask on the GDAL list if there is a way to do this. Or if you can > use PostGIS, then you can find the SQL in the archives or ask again. > > -Steve W > > On 12/16/2010 1:00 AM, Ian Walberg wrote: >> Hello list, >> >> Using an OGR connection to an sqlite data file we can get point and >> labels to draw successfully. >> >> However when we try and draw a line using the point data we do not get >> anything drawn. >> >> Layer details below. >> >> Thanks >> >> Ian >> >> LAYER >> >> NAME ogr_points >> >> STATUS DEFAULT >> >> TYPE point >> >> CONNECTIONTYPE OGR >> >> CONNECTION "points.sqlite" >> >> DATA "DataPoints" >> >> CLASS >> >> NAME "From OGR" >> >> COLOR 255 0 0 >> >> STYLE >> >> SYMBOL 'City' >> >> SIZE 5 >> >> COLOR 0 255 255 >> >> END >> >> LABEL >> >> COLOR 255 255 255 >> >> OUTLINECOLOR 0 0 0 >> >> TYPE truetype >> >> FONT Unicode >> >> SIZE 16 >> >> ANTIALIAS TRUE >> >> POSITION AUTO >> >> END # end of label >> >> END >> >> END >> >> LAYER >> >> NAME ogr_line >> >> STATUS OFF >> >> TYPE line >> >> CONNECTIONTYPE OGR >> >> CONNECTION "points.sqlite" >> >> DATA "DataPoints" >> >> CLASS >> >> STYLE >> >> COLOR 255 22 22 >> >> WIDTH 2 >> >> END >> >> END >> >> END >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From boolean10001 at yahoo.com Thu Dec 16 09:45:54 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Thu, 16 Dec 2010 09:45:54 -0800 (PST) Subject: [mapserver-users] WMS image doesn't shows at major scales In-Reply-To: References: Message-ID: <444321.76207.qm@web38208.mail.mud.yahoo.com> After several tests, spliting in 4 file the original ECW file and using gdaltindex, solved the problem. The original ECW sizes 1.99 GB (2147420380 bytes) so I guess it was a memory matter. Thanks to all Cheers from Guadalajara, M?xico IC Carlos Ruiz ________________________________ From: "Smith, Michael D ERDC-CRREL-NH" To: Carlos Ruiz ; mapserver-users Sent: Mon, December 6, 2010 2:45:18 PM Subject: Re: [mapserver-users] WMS image doesn't shows at major scales Re: [mapserver-users] WMS image doesn't shows at major scales It appears that it is reading the data. Could be be that the color values are not between 0 and 255? Perhaps you need to add a PROCESSING section? Does this display properly is another viewer? Also, you should reply back to the list as well. There are many people that may be able to help. M -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers Hanover, NH On 12/6/10 3:29 PM, "Carlos Ruiz" wrote: Michael, > >Thanks for the reply. I've set the DEBUG 5 config key at the LAYER section, I've >reproduced > >the steps to get nothing and this is the log's contents: > > >mapserv request processing time (msLoadMap not incl.): 0.084s >msFreeMap(): freeing map at 0xa029150. >freeLayer(): freeing layer at 0xa030a28. >mapserv request processing time (msLoadMap not incl.): 0.083s >msFreeMap(): freeing map at 0x9dd6150. >freeLayer(): freeing layer at 0x9ddda28. >msDrawMap(): kicking into non-square pixel preserving mode. >msDrawRasterLayerLow(imagen): entering. >msResampleGDALToMap in effect: cellsize = 298.004345 >msDrawGDAL(imagen): using RAW_WINDOW=0 0 192034 184370, dst=0,0,1611,1546 >msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0 >msDrawMap(): Layer 0 (imagen), 0.897s >msDrawMap(): Drawing Label Cache, 0.000s >msDrawMap() total time: 0.898s >msSaveImage() total time: 3.291s >mapserv request processing time (msLoadMap not incl.): 4.214s >msFreeMap(): freeing map at 0x92376f0. >freeLayer(): freeing layer at 0x923efc8. >msDrawMap(): kicking into non-square pixel preserving mode. >msDrawRasterLayerLow(imagen): entering. >msResampleGDALToMap in effect: cellsize = 22.479058 >msDrawGDAL(imagen): using RAW_WINDOW=70800 88927 17174 14962, dst=0,0,1910,1664 >msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0 >msDrawMap(): Layer 0 (imagen), 0.525s >msDrawMap(): Drawing Label Cache, 0.000s >msDrawMap() total time: 0.525s >msSaveImage() total time: 1.415s >mapserv request processing time (msLoadMap not incl.): 1.967s >msFreeMap(): freeing map at 0x8bc96f0. >freeLayer(): freeing layer at 0x8bd0fc8. >msDrawMap(): kicking into non-square pixel preserving mode. >msDrawRasterLayerLow(imagen): entering. >msResampleGDALToMap in effect: cellsize = 22.479058 >msDrawGDAL(imagen): using RAW_WINDOW=70800 88927 17174 14962, dst=0,0,1910,1664 >msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0 >msDrawMap(): Layer 0 (imagen), 0.524s >msDrawMap(): Drawing Label Cache, 0.000s >msDrawMap() total time: 0.524s >msSaveImage() total time: 1.528s >mapserv request processing time (msLoadMap not incl.): 2.078s >msFreeMap(): freeing map at 0x99ca6f0. >freeLayer(): freeing layer at 0x99d1fc8. > > >I didn't noticed about the EPSG matters, thanks, I just change it using >init=epsg:32613. > >IC Carlos Ruiz > > ________________________________ From:"Smith, Michael D ERDC-CRREL-NH" >To: Carlos Ruiz ; mapserver-users > >Sent: Mon, December 6, 2010 1:23:35 PM >Subject: Re: [mapserver-users] WMS image doesn't shows at major scales > >Re: [mapserver-users] WMS image doesn't shows at major scales Carlos, > >Can you set DEBUG 5 at both the LAYER and MAP level and see what shows up in the >error log? > >Also I note that you are specifying the projection at the WMS level in EPSG >terms but not at the MAP and LAYER levels. You should use the EPSG code at the >MAP and LAYER projection blocks as MapServer does not know that your projection >text and the EPSG codes are equivalent so you will be undergoing reprojection on >each call. > >Mike > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Dec 16 09:59:03 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 16 Dec 2010 11:59:03 -0600 Subject: [mapserver-users] [MAPFILE] How to display Logos above Labels ? In-Reply-To: References: <1292515066223-5842449.post@n2.nabble.com> Message-ID: You probably want to look at annotation layers. Those layers treat icons/text as labels and as a result they go through the same collision avoidance as any label. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Michael Shishcu Sent: Thursday, December 16, 2010 10:05 AM To: Lordnecron Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] [MAPFILE] How to display Logos above Labels ? maybe POSTLABELCACHE ? On 16 December 2010 17:57, Lordnecron > wrote: Hi, I'm currently writing a mapfile. I'm trying to display my point layer with the following CLASS : LAYER NAME "LAYER_DN" DATA "D:\Data\DN" TYPE POINT STATUS ON CLASS SYMBOL 'D:\temp\Telecom_1_20px.png' SIZE 15 END END This LAYER is placed ABOVE a "Road Layer" -> GOOD This LAYER is displayed ABOVE the "Road Layer" BUT UNDER the "Road Labels". -> NOT GOOD Is there a way to display the POINT above the labels ? If not, is there a way to manage the conflict between the Road Labels & my point symbol ? Thanks a lot for your help, Best regards, Julien -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MAPFILE-How-to-display-Logos-above-Labels-tp5842449p5842449.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 David.Hildebrand at afsc.ca Thu Dec 16 12:41:45 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Thu, 16 Dec 2010 13:41:45 -0700 Subject: [mapserver-users] GetFeatureInfo References: <9188AB5935664040805E01E348A2B81D1BF69062@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF69063@lacex1.afsc.ads> I have several WMS layers. One is a polygon layer and the other two are line and point layer. I have HTML templates for each layer which are very similar. All the layers are being drawn but when I run a REQUEST=GetFeatureInfo on a location which has features from all three layers I only get a return from the polygon layer. I have the following debug statements in my mapfile. CONFIG "MS_ERRORFILE" "stdout" DEBUG 5 CONFIG "CPL_DEBUG" "ON" CONFIG "PROJ_DEBUG" "ON" CONFIG "ON_MISSING_DATA" "WARN" I get the following output after the polygon information output. [Thu Dec 16 13:34:17 2010].658000 mapserv request processing time (msLoadMap not incl.): 3.766s [Thu Dec 16 13:34:17 2010].658000 msFreeMap(): freeing map at 015266A8. There are no errors showing up in the apache logs. Is it possible that the GetFeatureInfo request in MapServer is only supported for polygon layers? =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Dec 16 12:56:51 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 16 Dec 2010 16:56:51 -0400 Subject: [mapserver-users] GetFeatureInfo In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF69063@lacex1.afsc.ads> References: <9188AB5935664040805E01E348A2B81D1BF69062@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69063@lacex1.afsc.ads> Message-ID: <4D0A7D13.4050300@gatewaygeomatics.com> On 10-12-16 4:41 PM, David Hildebrand wrote: > I have several WMS layers. One is a polygon layer and the other two are > line and point layer. I have HTML templates for each layer which are > very similar. All the layers are being drawn but when I run a > REQUEST=GetFeatureInfo on a location which has features from all three > layers I only get a return from the polygon layer. I have the following > debug statements in my mapfile. > Hi, Just a quick note, that the WMS Server doc gives a working example of a GetFeatureInfo request on a point layer: http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:4326&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/plain&X=229&Y=280 I would make sure your layers have a template set, as well as modify the tolerance parameter possibly. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From ivan.mincik at gmail.com Thu Dec 16 13:01:58 2010 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Thu, 16 Dec 2010 22:01:58 +0100 Subject: [mapserver-users] PNG Optimization In-Reply-To: References: Message-ID: 2010/12/10 C?dric MOULLET : > Hi, > We are using MapServer to generate tiles and the following ouptut format is > used: > > OUTPUTFORMAT > ?NAME "pnga" > ?MIMETYPE "image/pnga" > ?DRIVER "AGG/PNG" > ?EXTENSION "png" > ?IMAGEMODE "RGBA" > ?TRANSPARENT TRUE > ?FORMATOPTION "INTERLACE=OFF" > END > > We observe that the size of the tiles can be reduced by a at least factor 2 > if we use a tool like optipng. > Is it possible to configure MapServer in order to optimize the file output > (and for example use optipng)? ? Or do you see another way to optimize the > image (I'd like to do that on the MapServer side in order to avoid a > postprocessing) ? > Thanks in advance for any hints. > C?dric Hi Cedric, when You compile Your Mapserver with "?with-experimental-png" option You can have very nice quantized PNG images, which can be much more smaller. We are using this option for all our projects for few years now. Configuration example: IMAGETYPE 'AGG_PNG' OUTPUTFORMAT NAME 'AGG_PNG' DRIVER 'AGG/PNG' MIMETYPE 'image/png' IMAGEMODE RGBA FORMATOPTION 'QUANTIZE_FORCE=ON' FORMATOPTION 'QUANTIZE_DITHER=OFF' FORMATOPTION 'QUANTIZE_COLORS=256' FORMATOPTION 'INTERLACE=OFF' EXTENSION 'png' END More here: http://mapserver.org/mapfile/outputformat.html Ivan From isao.nasuno at ctc-g.co.jp Thu Dec 16 20:24:06 2010 From: isao.nasuno at ctc-g.co.jp (Isao NASUNO) Date: Fri, 17 Dec 2010 13:24:06 +0900 Subject: [mapserver-users] draw hatch pattern with image file (ex. gif, etc) In-Reply-To: References: <1292490303858-5841309.post@n2.nabble.com> <4D09DFF0.6050504@ctc-g.co.jp> Message-ID: <4D0AE5E6.2030606@ctc-g.co.jp> Hi, Thomas, Thank you for your response. But, my question was wrong, I am sorry. What I want to do is filling up polygon with a pattern using image file with transparency attribute. Finally I found how to do it as following. ------------ : type polygon class name "xxxxx" expression "x" color 255 200 200 style symbol "pattern" # end end ------------ SYMBOL NAME "pattern" TYPE pixmap image /home/myhome/pattern.gif transparent 1 # color index END ------------ It's closed, thank you, Isao NASUNO (2010/12/16 18:59), thomas bonfort wrote: > if your image contains a hatch, yes, it's possible, although you can't > change the color. > if you want to create a hatch, use: > > symbol > name "hatch" > type hatch > end > > layer > ... > style > symbol "hatch" > color 0 0 0 > angle 45 #hatch orientation > width 1 #line width > size 10 #spacing between lines > end > end > > -- > thomas > > On Thu, Dec 16, 2010 at 10:46, Isao NASUNO wrote: >> Hello all, >> >> Is it possible to draw hatch pattern without symbol (vector) >> but using small image file which have tranparency like gif etc ? >> Layer type is polygon. >> >> ------------ >> : >> type polygon >> : >> class >> name "xxxxx" >> expression "x" >> color 255 200 200 >> style >> image smallimage.gif #<-- like this.. >> end >> end >> ------------ >> >> Thanks, >> >> Isao NASUNO >> From julien.beylat at caramail.com Fri Dec 17 00:53:14 2010 From: julien.beylat at caramail.com (Lordnecron) Date: Fri, 17 Dec 2010 00:53:14 -0800 (PST) Subject: [mapserver-users] Re: [MAPFILE] How to display Logos above Labels ? In-Reply-To: References: <1292515066223-5842449.post@n2.nabble.com> Message-ID: <1292575994694-5844830.post@n2.nabble.com> Ha ha ! Great ! It works ! "POSTLABELCACHE" true do exactly what I need. Thanks a lot for your support ! Much much appreciated. Mapserver Powaaaa ! :) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MAPFILE-How-to-display-Logos-above-Labels-tp5842449p5844830.html Sent from the Mapserver - User mailing list archive at Nabble.com. From micklesh at gmail.com Fri Dec 17 00:56:28 2010 From: micklesh at gmail.com (Michael Shishcu) Date: Fri, 17 Dec 2010 10:56:28 +0200 Subject: [mapserver-users] Re: [MAPFILE] How to display Logos above Labels ? In-Reply-To: <1292575994694-5844830.post@n2.nabble.com> References: <1292515066223-5842449.post@n2.nabble.com> <1292575994694-5844830.post@n2.nabble.com> Message-ID: Nice, but, also try Steves suggestion ;-) regards, michael On 17 December 2010 10:53, Lordnecron wrote: > > Ha ha ! Great ! It works ! > > "POSTLABELCACHE" true do exactly what I need. > > Thanks a lot for your support ! > Much much appreciated. > > Mapserver Powaaaa ! :) > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/MAPFILE-How-to-display-Logos-above-Labels-tp5842449p5844830.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 maymerich at argongra.es Fri Dec 17 05:20:06 2010 From: maymerich at argongra.es (Manuel Aymerich) Date: Fri, 17 Dec 2010 14:20:06 +0100 Subject: [mapserver-users] Reference map depicted area extent line width In-Reply-To: <20101216203911.D0F43E01F76@lists.osgeo.org> References: <20101216203911.D0F43E01F76@lists.osgeo.org> Message-ID: <002801cb9ded$1fc8bb90$5f5a32b0$@es> Hi, When making region based queries for reference maps, is there a way to change the line width (or style preferences in general) of the area of interest rectangle depicted on the reference map? Thanks in advance. Regards, Manuel Aymerich -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Dec 17 07:52:01 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 17 Dec 2010 11:52:01 -0400 Subject: [mapserver-users] Reference map depicted area extent line width In-Reply-To: <002801cb9ded$1fc8bb90$5f5a32b0$@es> References: <20101216203911.D0F43E01F76@lists.osgeo.org> <002801cb9ded$1fc8bb90$5f5a32b0$@es> Message-ID: <4D0B8721.5020902@gatewaygeomatics.com> On 10-12-17 9:20 AM, Manuel Aymerich wrote: > Hi, > > When making region based queries for reference maps, is there a way to > *change the line width (or style preferences in general) of the area of > interest rectangle depicted on the reference map*? > All of the available parameters for reference maps are documented at: http://www.mapserver.org/mapfile/reference.html Happy holidays :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From David.Hildebrand at afsc.ca Fri Dec 17 08:01:59 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Fri, 17 Dec 2010 09:01:59 -0700 Subject: [mapserver-users] GetFeatureInfo References: <9188AB5935664040805E01E348A2B81D1BF69062@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF69063@lacex1.afsc.ads> <4D0A7D13.4050300@gatewaygeomatics.com> Message-ID: <9188AB5935664040805E01E348A2B81D1BF69067@lacex1.afsc.ads> The tolerance parameter was the trick, Jeff. Thanks. =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Thursday, December 16, 2010 1:57 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GetFeatureInfo On 10-12-16 4:41 PM, David Hildebrand wrote: > I have several WMS layers. One is a polygon layer and the other two are > line and point layer. I have HTML templates for each layer which are > very similar. All the layers are being drawn but when I run a > REQUEST=GetFeatureInfo on a location which has features from all three > layers I only get a return from the polygon layer. I have the following > debug statements in my mapfile. > Hi, Just a quick note, that the WMS Server doc gives a working example of a GetFeatureInfo request on a point layer: http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST= GetFeatureInfo&BBOX=-11.332970,24.121208,47.584718,57.965035&SRS=EPSG:43 26&WIDTH=1001&HEIGHT=575&LAYERS=cities&STYLES=&FORMAT=image/png&TRANSPAR ENT=true&QUERY_LAYERS=cities&INFO_FORMAT=text/plain&X=229&Y=280 I would make sure your layers have a template set, as well as modify the tolerance parameter possibly. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From David.Fawcett at state.mn.us Fri Dec 17 08:22:58 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 17 Dec 2010 10:22:58 -0600 Subject: [mapserver-users] OGR data layer type - points and lines In-Reply-To: <4D0A41C3.4050106@swoodbridge.com> References: <4D0A28D2.8020308@swoodbridge.com> <4D0A41C3.4050106@swoodbridge.com> Message-ID: Ian, I thought that there was a pretty simple answer to this, but it seems as though I have imagined some non-existing functionality. Assuming that you have a Spatialite db containing a point data set, and you have a MapServer layer that draws this, I think that I have a solution for you. (This also assumes that OGR supports reading linestrings from Spatialite). PostGIS has the ST_MakeLine() function that allows you to create linestrings out of point geometries. The current version of Spatialite doesn't have anything like this (although since I have mentioned it on the Spatialite list, it could be there soon...) So, this SQL employs some workarounds, but may work: SELECT LineFromText('LINESTRING(' || group_concat(X(geometry) || ' ' || Y(geometry), ',') || ')') FROM datapoints ORDER BY fix_date; If performance is a problem, I would build a Spatialite line dataset and rebuild it every time your point dataset changes. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Thursday, December 16, 2010 10:44 AM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] OGR data layer type - points and lines On 12/16/2010 10:51 AM, Ian Walberg wrote: > Ah, ok let us look at that. > > I do believe the data source we have has data in the format POINT > (-118.550003051999994 34.016666412399999). > > What is the format for line data? I'm not sure, I have not used the OGR connection. Assuming it is returning WKT where points are: POINT(-118.550003051999994 34.016666412399999) then lines would be: LINESTRING(-118.550003051999994 34.016666412399999,-118.560003051999994 34.016666412399999,...) -Steve > 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: Thursday, December 16, 2010 6:57 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] OGR data layer type - points and lines > > I do not believe that this is possible. > If you want to draw lines you have to create a data source the returns > lines not points. > > The problem is that mapserver draws features and each point is a > feature. It does not have a mechanism that can read a data source and > aggregate the point features into a single line feature. > > I have seen posts on the PostGIS list for SQL that can do this. You > might ask on the GDAL list if there is a way to do this. Or if you can > use PostGIS, then you can find the SQL in the archives or ask again. > > -Steve W > > On 12/16/2010 1:00 AM, Ian Walberg wrote: >> Hello list, >> >> Using an OGR connection to an sqlite data file we can get point and >> labels to draw successfully. >> >> However when we try and draw a line using the point data we do not get >> anything drawn. >> >> Layer details below. >> >> Thanks >> >> Ian >> >> LAYER >> >> NAME ogr_points >> >> STATUS DEFAULT >> >> TYPE point >> >> CONNECTIONTYPE OGR >> >> CONNECTION "points.sqlite" >> >> DATA "DataPoints" >> >> CLASS >> >> NAME "From OGR" >> >> COLOR 255 0 0 >> >> STYLE >> >> SYMBOL 'City' >> >> SIZE 5 >> >> COLOR 0 255 255 >> >> END >> >> LABEL >> >> COLOR 255 255 255 >> >> OUTLINECOLOR 0 0 0 >> >> TYPE truetype >> >> FONT Unicode >> >> SIZE 16 >> >> ANTIALIAS TRUE >> >> POSITION AUTO >> >> END # end of label >> >> END >> >> END >> >> LAYER >> >> NAME ogr_line >> >> STATUS OFF >> >> TYPE line >> >> CONNECTIONTYPE OGR >> >> CONNECTION "points.sqlite" >> >> DATA "DataPoints" >> >> CLASS >> >> STYLE >> >> COLOR 255 22 22 >> >> WIDTH 2 >> >> END >> >> END >> >> END >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From David.Fawcett at state.mn.us Fri Dec 17 09:24:58 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 17 Dec 2010 11:24:58 -0600 Subject: [mapserver-users] OGR data layer type - points and lines In-Reply-To: References: <4D0A28D2.8020308@swoodbridge.com> <4D0A41C3.4050106@swoodbridge.com> Message-ID: I guess I spoke a little too soon... When I attempted to test this data definition, I got a mapserv.exe crash. I am using a recent version of MSW4. Also, in looking a little bit at the OGR driver page for sqlite: http://www.gdal.org/ogr/drv_sqlite.html, I am guessing that the driver can't use spatialite's native binary geometry storage format when it is used to build a geom on the fly. Based on that, I think that creating a wkt geom may be the way to go. Something like this (which still crashes mapserv.exe). DATA "select 'LINESTRING(' || group_concat(X(geometry) || ' ' || Y(geometry), ',') || ')' AS wkt_geometry from turtle_points" This sample is also very simple in that the line vertices aren't being ordered and the assumption is that you want one line from all of the points in your dataset. David. From woodbri at swoodbridge.com Fri Dec 17 09:58:13 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 17 Dec 2010 12:58:13 -0500 Subject: [mapserver-users] OGR data layer type - points and lines In-Reply-To: References: <4D0A28D2.8020308@swoodbridge.com> <4D0A41C3.4050106@swoodbridge.com> Message-ID: <4D0BA4B5.2060008@swoodbridge.com> On 12/17/2010 12:24 PM, Fawcett, David (MPCA) wrote: > I guess I spoke a little too soon... > > When I attempted to test this data definition, I got a mapserv.exe > crash. I am using a recent version of MSW4. > > Also, in looking a little bit at the OGR driver page for sqlite: > http://www.gdal.org/ogr/drv_sqlite.html, I am guessing that the > driver can't use spatialite's native binary geometry storage format > when it is used to build a geom on the fly. Based on that, I think > that creating a wkt geom may be the way to go. Something like this > (which still crashes mapserv.exe). > > DATA "select 'LINESTRING(' || group_concat(X(geometry) || ' ' || > Y(geometry), ',') || ')' AS wkt_geometry from turtle_points" > > This sample is also very simple in that the line vertices aren't > being ordered and the assumption is that you want one line from all > of the points in your dataset. David, Are you sure that mapserver wants WKT and not WKB? Have you tried: DATA "select geomfromtext('LINESTRING(' || group_concat(X(geometry) || ' ' || Y(geometry), ',') || ')') AS wkb_geometry from turtle_points" I'm not sure what the real function name for geomfromtext(), but most connections assume a WKB. OGR might be different. Still mapserver should not crash, so please write that up as a bug if you haven't already. Thanks, -Steve W From David.Fawcett at state.mn.us Fri Dec 17 13:10:12 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 17 Dec 2010 15:10:12 -0600 Subject: [mapserver-users] OGR data layer type - points and lines In-Reply-To: <4D0BA4B5.2060008@swoodbridge.com> References: <4D0A28D2.8020308@swoodbridge.com> <4D0A41C3.4050106@swoodbridge.com> <4D0BA4B5.2060008@swoodbridge.com> Message-ID: Steve, I need to do some more testing before I can report a bug. I have both OSGEO4W and MS4W installed on this machine and I was actually using the MapServer (5.4) from MS4W. I want to get a clean install and test before reporting this as a bug. I have a Spatialite point layer (turtle_points) that that draws using an OGR connection. In an attempt to simplify the problem of drawing a line layer that is generated on the fly, I tried to flop my point data to WKB and draw that. When I use this SQL for my data statement, I get a MapServer crash too. select AsBinary(geometry) from turtle_points I have playing with Spatialite for some time now, but hadn't yet combined my interests in MapServer and Spatialite. I will continue to play with this over time when I can. If anyone else has been experimenting with Spatialite dbs as data sources for MapServer, I would love to hear about it. David. From acowie at gmail.com Fri Dec 17 15:50:25 2010 From: acowie at gmail.com (Andrew Cowie) Date: Sat, 18 Dec 2010 12:50:25 +1300 Subject: [mapserver-users] OUTPUTFORMAT PDF rendering issue Message-ID: Hello Folks, I was wondering whether someone may be able to help me. I'm currently trying to set up a WMS to create a topographic base map of New Zealand using Mapserver. So far, things are going ok, but have run into an issue when trying to get things into a format for high quality hardcopy printing (vector PDF). The issue arises with 'spikey' rendering of polygons when using Mapserver to output to PDF. When outputting as an image (PNG), the maps are drawn correctly, but when choosing PDF, the output looks sort of generalised and inaccurate. The data I'm testing with is a polygon version of the coastline of NZ, at a 1:50000 scale - stored in a PostGIS database. I have played around with the mapfile settings of RESOLUTION in combination with SIZE - when using the default RESOLUTION of 72, the output is spikey, as described, but as I increase this number - the output gets progressively better. When I increase this to a very large number (16000) (with a SIZE of 9600 9600) - the output I get looks to be closer to the original dataset, devoid of spikes. I may be missing something obvious, so apologies if I am, but is this the correct way of getting a high quality output to PDF? I have tried this with the latest version of Mapserver - 5.6.5 and also with the latest SVN version built with support for using the CAIRO rendering library. Mapserver is built on Ubuntu 10. Any help would be much appreciated. Many thanks Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.mincik at gmail.com Sun Dec 19 11:26:06 2010 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Sun, 19 Dec 2010 20:26:06 +0100 Subject: [mapserver-users] White lines when reprojecting aerial photo In-Reply-To: References: Message-ID: Hi, we are trying to provide aerial photo images in multiple projections using on-the-fly reprojection in JPEG format. When reprojecting layer from our country's local projection to Google Mercator, thin white lines appearing through the whole image (see http://gista.sk/home/ivo/dl/white_lines.jpeg). We are using 'AGG/JPEG' driver, Mapserver 5.2 with following outputformat configuration: ? ? ? RESOLUTION 72 ? ? ? OUTPUTFORMAT ? ? ? ? ? ? ? ?NAME 'AGG_JPEG' ? ? ? ? ? ? ? ?DRIVER 'AGG/JPEG' ? ? ? ? ? ? ? ?MIMETYPE 'image/jpeg' ? ? ? ? ? ? ? ?IMAGEMODE RGB ? ? ? ? ? ? ? ?FORMATOPTION 'QUALITY=85' ? ? ? ? ? ? ? ?EXTENSION 'jpg' ? ? ? ?END Any idea what I can improve to get these white lines out ? Thanks, Ivan From geosigmat at yahoo.ca Mon Dec 20 06:17:14 2010 From: geosigmat at yahoo.ca (Stephan Legere) Date: Mon, 20 Dec 2010 06:17:14 -0800 (PST) Subject: [mapserver-users] DATA and SUBSET keywords Message-ID: <242420.28211.qm@web58302.mail.re3.yahoo.com> Hi everyone, I?m a newbie using MapServer and, writing my map file, I come to a problem which seems unsolvable to me: I would like to represent only some features from a shapefile, based on a simple SQL statement between the attributes of the respective shapefile. I tried to use the map file exported from Qgis which looks like: ? LAYER NAME 'SCTA_perm_6' TYPE POLYGON DUMP true DATA 'locaux_etj6_poly.shp'|layerid=0|subset="unite" LIKE 'SCTA' AND "dur_occ" LIKE 'permanent'' STATUS OFF TRANSPARENCY 100 ? but it is not working: loadLayer(): Unknown identifier. Parsing error near (|):(line 464) I tried to find some detailed information or examples using DATA and(or) SUBSET keywords but I didn?t found something useful. So, can anyone explain me what is wrong, how to do this or where to find some documentation on this. Thank you in advance. Stephan -------------- next part -------------- An HTML attachment was scrubbed... URL: From dshorthouse at eol.org Mon Dec 20 07:01:50 2010 From: dshorthouse at eol.org (Shorthouse, David) Date: Mon, 20 Dec 2010 10:01:50 -0500 Subject: [mapserver-users] SQL equivalent for MapScript queryByRect Message-ID: Hello folks, First, I'd like to say that I have been enjoying MapServer for many years and really appreciate the work you guys put into it. I recently got back into it in more earnest with a pet project for users to produce print-quality, greyscale point maps...learned some new tricks. Second, I have project that requires me to query either shapefiles or spatially indexed tables and produce some simple web service responses. So, this has to perform very quickly. I am writing to inquire if anyone knows how one would reproduce in spatial SQL the exact equivalent of the PHP MapScript queryByShape? I'm starting to get a mess of SQL with unexpected record sets and am nowhere further ahead. e.g. SELECT column FROM table WHERE (WITHIN(GEOMFROMTEXT('WKT'), the_geom) OR (OVERLAPS(GEOMFROMTEXT('WKT'), the_geom)) etc. Thanks for any insights, David P. Shorthouse From Jukka.Rahkonen at mmmtike.fi Mon Dec 20 07:20:51 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 20 Dec 2010 17:20:51 +0200 Subject: [mapserver-users] SQL equivalent for MapScript queryByRect In-Reply-To: References: Message-ID: Hi, I was thinking that why not to use standard WFS which supports well your example query. However, it can be difficult to optimize WFS for some certaind frequently used queries because WFS must support almost everything you and your users can imagine. I did a quick search and I believe this article is worth reading http://etd.ohiolink.edu/send-pdf.cgi/Chen%20Wei.pdf?osu1251042506 -Jukka Rahkonen- Shorthouse, David > L?hetetty: 20. joulukuuta 2010 17:02 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] SQL equivalent for MapScript queryByRect > > Hello folks, > > First, I'd like to say that I have been enjoying MapServer for many > years and really appreciate the work you guys put into it. I recently > got back into it in more earnest with a pet project for users to > produce print-quality, greyscale point maps...learned some new tricks. > > Second, I have project that requires me to query either shapefiles or > spatially indexed tables and produce some simple web service > responses. So, this has to perform very quickly. I am writing to > inquire if anyone knows how one would reproduce in spatial SQL the > exact equivalent of the PHP MapScript queryByShape? I'm starting to > get a mess of SQL with unexpected record sets and am nowhere further > ahead. > > e.g. SELECT column FROM table WHERE (WITHIN(GEOMFROMTEXT('WKT'), > the_geom) OR (OVERLAPS(GEOMFROMTEXT('WKT'), the_geom)) etc. > > Thanks for any insights, > > David P. Shorthouse > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From David.Fawcett at state.mn.us Mon Dec 20 06:36:01 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Mon, 20 Dec 2010 08:36:01 -0600 Subject: [mapserver-users] DATA and SUBSET keywords In-Reply-To: <242420.28211.qm@web58302.mail.re3.yahoo.com> References: <242420.28211.qm@web58302.mail.re3.yahoo.com> Message-ID: Stephan, This might be some newer syntax that I haven?t seen before, but I would try it a different way: DATA ?'locaux_etj6_poly? FILTER (?[unite]? == ?SCTA? AND ?[dur_occ]? == ?permanent?) Note: This is no longer using LIKE, but because you didn?t have any wildcards in your original expression, I am guessing that you just wanted the exact values. I am not aware of a ?LIKE? comparison in MapServer logical expressions, but you could definitely cook up a regular expression if you needed one. You don?t want to use the ?smart quotes? like my email client inserted. Just use plain double quotes. Case sensitivity may apply to the column names, it will definitely apply to the values. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephan Legere Sent: Monday, December 20, 2010 8:17 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] DATA and SUBSET keywords Hi everyone, I?m a newbie using MapServer and, writing my map file, I come to a problem which seems unsolvable to me: I would like to represent only some features from a shapefile, based on a simple SQL statement between the attributes of the respective shapefile. I tried to use the map file exported from Qgis which looks like: ? LAYER NAME 'SCTA_perm_6' TYPE POLYGON DUMP true DATA 'locaux_etj6_poly.shp'|layerid=0|subset="unite" LIKE 'SCTA' AND "dur_occ" LIKE 'permanent'' STATUS OFF TRANSPARENCY 100 ? but it is not working: loadLayer(): Unknown identifier. Parsing error near (|):(line 464) I tried to find some detailed information or examples using DATA and(or) SUBSET keywords but I didn?t found something useful. So, can anyone explain me what is wrong, how to do this or where to find some documentation on this. Thank you in advance. Stephan -------------- next part -------------- An HTML attachment was scrubbed... URL: From mohammedrashadkm at gmail.com Mon Dec 20 08:29:42 2010 From: mohammedrashadkm at gmail.com (Mohammed Rashad) Date: Mon, 20 Dec 2010 21:59:42 +0530 Subject: [mapserver-users] Mapserver Google Maps Message-ID: Sorry for cross posting. I am stuck for two days... How to render a google map as a WMS layer using Mapserver? -- Rashad -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Mon Dec 20 08:34:36 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Mon, 20 Dec 2010 10:34:36 -0600 Subject: [mapserver-users] Mapserver Google Maps In-Reply-To: References: Message-ID: Rashad, The short answer is, "you can't do it". (That might be the long answer too.) >From a technical standpoint MapServer can't consume tiles directly from Google and from a legal standpoint, when you accept Google's terms of service, you agree to not do something like this. If you want to display your own personal data with Google's data, do it on the client side. Most people do it using OpenLayers. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mohammed Rashad Sent: Monday, December 20, 2010 10:30 AM To: mapserver-users at lists.osgeo.org Cc: mapserver-dev at lists.osgeo.org Subject: [mapserver-users] Mapserver Google Maps Sorry for cross posting. I am stuck for two days... How to render a google map as a WMS layer using Mapserver? -- Rashad -------------- next part -------------- An HTML attachment was scrubbed... URL: From maymerich at argongra.es Mon Dec 20 08:48:03 2010 From: maymerich at argongra.es (manu aymerich) Date: Mon, 20 Dec 2010 08:48:03 -0800 (PST) Subject: [mapserver-users] Re: Reference map depicted area extent line width In-Reply-To: <4D0B8721.5020902@gatewaygeomatics.com> References: <002801cb9ded$1fc8bb90$5f5a32b0$@es> <4D0B8721.5020902@gatewaygeomatics.com> Message-ID: <1292863683329-5850974.post@n2.nabble.com> Thanks Jeff. However as I had already checked, there is no defined parameter to modify the style of the area of interest rectangle depicted on the reference map. Workaround anybody? Regards, Manuel Aymerich -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Reference-map-depicted-area-extent-line-width-tp5846190p5850974.html Sent from the Mapserver - User mailing list archive at Nabble.com. From confirmacao at peticaopublica.com.br Mon Dec 20 03:39:47 2010 From: confirmacao at peticaopublica.com.br (=?utf-8?Q?Peti=C3=A7=C3=A3o P=C3=BAblica?=) Date: 20 Dec 2010 06:39:47 -0500 Subject: [mapserver-users] Duca enviou-lhe o seguinte abaixo-assinado. Message-ID: <6544F6DD-E7B7-43E8-A3E1-DD4F3D4F9688@mail.peticaopublica.com> An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Mon Dec 20 13:17:58 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Mon, 20 Dec 2010 15:17:58 -0600 Subject: [mapserver-users] OGR data layer type - points and lines References: <4D0A28D2.8020308@swoodbridge.com> <4D0A41C3.4050106@swoodbridge.com> Message-ID: It took 4 whole days, but thanks to Sandro, Spatialite now has a MakeLine() function. http://groups.google.com/group/spatialite-users/browse_thread/thread/20f8e907ae9226 The feature is in SVN, I am not sure if it will make it into the pending 2.4.0 release. I am also not sure how the OGR driver works and if it can accept geometries created on-the-fly, or if they need to come from a geometry column. David. -----Original Message----- From: Fawcett, David (MPCA) Sent: Friday, December 17, 2010 10:23 AM To: 'Stephen Woodbridge'; Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] OGR data layer type - points and lines Ian, I thought that there was a pretty simple answer to this, but it seems as though I have imagined some non-existing functionality. Assuming that you have a Spatialite db containing a point data set, and you have a MapServer layer that draws this, I think that I have a solution for you. (This also assumes that OGR supports reading linestrings from Spatialite). PostGIS has the ST_MakeLine() function that allows you to create linestrings out of point geometries. The current version of Spatialite doesn't have anything like this (although since I have mentioned it on the Spatialite list, it could be there soon...) So, this SQL employs some workarounds, but may work: SELECT LineFromText('LINESTRING(' || group_concat(X(geometry) || ' ' || Y(geometry), ',') || ')') FROM datapoints ORDER BY fix_date; If performance is a problem, I would build a Spatialite line dataset and rebuild it every time your point dataset changes. David. From qazi.iqbal at gmail.com Mon Dec 20 14:52:35 2010 From: qazi.iqbal at gmail.com (qazi iqbal) Date: Mon, 20 Dec 2010 17:52:35 -0500 Subject: [mapserver-users] PostGIS installation Message-ID: I am in process of setting up mapserver on virtual server that comes with postgres installed. Almost I have installed everything before going for mapserver installation. Now I need to install PostGIS. I tried to configure it with ./configure --with-postgres=/path but it gives me error that pg_config not found. Can anyone help me Thanks Qazi -------------- next part -------------- An HTML attachment was scrubbed... URL: From toomas.aas at raad.tartu.ee Mon Dec 20 21:33:09 2010 From: toomas.aas at raad.tartu.ee (Toomas Aas) Date: Tue, 21 Dec 2010 07:33:09 +0200 Subject: [mapserver-users] PostGIS installation In-Reply-To: References: Message-ID: <20101221073309.78255lln6ie57jk8@webmail.raad.tartu.ee> T, 21 dets 2010 kirjutas qazi iqbal : > ./configure --with-postgres=/path I think this is wrong. Try --with-pgconfig=/path/to/pg_config -- Toomas Aas From ahmettemiz88 at gmail.com Mon Dec 20 23:35:29 2010 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Tue, 21 Dec 2010 09:35:29 +0200 Subject: [mapserver-users] seamless data Message-ID: hello As far as I know, one of the objectives of mapserver is seamless data transfer. Can anyone can tell me what "seamless" means in terms of WebGIS ? regards -- Ahmet Temiz Jeoloji M?h. Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 From forest21000 at yahoo.cn Tue Dec 21 00:20:56 2010 From: forest21000 at yahoo.cn (Forest) Date: Tue, 21 Dec 2010 16:20:56 +0800 (CST) Subject: [mapserver-users] Label for polylines In-Reply-To: <20101220170014.99EC2E01DF0@lists.osgeo.org> Message-ID: <485253.87230.qm@web92107.mail.cnh.yahoo.com> Hello everyone: ??? I've researched the source code of mapserver?about the label for polylines.but as I looked into?the source code,I've been confused,anyone can give me some direction about label for polylines??Or tell me process of labeling for polylines? ?? Thank you very much! -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Tue Dec 21 04:49:58 2010 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Tue, 21 Dec 2010 13:49:58 +0100 (CET) Subject: [mapserver-users] crash on SYMBOL Message-ID: <39783.145.50.39.11.1292935798.squirrel@webmail.hostingdiscounter.nl> Hi list, we have some faulty MAP files, which did not crash MS 5.2, however they do seem to crash MS trunk. It results in a segfault (e.g. in a WMS GetCapabilities request) when we use e.g. SYMBOL 604310017 Any idea what has changed in the meantime to cause this to segfault? TIA. Best regards, Bart From ivan.mincik at gmail.com Sun Dec 19 10:36:44 2010 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Sun, 19 Dec 2010 19:36:44 +0100 Subject: [mapserver-users] White lines when reprojecting aerial photo Message-ID: Hi, we are trying to provide aerial photo images in multiple projections using on-the-fly reprojection in JPEG format. When reprojecting layer from our country's local projection to Google Mercator, thin white lines appearing through the whole image (see example image attached). We are using 'AGG/JPEG' driver, Mapserver 5.2 with following outputformat configuration: RESOLUTION 72 OUTPUTFORMAT NAME 'AGG_JPEG' DRIVER 'AGG/JPEG' MIMETYPE 'image/jpeg' IMAGEMODE RGB FORMATOPTION 'QUALITY=85' EXTENSION 'jpg' END Any idea what I can improve to get these white lines out ? Thanks, Ivan -------------- next part -------------- A non-text attachment was scrubbed... Name: tile.jpeg Type: image/jpeg Size: 65164 bytes Desc: not available URL: From matt.mendick at pictometry.com Tue Dec 21 06:48:19 2010 From: matt.mendick at pictometry.com (mattmendick) Date: Tue, 21 Dec 2010 06:48:19 -0800 (PST) Subject: [mapserver-users] long-running postgres queries initiated by mapserver Message-ID: <1292942899856-5855539.post@n2.nabble.com> Hi All- I'm running mapserver 5.6.3 under centos 5.4, using fastcgi. I'm using postgres as the data storage container, and mapserver is primarily serving WFS requests. Sometimes, people do WFS queries that take a very long time (searching for "virginia" on a nation-wide layer) and eventually postgres will return with the result after a long time (hours later), however the client has cancelled the WFS request. Is there any way for mapserver to know that the client has cancelled the http request, and it can therefore stop the DB query to postgres? I tried using persistent and non-persistent connections with this: PROCESSING "CLOSE_CONNECTION=DEFER" but that didn't change the behavior. Thanks a lot! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/long-running-postgres-queries-initiated-by-mapserver-tp5855539p5855539.html Sent from the Mapserver - User mailing list archive at Nabble.com. From boolean10001 at yahoo.com Tue Dec 21 07:23:25 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Tue, 21 Dec 2010 07:23:25 -0800 (PST) Subject: [mapserver-users] long-running postgres queries initiated by mapserver In-Reply-To: <1292942899856-5855539.post@n2.nabble.com> References: <1292942899856-5855539.post@n2.nabble.com> Message-ID: <307509.2769.qm@web38206.mail.mud.yahoo.com> Matt, I suggest to enhance the PostgreSQL performance at first. Each table with geometry must have a GiST spatial index. When you upload a shape file to PostgreSQL, the shp2pgsql creates this index specifying the -I parameter. Have you uploaded your data in this way ? If the geometry have been modified with PostGIS, you must recompute statistics to have the index updated. Check if you have a spatial index in your table. Cheers from M?xico IC Carlos Ruiz ________________________________ From: mattmendick To: mapserver-users at lists.osgeo.org Sent: Tue, December 21, 2010 8:48:19 AM Subject: [mapserver-users] long-running postgres queries initiated by mapserver Hi All- I'm running mapserver 5.6.3 under centos 5.4, using fastcgi. I'm using postgres as the data storage container, and mapserver is primarily serving WFS requests. Sometimes, people do WFS queries that take a very long time (searching for "virginia" on a nation-wide layer) and eventually postgres will return with the result after a long time (hours later), however the client has cancelled the WFS request. Is there any way for mapserver to know that the client has cancelled the http request, and it can therefore stop the DB query to postgres? I tried using persistent and non-persistent connections with this: PROCESSING "CLOSE_CONNECTION=DEFER" but that didn't change the behavior. Thanks a lot! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/long-running-postgres-queries-initiated-by-mapserver-tp5855539p5855539.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 mwkorver at gmail.com Tue Dec 21 08:00:04 2010 From: mwkorver at gmail.com (Mark Korver) Date: Tue, 21 Dec 2010 10:00:04 -0600 Subject: [mapserver-users] White lines when reprojecting aerial photo In-Reply-To: References: Message-ID: Dont know if this relates to your problem, but its easy to check. ?We normally ?use the GD/JPEG driver when doing image data. ?My understanding is that AGG is more useful for outputting vectors to PNG. Also, this will slow it down but in the raster layer PROCESSING "RESAMPLE=BICUBIC" rather than default NEAREST is effective especially for hi-rez data. On Sun, Dec 19, 2010 at 1:26 PM, Ivan Mincik wrote: > Hi, > we are trying to provide aerial photo images in multiple projections > using on-the-fly reprojection in JPEG format. When reprojecting layer > from our country's local projection to Google Mercator, thin white > lines appearing through the whole image (see > http://gista.sk/home/ivo/dl/white_lines.jpeg). > > We are using 'AGG/JPEG' driver, Mapserver 5.2 with following > outputformat configuration: > > ? ? ? RESOLUTION 72 > ? ? ? OUTPUTFORMAT > ? ? ? ? ? ? ? ?NAME 'AGG_JPEG' > ? ? ? ? ? ? ? ?DRIVER 'AGG/JPEG' > ? ? ? ? ? ? ? ?MIMETYPE 'image/jpeg' > ? ? ? ? ? ? ? ?IMAGEMODE RGB > ? ? ? ? ? ? ? ?FORMATOPTION 'QUALITY=85' > ? ? ? ? ? ? ? ?EXTENSION 'jpg' > ? ? ? ?END > > Any idea what I can improve to get these white lines out ? > > Thanks, > Ivan > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From matt.mendick at pictometry.com Tue Dec 21 08:43:46 2010 From: matt.mendick at pictometry.com (Matt Mendick) Date: Tue, 21 Dec 2010 11:43:46 -0500 Subject: [mapserver-users] long-running postgres queries initiated by mapserver In-Reply-To: <307509.2769.qm@web38206.mail.mud.yahoo.com> References: <1292942899856-5855539.post@n2.nabble.com> <307509.2769.qm@web38206.mail.mud.yahoo.com> Message-ID: <225359692369D14887515DB978A6A01E2E9971BCCE@Aurora> Carlos, Thank you for your response, and indeed the tables do have indices. The spatial search is just fine and comes back very quickly, however the text-based searches do not come back quickly (propertyIsLike for example). I suppose I wasn't clear enough in my original question. Mapserver does a case insensitive "like" query on the postgres server and on tables that are very large (millions of rows), this takes too long. We are training the customers to search for things more intelligently, but we cannot stop them entirely. We are looking into a full-text indexing methodology, but in the meantime, we need to solve the problem of the long-running queries. -Matt ________________________________ From: Carlos Ruiz [mailto:boolean10001 at yahoo.com] Sent: Tuesday, December 21, 2010 10:23 AM To: Matt Mendick; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] long-running postgres queries initiated by mapserver Matt, I suggest to enhance the PostgreSQL performance at first. Each table with geometry must have a GiST spatial index. When you upload a shape file to PostgreSQL, the shp2pgsql creates this index specifying the -I parameter. Have you uploaded your data in this way ? If the geometry have been modified with PostGIS, you must recompute statistics to have the index updated. Check if you have a spatial index in your table. Cheers from M?xico IC Carlos Ruiz ________________________________ From: mattmendick To: mapserver-users at lists.osgeo.org Sent: Tue, December 21, 2010 8:48:19 AM Subject: [mapserver-users] long-running postgres queries initiated by mapserver Hi All- I'm running mapserver 5.6.3 under centos 5.4, using fastcgi. I'm using postgres as the data storage container, and mapserver is primarily serving WFS requests. Sometimes, people do WFS queries that take a very long time (searching for "virginia" on a nation-wide layer) and eventually postgres will return with the result after a long time (hours later), however the client has cancelled the WFS request. Is there any way for mapserver to know that the client has cancelled the http request, and it can therefore stop the DB query to postgres? I tried using persistent and non-persistent connections with this: PROCESSING "CLOSE_CONNECTION=DEFER" but that didn't change the behavior. Thanks a lot! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/long-running-postgres-queries-initiated-by-mapserver-tp5855539p5855539.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 NOTICE: This message is covered by the Electronic Communications Privacy Act, Title 18, United States Code, Sections 2510-2521. This e-mail and any attached files are the exclusive property of Pictometry International Corp., are deemed privileged and confidential, and are intended solely for the use of the individual(s) or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or believe that you have received this message in error, please delete this e-mail and any attachments and notify the sender immediately. Any other use, re-creation, dissemination, forwarding or copying of this e-mail is strictly prohibited and may be unlawful. -------------- next part -------------- An HTML attachment was scrubbed... URL: From boolean10001 at yahoo.com Tue Dec 21 10:06:35 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Tue, 21 Dec 2010 10:06:35 -0800 (PST) Subject: [mapserver-users] long-running postgres queries initiated by mapserver In-Reply-To: <225359692369D14887515DB978A6A01E2E9971BCCE@Aurora> References: <1292942899856-5855539.post@n2.nabble.com> <307509.2769.qm@web38206.mail.mud.yahoo.com> <225359692369D14887515DB978A6A01E2E9971BCCE@Aurora> Message-ID: <260551.99872.qm@web38208.mail.mud.yahoo.com> Your welcome, Matt. Now it is clear why the query is slow. You must have indices on the columns that you're searching in (and run VACUUM frecuently to keep them updated). If you're using LIKE operator, then the indices are not useful if the columns are not LOCALEd. Check if you have defined LOCALE to speed up the LIKE matching. Also, if the data doesn't change at all, you can CLUSTER the table to improve the query speed. IC Carlos Ruiz ________________________________ From: Matt Mendick To: Carlos Ruiz ; "mapserver-users at lists.osgeo.org" Sent: Tue, December 21, 2010 10:43:46 AM Subject: RE: [mapserver-users] long-running postgres queries initiated by mapserver Carlos, Thank you for your response, and indeed the tables do have indices. The spatial search is just fine and comes back very quickly, however the text-based searches do not come back quickly (propertyIsLike for example). I suppose I wasn't clear enough in my original question. Mapserver does a case insensitive "like" query on the postgres server and on tables that are very large (millions of rows), this takes too long. We are training the customers to search for things more intelligently, but we cannot stop them entirely. We are looking into a full-text indexing methodology, but in the meantime, we need to solve the problem of the long-running queries. -Matt ________________________________ From: Carlos Ruiz [mailto:boolean10001 at yahoo.com] Sent: Tuesday, December 21, 2010 10:23 AM To: Matt Mendick; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] long-running postgres queries initiated by mapserver Matt, I suggest to enhance the PostgreSQL performance at first. Each table with geometry must have a GiST spatial index. When you upload a shape file to PostgreSQL, the shp2pgsql creates this index specifying the -I parameter. Have you uploaded your data in this way ? If the geometry have been modified with PostGIS, you must recompute statistics to have the index updated. Check if you have a spatial index in your table. Cheers from M?xico IC Carlos Ruiz ________________________________ From: mattmendick To: mapserver-users at lists.osgeo.org Sent: Tue, December 21, 2010 8:48:19 AM Subject: [mapserver-users] long-running postgres queries initiated by mapserver Hi All- I'm running mapserver 5.6.3 under centos 5.4, using fastcgi. I'm using postgres as the data storage container, and mapserver is primarily serving WFS requests. Sometimes, people do WFS queries that take a very long time (searching for "virginia" on a nation-wide layer) and eventually postgres will return with the result after a long time (hours later), however the client has cancelled the WFS request. Is there any way for mapserver to know that the client has cancelled the http request, and it can therefore stop the DB query to postgres? I tried using persistent and non-persistent connections with this: PROCESSING "CLOSE_CONNECTION=DEFER" but that didn't change the behavior. Thanks a lot! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/long-running-postgres-queries-initiated-by-mapserver-tp5855539p5855539.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 NOTICE: This message is covered by the Electronic Communications Privacy Act, Title 18, United States Code, Sections 2510-2521. This e-mail and any attached files are the exclusive property of Pictometry International Corp., are deemed privileged and confidential, and are intended solely for the use of the individual(s) or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or believe that you have received this message in error, please delete this e-mail and any attachments and notify the sender immediately. Any other use, re-creation, dissemination, forwarding or copying of this e-mail is strictly prohibited and may be unlawful. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.mincik at gmail.com Tue Dec 21 10:17:49 2010 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Tue, 21 Dec 2010 19:17:49 +0100 Subject: [mapserver-users] White lines when reprojecting aerial photo In-Reply-To: References: Message-ID: > > Also, this will slow it down but in the raster layer > > PROCESSING "RESAMPLE=BICUBIC" rather than default NEAREST is effective > especially for hi-rez data. Thanks a lot Mark, I totally forgot on resampling methods. I have tried BICUBIC which doesn't work, but BILINEAR is working fine. Ivan From dmorissette at mapgears.com Tue Dec 21 11:25:44 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 21 Dec 2010 14:25:44 -0500 Subject: [mapserver-users] crash on SYMBOL In-Reply-To: <39783.145.50.39.11.1292935798.squirrel@webmail.hostingdiscounter.nl> References: <39783.145.50.39.11.1292935798.squirrel@webmail.hostingdiscounter.nl> Message-ID: <4D10FF38.1070909@mapgears.com> Bart, Is "604310017" a symbol name? If you add quotes around it in the mapfile then the entry should be treated as a symbol name and the seg fault would go away, can you verify that? I suspect the integer value 604310017 (without quotes) is treated as an index and used to access the array of symbols without bounds checking. Please file a ticket and we'll have a look. Daniel Bart van den Eijnden (OSGIS) wrote: > Hi list, > > we have some faulty MAP files, which did not crash MS 5.2, however they do > seem to crash MS trunk. > > It results in a segfault (e.g. in a WMS GetCapabilities request) when we > use e.g. > > SYMBOL 604310017 > > Any idea what has changed in the meantime to cause this to segfault? > > TIA. > > Best regards, > Bart > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From aboudreault at mapgears.com Tue Dec 21 12:24:42 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 21 Dec 2010 15:24:42 -0500 Subject: [mapserver-users] crash on SYMBOL In-Reply-To: <4D10FF38.1070909@mapgears.com> References: <39783.145.50.39.11.1292935798.squirrel@webmail.hostingdiscounter.nl> <4D10FF38.1070909@mapgears.com> Message-ID: <201012211524.42395.aboudreault@mapgears.com> Fixed and committed in r10809. Alan On December 21, 2010 02:25:44 pm Daniel Morissette wrote: > Bart, > > Is "604310017" a symbol name? If you add quotes around it in the mapfile > then the entry should be treated as a symbol name and the seg fault > would go away, can you verify that? > > I suspect the integer value 604310017 (without quotes) is treated as an > index and used to access the array of symbols without bounds checking. > Please file a ticket and we'll have a look. > > Daniel > > Bart van den Eijnden (OSGIS) wrote: > > Hi list, > > > > we have some faulty MAP files, which did not crash MS 5.2, however they > > do seem to crash MS trunk. > > > > It results in a segfault (e.g. in a WMS GetCapabilities request) when we > > use e.g. > > > > SYMBOL 604310017 > > > > Any idea what has changed in the meantime to cause this to segfault? > > > > TIA. > > > > Best regards, > > Bart > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com From Jukka.Rahkonen at mmmtike.fi Wed Dec 22 00:06:34 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 22 Dec 2010 10:06:34 +0200 Subject: [mapserver-users] long-running postgres queries initiated bymapserver In-Reply-To: <225359692369D14887515DB978A6A01E2E9971BCCE@Aurora> References: <1292942899856-5855539.post@n2.nabble.com><307509.2769.qm@web38206.mail.mud.yahoo.com> <225359692369D14887515DB978A6A01E2E9971BCCE@Aurora> Message-ID: Hi, This is a problem with big databases and standard WFS where users have no limits and they can build however complicated queries. Indices are essential but they cannot handle all situations. For example strings from the middle of text fields with propertyIsLike usually leads to full table scan. Finding intersections with a polygon of tens of thousands or vertices is heavy. By using a lots of ANDs and ORs and some imagination and knowledge of WFS and databases a WFS user can rather easily build requests which will jam your database server. A clever user can even guess what database you have behind WFS by experimenting what kind of queries are exceptionally slow. If you are running some critical production system I believe you should consider making a kind of proxy service in front of the real WFS server. The proxy should investigate the GetFeature requests and deny or modify them by adding some additional filter elements if they do not fulfil your rules. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Matt Mendick L?hetetty: 21. joulukuuta 2010 18:44 Vastaanottaja: Carlos Ruiz; mapserver-users at lists.osgeo.org Aihe: RE: [mapserver-users] long-running postgres queries initiated bymapserver Carlos, Thank you for your response, and indeed the tables do have indices. The spatial search is just fine and comes back very quickly, however the text-based searches do not come back quickly (propertyIsLike for example). I suppose I wasn't clear enough in my original question. Mapserver does a case insensitive "like" query on the postgres server and on tables that are very large (millions of rows), this takes too long. We are training the customers to search for things more intelligently, but we cannot stop them entirely. We are looking into a full-text indexing methodology, but in the meantime, we need to solve the problem of the long-running queries. -Matt ________________________________ From: Carlos Ruiz [mailto:boolean10001 at yahoo.com] Sent: Tuesday, December 21, 2010 10:23 AM To: Matt Mendick; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] long-running postgres queries initiated by mapserver Matt, I suggest to enhance the PostgreSQL performance at first. Each table with geometry must have a GiST spatial index. When you upload a shape file to PostgreSQL, the shp2pgsql creates this index specifying the -I parameter. Have you uploaded your data in this way ? If the geometry have been modified with PostGIS, you must recompute statistics to have the index updated. Check if you have a spatial index in your table. Cheers from M?xico IC Carlos Ruiz ________________________________ From: mattmendick To: mapserver-users at lists.osgeo.org Sent: Tue, December 21, 2010 8:48:19 AM Subject: [mapserver-users] long-running postgres queries initiated by mapserver Hi All- I'm running mapserver 5.6.3 under centos 5.4, using fastcgi. I'm using postgres as the data storage container, and mapserver is primarily serving WFS requests. Sometimes, people do WFS queries that take a very long time (searching for "virginia" on a nation-wide layer) and eventually postgres will return with the result after a long time (hours later), however the client has cancelled the WFS request. Is there any way for mapserver to know that the client has cancelled the http request, and it can therefore stop the DB query to postgres? I tried using persistent and non-persistent connections with this: PROCESSING "CLOSE_CONNECTION=DEFER" but that didn't change the behavior. Thanks a lot! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/long-running-postgres-queries-initiated-by-mapserver-tp5855539p5855539.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 NOTICE: This message is covered by the Electronic Communications Privacy Act, Title 18, United States Code, Sections 2510-2521. This e-mail and any attached files are the exclusive property of Pictometry International Corp., are deemed privileged and confidential, and are intended solely for the use of the individual(s) or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or believe that you have received this message in error, please delete this e-mail and any attachments and notify the sender immediately. Any other use, re-creation, dissemination, forwarding or copying of this e-mail is strictly prohibited and may be unlawful. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Wed Dec 22 12:04:27 2010 From: ian.walberg at airborne.aero (Ian Walberg) Date: Wed, 22 Dec 2010 15:04:27 -0500 Subject: [mapserver-users] OGR data layer type - points and lines In-Reply-To: References: <4D0A28D2.8020308@swoodbridge.com> <4D0A41C3.4050106@swoodbridge.com> Message-ID: David, Many thanks, we will try this over the next few days. Regards Ian -----Original Message----- From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Monday, December 20, 2010 1:18 PM To: Fawcett, David (MPCA); Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] OGR data layer type - points and lines It took 4 whole days, but thanks to Sandro, Spatialite now has a MakeLine() function. http://groups.google.com/group/spatialite-users/browse_thread/thread/20f 8e907ae9226 The feature is in SVN, I am not sure if it will make it into the pending 2.4.0 release. I am also not sure how the OGR driver works and if it can accept geometries created on-the-fly, or if they need to come from a geometry column. David. -----Original Message----- From: Fawcett, David (MPCA) Sent: Friday, December 17, 2010 10:23 AM To: 'Stephen Woodbridge'; Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] OGR data layer type - points and lines Ian, I thought that there was a pretty simple answer to this, but it seems as though I have imagined some non-existing functionality. Assuming that you have a Spatialite db containing a point data set, and you have a MapServer layer that draws this, I think that I have a solution for you. (This also assumes that OGR supports reading linestrings from Spatialite). PostGIS has the ST_MakeLine() function that allows you to create linestrings out of point geometries. The current version of Spatialite doesn't have anything like this (although since I have mentioned it on the Spatialite list, it could be there soon...) So, this SQL employs some workarounds, but may work: SELECT LineFromText('LINESTRING(' || group_concat(X(geometry) || ' ' || Y(geometry), ',') || ')') FROM datapoints ORDER BY fix_date; If performance is a problem, I would build a Spatialite line dataset and rebuild it every time your point dataset changes. David. From mitseagrant at gmail.com Wed Dec 22 12:16:37 2010 From: mitseagrant at gmail.com (MIT Sea Grant) Date: Wed, 22 Dec 2010 15:16:37 -0500 Subject: [mapserver-users] make error: /usr/local/lib/libgdal.so: undefined reference to `GEOSFree' Message-ID: Hello, We are getting the following Make error when trying to build on Red Hat Enterprise Linux 5 (x86_64): /usr/local/lib/libgdal.so: undefined reference to `GEOSFree' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 We think we have everything linked correctly, but the problem persists. Any help appreciated. Thanks, Greg From pcifuentes at siigsa.cl Thu Dec 23 05:37:35 2010 From: pcifuentes at siigsa.cl (Patricio Cifuentes Ithal) Date: Thu, 23 Dec 2010 10:37:35 -0300 Subject: [mapserver-users] make error: /usr/local/lib/libgdal.so: undefined reference to `GEOSFree' In-Reply-To: References: Message-ID: <00ea01cba2a6$8f61e720$ae25b560$@cl> Re-compiling gdal... ./configure --libdir=/usr/lib64/ And all the libraries necesarie recompiling Patricio Cifuentes Ithal Ingeniero en Inform?tica Unidad de Inform?tica Fono : 02 - 334 73 69 www.siigsa.cl -----Mensaje original----- De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de MIT Sea Grant Enviado el: mi?rcoles, 22 de diciembre de 2010 17:17 Para: mapserver-users at lists.osgeo.org Asunto: [mapserver-users] make error: /usr/local/lib/libgdal.so: undefined reference to `GEOSFree' Hello, We are getting the following Make error when trying to build on Red Hat Enterprise Linux 5 (x86_64): /usr/local/lib/libgdal.so: undefined reference to `GEOSFree' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 We think we have everything linked correctly, but the problem persists. Any help appreciated. Thanks, Greg _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos peligrosos, y se considera que est? limpio. -- Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos peligrosos, y se considera que est? limpio. From skk at sr.unh.edu Thu Dec 23 10:10:09 2010 From: skk at sr.unh.edu (Steven Knight) Date: Thu, 23 Dec 2010 13:10:09 -0500 Subject: [mapserver-users] gml_exclude_items in mapfile Message-ID: <201012231310.09940.skk@sr.unh.edu> Hi, I'm working on a project which is trying to use gml_exclude_items. The documentation [1] states that "A comma delimited list of items to exclude". Because of the documentation I changed my mapfile to exclude some items: GML_EXCLUDE_ITEMS "gid", "cmpxname", "orgname", "the_geom" But when I access this mapfile get the following error in my MS_ERRORFILE: [Thu Dec 23 13:05:40 2010].166173 loadHashTable(): Unknown identifier. Parsing error near (,):(line 107) Here is the mapserver version information: $ ./mapserv -v MapServer version 5.6.5 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=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE What am i doing wrong? Does mapserver support a comma delimited list of items as its documentation suggestions? Thanks, 1) http://mapserver.org/ogc/wms_server.html#wms-server =================================================== | Steven Knight skk at sr.unh.edu | | UNH Research Computing Center 603-862-3042 | =================================================== From jmckenna at gatewaygeomatics.com Thu Dec 23 10:39:25 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 23 Dec 2010 13:39:25 -0500 Subject: [mapserver-users] gml_exclude_items in mapfile In-Reply-To: <201012231310.09940.skk@sr.unh.edu> References: <201012231310.09940.skk@sr.unh.edu> Message-ID: <4D13975D.7080908@gatewaygeomatics.com> On 10-12-23 1:10 PM, Steven Knight wrote: > I'm working on a project which is trying to use gml_exclude_items. The > documentation [1] states that "A comma delimited list of items to exclude". > Because of the documentation I changed my mapfile to exclude some items: > > GML_EXCLUDE_ITEMS "gid", "cmpxname", "orgname", "the_geom" Hello, Try the following instead: "gml_exclude_items" "gid,cmpxname,orgname,the_geom" Have a safe and wonderful holiday. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From pschweitzer at usgs.gov Thu Dec 23 10:37:42 2010 From: pschweitzer at usgs.gov (Peter N. Schweitzer) Date: Thu, 23 Dec 2010 13:37:42 -0500 Subject: [mapserver-users] gml_exclude_items in mapfile In-Reply-To: <201012231310.09940.skk@sr.unh.edu> References: <201012231310.09940.skk@sr.unh.edu> Message-ID: <4D1396F6.9040801@usgs.gov> On 12/23/2010 01:10 PM, Steven Knight wrote: > I'm working on a project which is trying to use gml_exclude_items. The > documentation [1] states that "A comma delimited list of items to exclude". > Because of the documentation I changed my mapfile to exclude some items: > > GML_EXCLUDE_ITEMS "gid", "cmpxname", "orgname", "the_geom" > > But when I access this mapfile get the following error in my MS_ERRORFILE: > > [Thu Dec 23 13:05:40 2010].166173 loadHashTable(): Unknown identifier. Parsing > error near (,):(line 107) I could be wrong, but you might want this arrangement instead: GML_EXCLUDE_ITEMS "gid,cmpxname,orgname,the_geom" Peter -- Peter N. Schweitzer (MS 954, U.S. Geological Survey, Reston, VA 20192) (703) 648-6533 FAX: (703) 648-6252 email: pschweitzer at usgs.gov From skk at sr.unh.edu Thu Dec 23 11:02:57 2010 From: skk at sr.unh.edu (Steven Knight) Date: Thu, 23 Dec 2010 14:02:57 -0500 Subject: [mapserver-users] gml_exclude_items in mapfile In-Reply-To: <4D13975D.7080908@gatewaygeomatics.com> References: <201012231310.09940.skk@sr.unh.edu> <4D13975D.7080908@gatewaygeomatics.com> Message-ID: <201012231402.57518.skk@sr.unh.edu> On Thursday, December 23, 2010 01:39:25 pm Jeff McKenna wrote: > On 10-12-23 1:10 PM, Steven Knight wrote: > > I'm working on a project which is trying to use gml_exclude_items. The > > documentation [1] states that "A comma delimited list of items to > > exclude". > > > > Because of the documentation I changed my mapfile to exclude some items: > > GML_EXCLUDE_ITEMS "gid", "cmpxname", "orgname", "the_geom" > > Hello, > > Try the following instead: > > "gml_exclude_items" "gid,cmpxname,orgname,the_geom" > > Have a safe and wonderful holiday. > > -jeff Hi, This solved my problem. Thank you for the help. Have a great holiday. Thanks, -- =================================================== | Steven Knight skk at sr.unh.edu | | UNH Research Computing Center 603-862-3042 | =================================================== From Phil.Anzel at ftc.usda.gov Wed Dec 29 11:24:27 2010 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Wed, 29 Dec 2010 13:24:27 -0600 Subject: [mapserver-users] Feature points not drawn by 5.7DEV drawmap.exe Message-ID: <809503517A1B0347AF9A161507E6B29921324A6433@mokansasc7s304.agent.one.usda.gov> Happy New Year, All, Appended below is a short map file containing two layers: points and grid lines. The projection used by the map as well as the two layers is "Web Mercator". When drawn with "drawmap.exe" from MapServer 5.6.3, all points and grid lines are shown. Using "drawmap.exe" from 5.7-development, the points are not shown. The 5.7-development "drawmap.exe", with associated DLLs, was downloaded from http://vbkto.dyndns.org/sdk/ on 12/15/2010. I'm using the "release-1600-gdal-mapserver.zip" file created for VS2010/Win32. The same point omission occurs if I use the "mapObj" from mapscript_csharp.dll, load the map file, and execute a "Draw" to generate an output byte array. Is there an error in this map file? Is the difference an artifact of changes planned for 6.0, and if so, where might I find relevant documentation? Thanks, - Phil Anzel (Web Soil Survey developer for USDA/NRCS) ...start of map file... MAP OUTPUTFORMAT NAME 'pnga' MIMETYPE 'image/pnga' DRIVER 'AGG/PNG' EXTENSION 'png' IMAGEMODE 'RGBA' TRANSPARENT TRUE FORMATOPTION 'INTERLACE=OFF' END STATUS ON SIZE 827 511 EXTENT -7908630.38 5546155.24 -7903127.77 5548526.51 UNITS METERS IMAGECOLOR 255 255 255 PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END LAYER layer name 'Corner_points' PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END # Web Mercator status on type point feature points -7905423.21336607 5547493.76482495 -7905423.21336607 5546270.77237239 -7904200.22091351 5547493.76482495 -7904200.22091351 5546270.77237239 end # end of points end # end of feature class style color 255 0 0 size 7 end # end of style end #end of class end # end of layer layer name 'grid-WM' PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END # Web Mercator status on type line class color 0 0 0 end # of class grid labelformat '%9.0f' minarcs 2 maxarcs 6 end # of grid end # of layer 'grid-WM' END # end of MAP ...end of map file... From szekerest at gmail.com Wed Dec 29 16:28:56 2010 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 30 Dec 2010 01:28:56 +0100 Subject: [mapserver-users] Feature points not drawn by 5.7DEV drawmap.exe In-Reply-To: <809503517A1B0347AF9A161507E6B29921324A6433@mokansasc7s304.agent.one.usda.gov> References: <809503517A1B0347AF9A161507E6B29921324A6433@mokansasc7s304.agent.one.usda.gov> Message-ID: Phil, I suspect there is a problem with the default symbol initialization which doesn't work with the new rendering code. You could work around the problem by specifying a custom symbol as follows: MAP OUTPUTFORMAT NAME 'pnga' MIMETYPE 'image/pnga' DRIVER 'AGG/PNG' EXTENSION 'png' IMAGEMODE 'RGBA' TRANSPARENT TRUE FORMATOPTION 'INTERLACE=OFF' END SYMBOL NAME "default-marker" TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END STATUS ON SIZE 827 511 EXTENT -7908630.38 5546155.24 -7903127.77 5548526.51 UNITS METERS IMAGECOLOR 255 255 255 PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END LAYER layer name 'Corner_points' PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END # Web Mercator status on type point feature points -7905423.21336607 5547493.76482495 -7905423.21336607 5546270.77237239 -7904200.22091351 5547493.76482495 -7904200.22091351 5546270.77237239 end # end of points end # end of feature class style color 255 0 0 size 7 SYMBOL 'default-marker' end # end of style end #end of class end # end of layer layer name 'grid-WM' PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END # Web Mercator status on type line class color 0 0 0 end # of class grid labelformat '%9.0f' minarcs 2 maxarcs 6 end # of grid end # of layer 'grid-WM' END # end of MAP A new ticket would also be sufficient in order to have this symbol initialization problem fixed. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From Phil.Anzel at ftc.usda.gov Thu Dec 30 06:21:08 2010 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Thu, 30 Dec 2010 08:21:08 -0600 Subject: [mapserver-users] Feature points not drawn by 5.7DEV drawmap.exe In-Reply-To: References: <809503517A1B0347AF9A161507E6B29921324A6433@mokansasc7s304.agent.one.usda.gov> Message-ID: <809503517A1B0347AF9A161507E6B29921325E1C21@mokansasc7s304.agent.one.usda.gov> Tamas, thank you; I'll submit a bug ticket. - Phil From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Wednesday, December 29, 2010 5:29 PM To: Anzel, Phil - Fort Collins, CO Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Feature points not drawn by 5.7DEV drawmap.exe Phil, I suspect there is a problem with the default symbol initialization which doesn't work with the new rendering code. You could work around the problem by specifying a custom symbol as follows: MAP OUTPUTFORMAT NAME 'pnga' MIMETYPE 'image/pnga' DRIVER 'AGG/PNG' EXTENSION 'png' IMAGEMODE 'RGBA' TRANSPARENT TRUE FORMATOPTION 'INTERLACE=OFF' END SYMBOL NAME "default-marker" TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END STATUS ON SIZE 827 511 EXTENT -7908630.38 5546155.24 -7903127.77 5548526.51 UNITS METERS IMAGECOLOR 255 255 255 PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END LAYER layer name 'Corner_points' PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END # Web Mercator status on type point feature points -7905423.21336607 5547493.76482495 -7905423.21336607 5546270.77237239 -7904200.22091351 5547493.76482495 -7904200.22091351 5546270.77237239 end # end of points end # end of feature class style color 255 0 0 size 7 SYMBOL 'default-marker' end # end of style end #end of class end # end of layer layer name 'grid-WM' PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END # Web Mercator status on type line class color 0 0 0 end # of class grid labelformat '%9.0f' minarcs 2 maxarcs 6 end # of grid end # of layer 'grid-WM' END # end of MAP A new ticket would also be sufficient in order to have this symbol initialization problem fixed. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: