Re: [mapserver-users] mapcache: How can I configure an attributionlayer with mapcache?
Thank you for this hint and the quick answer. I have already tried the watermark but the label appears on every tile. I would like to have the label at a bottom corner only once, no matter of how many tiles my image consists. 2013/2/14 Martin Kofahl martin.kof...@gmail.com Hi Ariane, you may configure to add a watermark (from png file, etc) in the tileset section. See http://mapserver.org/en/mapcache/config.html. !-- watermark optional tag to add a watermark to the tiles *before* storing them to cache the supplied image MUST be exactly the same size as the size of the tiles configured in the grid the supplied image is read when the configuration is loaded. if you make changes to the image, they will NOT be reflected on tiles already stored in the cache, nor on newly stored tiles until the server is restarted-- watermark/path/to/static/watermark.png/watermark Martin 2013/2/14 Ariane Brörmann ariane.broerm...@googlemail.com Is there a possibility to add an attributionlayer (copyright) with mapcache? If yes, how can I configure this? Ariane ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] java - mapscript, using hibernate-jpa2
On Fri, Feb 15, 2013 at 8:50 AM, Ahmet Temiz ahmettemi...@gmail.com wrote: Hello I would like to know your view. In java - mapscript, using hibernate-jpa2 is a good choice ? Depends on what your needs are. In any case I don't see any incompatibility between the two. hth, Umberto If you have any experiences in this respect, could you share your experiences ? regards -- Ahmet Temiz Jeoloji Müh. Afet ve Acil Durum Yönetimi Başkanlığı Planlama ve Zarar Azaltma Dairesi Başkanlığı Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] SLD with colour ramp in WMS GetMap
Hello everyone, I have a raster layer with the following range of values: $ gdalinfo -hist my_data.tiff [...] STATISTICS_MAXIMUM=128.30499267578 STATISTICS_MEAN=6.3870258293789 STATISTICS_MINIMUM=-9.5671482086182 STATISTICS_STDDEV=11.960967394892 This is layer is being published through Mapserver and I get perfectly correct maps through WMS. Now I'd like to style the maps retrieved by mapserver using the SLD parameter of the GetMap request. I'm starting with the basic example in the SLD Cookbook [1]: ?xml version=1.0 encoding=UTF-8? StyledLayerDescriptor version=1.0.0 xmlns=http://www.opengis.net/sld; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd; NamedLayer Namemy_data/Name UserStyle TitleSLD Cook Book: Two color gradient/Title FeatureTypeStyle Rule RasterSymbolizer ColorMap ColorMapEntry color=#008000 quantity=-10 / ColorMapEntry color=#66 quantity=130 / /ColorMap /RasterSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer /StyledLayerDescriptor When I issue a request with this SLD file: http://my.server/cgi-bin/mapserv?map=/var/www/file.mapVERSION=1.1.1REQUEST=GetMapLAYERS=my_dataSRS=EPSG:3857BBOX=497600,6784100,498900,6786500WIDTH=300HEIGHT=600FORMAT=image/gifSLD=http://my.server/SLD/my_data.sld I'm getting back simply a green patch (see the file my_data_SLD.gif). Whereas without the SLD argument the features in the file are quite visible (my_data.gif). http://osgeo-org.1560.n6.nabble.com/file/n5034507/my_data_SLD.gif http://osgeo-org.1560.n6.nabble.com/file/n5034507/my_data.gif So what's wrong in here? The SLD file is exactly the same found in the SLD cookbock, I doubt it has an error. Do I have to configure the layer somehow in the map file in order for Mapserver to style it with the SLD? Thank you. [1] http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/rasters.html#example-raster -- View this message in context: http://osgeo-org.1560.n6.nabble.com/SLD-with-colour-ramp-in-WMS-GetMap-tp5034507.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapcache: How can I configure an attributionlayer with mapcache?
I'm assuming you're using open layers or similar. There isn't one image, that's the point of using tiles, it only looks like one. You could do something with OL to overlay a watermark but it's just an overlay and not part of the underlying tiles. That's would also be independent of mapcache. Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of Ariane Brörmann [ariane.broerm...@googlemail.com] Sent: Friday, February 15, 2013 2:37 AM To: Martin Kofahl Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] mapcache: How can I configure an attributionlayer with mapcache? Thank you for this hint and the quick answer. I have already tried the watermark but the label appears on every tile. I would like to have the label at a bottom corner only once, no matter of how many tiles my image consists. 2013/2/14 Martin Kofahl martin.kof...@gmail.commailto:martin.kof...@gmail.com Hi Ariane, you may configure to add a watermark (from png file, etc) in the tileset section. See http://mapserver.org/en/mapcache/config.html. !-- watermark optional tag to add a watermark to the tiles *before* storing them to cache the supplied image MUST be exactly the same size as the size of the tiles configured in the grid the supplied image is read when the configuration is loaded. if you make changes to the image, they will NOT be reflected on tiles already stored in the cache, nor on newly stored tiles until the server is restarted -- watermark/path/to/static/watermark.png/watermark Martin 2013/2/14 Ariane Brörmann ariane.broerm...@googlemail.commailto:ariane.broerm...@googlemail.com [X] Is there a possibility to add an attributionlayer (copyright) with mapcache? If yes, how can I configure this? Ariane ___ mapserver-users mailing list mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] mapcache: How can I configure an attributionlayer with mapcache?
On 13-02-15 10:01 AM, Lime, Steve D (MNIT) wrote: I'm assuming you're using open layers or similar. There isn't one image, that's the point of using tiles, it only looks like one. You could do something with OL to overlay a watermark but it's just an overlay and not part of the underlying tiles. That's would also be independent of mapcache. I have done what Steve mentioned recently, using the attribution option for each OpenLayers layer, and then controlled the location of the watermark with CSS (.olControlAttribution). Works well! I found how to do it through the OpenLayers mailing list (http://osgeo-org.1560.n6.nabble.com/OpenLayers-Dev-f3888596.html) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Photo Viewer
I got it to work. Thanks for all your help. Thanks, Eric Weisbender GIS Program Lead Western Area Power Administration Corporate Service Office U.S. Dept. of Energy 12155 W. Alameda Parkway Lakewood, CO office: (720) 962-7280 fax: (720) 962-7269 email: weisb...@wapa.govmailto:weisb...@wapa.gov 39°42'25.06N 105° 8'13.61W [cid:image003.jpg@01CE0B62.0D60C7B0] From: Lime, Steve D (MNIT) [mailto:steve.l...@state.mn.us] Sent: February 14, 2013 3:41 PM To: Basques, Bob (CI-StPaul); Weisbender, Eric; mapserver-users@lists.osgeo.org Subject: RE: Photo Viewer Could try ANGLE 90 at the map level? From: Basques, Bob (CI-StPaul) Sent: Thursday, February 14, 2013 4:17 PM To: Lime, Steve D (MNIT); Weisbender, Eric; mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: RE: Photo Viewer Ok, I sort of got something to work . . . http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/image_pixel_coord_public.map http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/image_pixel_coord_public.map?mapext=750+600+1100+925 Danged if I can figure out how to rotate the image (via the world file), nothing is happening with edits to the world file. Still not responding to all the CGI parameters either. MAPFILE: MAP NAME PHOTO SIZE 2048 1536 EXTENT 0 0 2048 1536 UNITS feet LAYER NAME photo DATA up_a_tree.jpg TYPE RASTER TRANSFORM FALSE STATUS DEFAULT UNITS PIXELS END END WORLD FILE: 1. 0. 0. 1. 0.5 0.5 bobb From: Lime, Steve D (MNIT) Sent: Thursday, February 14, 2013 10:53 AM To: Basques, Bob (CI-StPaul); Weisbender, Eric; mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: RE: Photo Viewer I would think it could be done, your extent would be given in pixels. Full extent is given as 0 0 width-1 height-1. Depends if the raster code respects the layer TRANSFORM parameter. Steve From: mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul) Sent: Thursday, February 14, 2013 10:34 AM To: Weisbender, Eric; mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Photo Viewer Eric, Interesting idea. I remember a thread a few years back about something similar being asked. As far as the geo-referencing part, you can simply use the size of the image as your reference coordinate system for each image. Mapserver is more generally suit towards combining different data into a single output, thus the need for a coordinate system to reference more than one layer. So, the real question boils down to a technique for fooling MapServer into some sort of projection some how for each image. Let me think on this a bit. I wonder though about setting up something to register images to a location via a loading form which grabs the image size, etc. Then they are put away with the sudo projection assigned to each image at the uploading point. Bobb From: mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Thursday, February 14, 2013 10:03 AM To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: [mapserver-users] Photo Viewer I would like to use MapServer as just an unreferenced image viewer for jpgs so I can zoom in and out on the image. Everything I read says that images have to be georeferenced. Any idea or even examples would be greatly appreciated. Thanks, Eric Weisbender inline: image003.jpg___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SLD with colour ramp in WMS GetMap
Luis, I suspect the problem is how raster values are scaled. I think the raster SLD is applied essentially as a set of classes on the layer but it is not clear how scaling gets set. What does the layer definition look like? Can you try doing what you want with mapserver classes in the map file? While your SLD looks fine, how these are used by mapserver is fiddly. Best regards, Frank On Feb 15, 2013 2:55 AM, Luís de Sousa luis.a.de.so...@gmail.com wrote: Hello everyone, I have a raster layer with the following range of values: $ gdalinfo -hist my_data.tiff [...] STATISTICS_MAXIMUM=128.30499267578 STATISTICS_MEAN=6.3870258293789 STATISTICS_MINIMUM=-9.5671482086182 STATISTICS_STDDEV=11.960967394892 This is layer is being published through Mapserver and I get perfectly correct maps through WMS. Now I'd like to style the maps retrieved by mapserver using the SLD parameter of the GetMap request. I'm starting with the basic example in the SLD Cookbook [1]: ?xml version=1.0 encoding=UTF-8? StyledLayerDescriptor version=1.0.0 xmlns=http://www.opengis.net/sld; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd; NamedLayer Namemy_data/Name UserStyle TitleSLD Cook Book: Two color gradient/Title FeatureTypeStyle Rule RasterSymbolizer ColorMap ColorMapEntry color=#008000 quantity=-10 / ColorMapEntry color=#66 quantity=130 / /ColorMap /RasterSymbolizer /Rule /FeatureTypeStyle /UserStyle /NamedLayer /StyledLayerDescriptor When I issue a request with this SLD file: http://my.server/cgi-bin/mapserv?map=/var/www/file.mapVERSION=1.1.1REQUEST=GetMapLAYERS=my_dataSRS=EPSG:3857BBOX=497600,6784100,498900,6786500WIDTH=300HEIGHT=600FORMAT=image/gifSLD=http://my.server/SLD/my_data.sld I'm getting back simply a green patch (see the file my_data_SLD.gif). Whereas without the SLD argument the features in the file are quite visible (my_data.gif). http://osgeo-org.1560.n6.nabble.com/file/n5034507/my_data_SLD.gif http://osgeo-org.1560.n6.nabble.com/file/n5034507/my_data.gif So what's wrong in here? The SLD file is exactly the same found in the SLD cookbock, I doubt it has an error. Do I have to configure the layer somehow in the map file in order for Mapserver to style it with the SLD? Thank you. [1] http://docs.geoserver.org/latest/en/user/styling/sld-cookbook/rasters.html#example-raster -- View this message in context: http://osgeo-org.1560.n6.nabble.com/SLD-with-colour-ramp-in-WMS-GetMap-tp5034507.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users