Re: [mapserver-users] Rasters with transparency and resampling

2013-07-04 Thread Christy Nieman

Bump!

The problem is that I often need to draw raster layers using tile 
indexes, and in 6.2 I get artifacts at each tile boundary.  Rasters that 
have transparency at coast lines for water also have the same problem.


Is there a way to avoid this and still use resampling?

Thanks,
Christy

On 06/26/2013 08:39 AM, Christy Nieman wrote:

Hi all,

I've noticed that if I draw a TIFF that has some transparent pixels 
set either by using OFFSITE or alpha values in the TIFF palette, there 
are artifacts that appear around the transparent areas with MapServer 
6.2, but not with 5.6, when I add the resample processing option to 
the layer.  I assume there is something that has changed in MapServer 
that causes this to happen and I was wondering if someone could 
explain it to me.


Thanks,
Christy


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Rasters with transparency and resampling

2013-06-26 Thread Christy Nieman

Hi all,

I've noticed that if I draw a TIFF that has some transparent pixels set 
either by using OFFSITE or alpha values in the TIFF palette, there are 
artifacts that appear around the transparent areas with MapServer 6.2, 
but not with 5.6, when I add the resample processing option to the 
layer.  I assume there is something that has changed in MapServer that 
causes this to happen and I was wondering if someone could explain it to me.


Thanks,
Christy
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Rasters

2011-06-16 Thread afarrell
Hi,

I've converted some 8 bit rasters to GeoTIFF format and spherical mercator
projection using FME.  
I'm getting large blue edges where the tiles meet:

http://dl.dropbox.com/u/23077047/Misc1use/rasters.jpg
http://dl.dropbox.com/u/23077047/Misc1use/rasters.jpg 

In ArcGIS the tiles appear seamless.

Is this because MapServer do not support the nodata tiff tag, as it is not
officially part of the geotiff standard
(http://www.awaresystems.be/imaging/tiff/tifftags/gdal_nodata.html). I
do not believe there is a problem with the files we are writing, as other
applications (e.g. ArcCatalog) pick up on the nodata value just fine.

Another potential solution is to add an alpha band to the raster instead of
a nodata value. Do you think MapServer will support this?

Would using ecw images resolve the issue?

Here is an excerpt of the MapServer file:

# Web interface definition. Only the template parameter
# is required to display a map. See MapServer documentation
WEB
IMAGEPATH C:/ms4w/tmp/
IMAGEURL  C:/ms4w/tmp/
  # WMS server settings
METADATA
  'wms_title'   'TESTMAPFILE'
  'wms_onlineresource' 
'http://193.120.94.23:8081//cgi-bin/mapserv.exe?map=C:/MS4W/apps/CacheMapConfig/raster.map'
  'wms_srs' 'EPSG:900913'
END
END



LAYER
NAME test
#DATA GEOTIFF_SM\O3036-C.tif
STATUS ON
TYPE RASTER
DEBUG 1
MINSCALE 13500
MAXSCALE 55000
TILEINDEX ireland.shp
TILEITEM LOCATION
END

Many thanks,

Annette

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Rasters-tp6482500p6482500.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] Rasters

2011-06-16 Thread Frank Warmerdam

On 11-06-16 06:37 AM, afarrell wrote:

Hi,

I've converted some 8 bit rasters to GeoTIFF format and spherical mercator
projection using FME.
I'm getting large blue edges where the tiles meet:

http://dl.dropbox.com/u/23077047/Misc1use/rasters.jpg
http://dl.dropbox.com/u/23077047/Misc1use/rasters.jpg

In ArcGIS the tiles appear seamless.

Is this because MapServer do not support the nodata tiff tag, as it is not
officially part of the geotiff standard
(http://www.awaresystems.be/imaging/tiff/tifftags/gdal_nodata.html). I
do not believe there is a problem with the files we are writing, as other
applications (e.g. ArcCatalog) pick up on the nodata value just fine.


Annette,

I would be interested in seeing a gdalinfo report on one of the
GeoTIFF files produced with FME.  The problem isn't that the
tag is non-standard (after all it is a GDAL produced tag and
MapServer uses GDAL as does FME and ArcGIS).  The problem is
just in the MapServer raster layer implementation and whether it
honours the metadata.

An immediate work around is to figure out what that blue pixel
value is and set the OFFSITE keyword in your raster layer to
match it.

For instance if the blue were red=0, green=149, blue=189 you
would add the following in the LAYER:

  OFFSITE 0 149 189

Ideally though, MapServer would pick it up automatically.


Another potential solution is to add an alpha band to the raster instead of
a nodata value. Do you think MapServer will support this?


yes


Would using ecw images resolve the issue?


no, and it is often very difficult to keep track of nodata
areas in lossily compressed formats like ecw, mrsid, jpeg2000
and jpeg.



--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Rasters

2011-06-16 Thread Brent Fraser

Frank,

  Does MapServer now use GDAL by default to read tiffs (instead of its 
own tiff handling), or do you need to specify a CONNECTIONTYPE?  Or 
perhaps create a VRT file referencing the tiff to force the use of GDAL 
to read the tiff?


Best Regards,
Brent Fraser


On 6/16/2011 8:12 AM, Frank Warmerdam wrote:

On 11-06-16 06:37 AM, afarrell wrote:

Hi,

I've converted some 8 bit rasters to GeoTIFF format and spherical 
mercator

projection using FME.
I'm getting large blue edges where the tiles meet:

http://dl.dropbox.com/u/23077047/Misc1use/rasters.jpg
http://dl.dropbox.com/u/23077047/Misc1use/rasters.jpg

In ArcGIS the tiles appear seamless.

Is this because MapServer do not support the nodata tiff tag, as it 
is not

officially part of the geotiff standard
(http://www.awaresystems.be/imaging/tiff/tifftags/gdal_nodata.html). I
do not believe there is a problem with the files we are writing, as 
other

applications (e.g. ArcCatalog) pick up on the nodata value just fine.


Annette,

I would be interested in seeing a gdalinfo report on one of the
GeoTIFF files produced with FME.  The problem isn't that the
tag is non-standard (after all it is a GDAL produced tag and
MapServer uses GDAL as does FME and ArcGIS).  The problem is
just in the MapServer raster layer implementation and whether it
honours the metadata.

An immediate work around is to figure out what that blue pixel
value is and set the OFFSITE keyword in your raster layer to
match it.

For instance if the blue were red=0, green=149, blue=189 you
would add the following in the LAYER:

  OFFSITE 0 149 189

Ideally though, MapServer would pick it up automatically.

Another potential solution is to add an alpha band to the raster 
instead of

a nodata value. Do you think MapServer will support this?


yes


Would using ecw images resolve the issue?


no, and it is often very difficult to keep track of nodata
areas in lossily compressed formats like ecw, mrsid, jpeg2000
and jpeg.





___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Rasters

2011-06-16 Thread Frank Warmerdam

On 11-06-16 10:27 AM, Brent Fraser wrote:

Frank,

Does MapServer now use GDAL by default to read tiffs (instead of its own tiff
handling), or do you need to specify a CONNECTIONTYPE? Or perhaps create a VRT
file referencing the tiff to force the use of GDAL to read the tiff?


Brent,

MapServer now reads all raster layer input using GDAL.  All the legacy
mechanisms were removed in the last few years.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Rasters and WFS

2011-05-20 Thread pcreso

WMS supports a GetFeature capability, to retrieve info from the server about 
the location clicked on the map, queried against a specified layer, which might 
work if you are determined not to have a WMS background  WFS overlay.

Note that if you open the WMS  WFS layers in QGIS,  save the project 
(session), you can just reopen the project to re-make both connections as a 
single operation.

HTH

Brent Wood


--- On Fri, 5/20/11, SixDegrees paulcarli...@comcast.net wrote:

From: SixDegrees paulcarli...@comcast.net
Subject: [mapserver-users] Rasters and WFS
To: mapserver-users@lists.osgeo.org
Date: Friday, May 20, 2011, 7:36 AM

I am very new to GIS software. We are developing an application that will use
both QGis and/or a web browser as the front end. Basically, we have large
image files we will be sending as a background layer, and we want to overlay
them with points having various attributes. The user should be able to click
on each of the points and read off that point's attributes.

This works well if we load our background image through a WMS layer and load
the points via a shapefile as a vector layer in QGis; points are displayed
atop the image and are clickable, bringing up a table of attributes for the
selected point.

In QGis, at least, adding the shapefile to the WMS mapfile does not permit
clicking on points in the UI. It is not possible for the user to obtain
shapefiles locally, so we need a solution that will allow both sets of
information to be sent through a web service.

Will WFS allow raster images to be embedded? Documentation seems to indicate
not, but isn't quite clear.

We can insist that the user open both a WMS and WFS layer, but this gets
messy; we would really prefer a single data stream solution.

A browser-based solution seems feasible with WMS, based on the quick trip
I've taken through MapServer tutorials. Our customers, however, are
comfortable with QGis and strongly prefer that option as an interface.

Any thoughts would be appreciated.


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Rasters-and-WFS-tp6383431p6383431.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


[mapserver-users] Rasters and WFS

2011-05-19 Thread SixDegrees
I am very new to GIS software. We are developing an application that will use
both QGis and/or a web browser as the front end. Basically, we have large
image files we will be sending as a background layer, and we want to overlay
them with points having various attributes. The user should be able to click
on each of the points and read off that point's attributes.

This works well if we load our background image through a WMS layer and load
the points via a shapefile as a vector layer in QGis; points are displayed
atop the image and are clickable, bringing up a table of attributes for the
selected point.

In QGis, at least, adding the shapefile to the WMS mapfile does not permit
clicking on points in the UI. It is not possible for the user to obtain
shapefiles locally, so we need a solution that will allow both sets of
information to be sent through a web service.

Will WFS allow raster images to be embedded? Documentation seems to indicate
not, but isn't quite clear.

We can insist that the user open both a WMS and WFS layer, but this gets
messy; we would really prefer a single data stream solution.

A browser-based solution seems feasible with WMS, based on the quick trip
I've taken through MapServer tutorials. Our customers, however, are
comfortable with QGis and strongly prefer that option as an interface.

Any thoughts would be appreciated.


--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Rasters-and-WFS-tp6383431p6383431.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] Rasters and WFS

2011-05-19 Thread Frank Warmerdam

On 11-05-19 03:36 PM, SixDegrees wrote:

Will WFS allow raster images to be embedded? Documentation seems to indicate
not, but isn't quite clear.


Paul,

MapServer WFS does not serve raster data.


We can insist that the user open both a WMS and WFS layer, but this gets
messy; we would really prefer a single data stream solution.


I think you will need to insist though there may be ways of simplifying
things with a qgis plugin or something.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users