Re: [mapserver-users] multiple transparent colours

2012-05-09 Thread Christoph Schumacher

 hi everybody,


first i have to say thank you for all the answers.

I tried the RGBA way by defining a RGBA Palett file with quadrupels (e.g. 
0,0,0,0) for the RGBA values of my transparent colours.
It´s the first time for me using RGBA so maybe I´m on the wrong way, but how do 
i define the transparency in the Layer section???


best wishes and thank you
christoph

> Hi,
>
> Just came into my mind that I have had problems with OFFSITE and tileindex. It
> makes the desired pixel value transparent with WMS but not with WCS. At least 
> is
> was so in the past. I have not produced WCS lately. The workaround was to 
> make a VRT
> file from with gdalbuildvrt and use that as input for the WCS mapfile. That 
> way
> nodata worked as it should and we got proper images out of WCS even with 
> warped
> source images. I am not sure if I ever made a ticket from that. Perhaps not 
> or then
> just nobody ever reacted.
>
> So I suppose that "OFFSITE AUTO" happens already if you use VRT as input 
> instead of
> tileindex. I have not seen big difference in speed between tileindex and VRT.
> However, I use normally tileindex system because I can open and manage the 
> index
> files with GIS programs.
>
> -Jukka Rahkonen-
>
> Stephen Woodbridge wrote:
>> Lähetetty: 9. toukokuuta 2012 16:45
>> Vastaanottaja: mapserver-users@lists.osgeo.org
>> Aihe: Re: [mapserver-users] multiple transparent colours
>>
>> Frank,
>>
>> Would it be possible to make mapserver pick up the NODATA
>> value from the
>> gdal source file. Maybe using a keyword like "OFFSITE AUTO".
>> This would
>> be especially useful when using a tileindex.
>>
>> Any thoughts on this? Should I create a ticket for something
>> like this?
>>
>> -Steve W
>>
>> On 5/9/2012 9:36 AM, Rahkonen Jukka wrote:
>> > Hi,
>> > Perhaps you cannot literally set a colour as transparent in
>> a tiff but
>> > for sure you can define a nodata value and then
>> applications can make
>> > nodata pixels transparent. That is the most normal way to do it with
>> > Mapserver and OFFSITE. I believe that Mapserver does not
>> even care if
>> > tiff has a nodata tag set but you can give whatever value
>> for offsite in
>> > a mapfile.
>> > I have not played at all with alpha, but perhaps there is
>> some way to
>> > give a list of pixel values which should be transparent and
>> convert them
>> > all to a suitable alpha channel value.
>> > -Jukka Rahkonen-
>> >
>> > Fernando Nortewrote:
>> > Hi Christoph,
>> >
>> > I try to understand, how did you set the specific color to
>> > transparent in a TIFF?
>> > For raster you can set the level of transparency/opacity to the
>> > image not to a color.
>> >
>> > Att,
>> >
>> > *Fernando Norte*
>> >
>> > Desenvolvedor SIGWeb
>> >
>> > tel.(31) 2533.9900
>> >
>> > cel.(31) 9119.8814
>> >
>> > skype: fernandoglobalgeo
>> >
>> >
>> >
>> > Endereço: Alameda do Ingá, 88, 6º andar, Vale do Sereno
>> >
>> > Nova Lima/MG - CEP: 34.000-000
>> >
>> > www.globalgeo.com.br 
>> >
>> > "O presente documento pode conter material confidencial ou seu
>> > sigilo é protegido por lei.
>> > Quaisquer informações nele contida são destinadas exclusivamente
>> > ao(s) seu(s) destinatário(s)
>> > não devendo em nenhuma hipótese ser repassado a terceiros".
>> >
>> >
>> >
>> >
>> > 2012/5/9 Christoph Schumacher
>> > christoph.schumac...@pbs-schumacher.de
>> > mailto:christoph.schumac...@pbs-schumacher.de
>> >
>> > Hello everybody,
>> >
>> > I have a problem setting up my wms.
>> > I have multiple tiff images that have different
>> colours to be
>> > set up as transparaent.
>> >
>> > With the offsite parameter I can only set one
>> colour transparent.
>> >
>> > Now my question is: Is there a way to make various colour
>> > transparent??
>> >
>> >
>> > best wishes and thank you very much
>> >
>> > christoph
>> >
>> >
>> > ___
>> > mapserver-users mailing list
>> > mapserver-users@lists.osgeo.org
>> > mailto: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
>> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>

--
Freundliche Grüße
planungsbüro schumacher

Im Auftrag

gez. Christoph Schumacher

Telefon 02262 7205-13

__

pbs planungsbüro schumacher
Dipl.-Ing. Jürgen Schumacher
Oststraße 8, 51674 Wiehl
Telefon 02262 7205-0, Fax 02262 7205-6
i...@pbs-schumacher.de
http://www.pbs-schumacher.de

_

[mapserver-users] line symbol decoration is flipped, how do I ensure the correct orientation

2012-05-09 Thread Puneet Kishor
I am trying my hand at MapServer symbols/styles. Using the following definition

SYMBOL
NAME "rarrow"
TYPE vector
FILLED false
POINTS
0 0
4 0
2 -1
END
END

SYMBOL
NAME "larrow"
TYPE vector
FILLED false
POINTS
4 0
0 0
2 1
END
END

CLASS
NAME "Strike-slip fault right lateral"
EXPRESSION "30"
STYLE
COLOR 0 0 0
WIDTH 1
END

STYLE
COLOR 0 0 0
SYMBOL "rarrow"
SIZE 4
GAP -60
OFFSET 0 -4
END

STYLE
COLOR 255 0 0
SYMBOL "larrow"
SIZE 4
GAP -60
OFFSET 0 6
END
END

I get the following http://dl.dropbox.com/u/3526821/slip_strike.png


The green box shows the correct symbol. The red box has the symbol flipped. 
Why? How can I correct this?

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


[mapserver-users] mapcache - working with different grids

2012-05-09 Thread Mark Volz
Hello,

I started working with Mapcache.  I added a tileset that is in UTM 15  (26915) 
and it is working fine on the demo page  http://localhost/mapcache/demo/wms.  
However when I add the layer to ArcView, I get a warning about inconsistent 
extents.   I noticed the service is advertising several extents:  EPSG:900913, 
EPSG:103749, EPSG:26915, EPSG:4326, EPSG:3857.  So I made sure ArcGIS was 
requesting the correct coordinate system via layer>change coordinate system.  
Even after switching the coordinate system, I still did not see anything  (even 
when zoomed into the appropriate area)

I also am trying to get another layer cached, which is in county coordinates.  
I did add a grid for the county coordinates.  Unfortunately I cannot get that 
service working in either the demo page or the ArcMap.  I can get the source of 
that service (before it is cached in MapCache) to work in ArcMap.


Questions:

1)  Is this the right mailing list, or does mapcache have a separate list?
2)  How can I limit the grids / spatial references that Mapcache advertises?
3)  What am I missing that Mapcache works fine in the demo pages, but not 
in ArcMap?  - note I set  assemble and 
4)  Is there anything I need to know about custom spatial references?  I am 
guessing that Mapserver itself only needs the grid set.


Thanks for all the help!


Mark Volz
GIS Specialist



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


Re: [mapserver-users] Mapserver MSSQL connect

2012-05-09 Thread Jeff McKenna
On 12-05-09 2:14 PM, j5c077 wrote:
> Hello list,
> I've been trying for a while to connect to my MSSQL spatial db with
> mapserver with no luck. If anyone could provide any insight I would be very
> grateful.
> 
> The mapserver error i'm getting is "Unable to initialize connection to the
> server for MSSQL:server..., [unixODBC][Driver Manager]Data source name not
> found, and no default driver specified"
> 
> MapServer is version 6.0.1 running on CentOS.  my layer in the mapfile is
> currently set like this, though i've tried several variations based on the
> info i've found searching forums in hopes of getting it working:
> 
> LAYER
>   NAME "points"
>   TYPE Point
>   STATUS DEFAULT
>   CONNECTIONTYPE OGR
>   CONNECTION
> 'MSSQL:server=xxx.xxx.xxx.xxx,1433;database=database;uid=username;pwd=password'
>   PROCESSING 'CLOSE_CONNECTION=DEFER'
>   DATA "SP_GEOMETRY from points"
>  CLASS
>NAME "point"
>  STYLE
>  SYMBOL "point"
>  END
>   END
> END

Connections to MSSQL in MapServer are through a compiled plugin, and you
can see examples of this CONNECTIONTYPE here:
http://www.mapserver.org/input/vector/mssql.html

(the MSSQL:server syntax you are using is how I would test the
connection through ogrinfo - more details at
http://www.gdal.org/ogr/drv_mssqlspatial.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


[mapserver-users] Mapserver MSSQL connect

2012-05-09 Thread j5c077
Hello list,
I've been trying for a while to connect to my MSSQL spatial db with
mapserver with no luck. If anyone could provide any insight I would be very
grateful.

The mapserver error i'm getting is "Unable to initialize connection to the
server for MSSQL:server..., [unixODBC][Driver Manager]Data source name not
found, and no default driver specified"

MapServer is version 6.0.1 running on CentOS.  my layer in the mapfile is
currently set like this, though i've tried several variations based on the
info i've found searching forums in hopes of getting it working:

LAYER
NAME "points"
TYPE Point
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION
'MSSQL:server=xxx.xxx.xxx.xxx,1433;database=database;uid=username;pwd=password'
PROCESSING 'CLOSE_CONNECTION=DEFER'
DATA "SP_GEOMETRY from points"
 CLASS
 NAME "point"
   STYLE
   SYMBOL "point"
   END
END
END

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Mapserver-MSSQL-connect-tp4963596.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] Fail to build Mapscript Python with current source

2012-05-09 Thread Peter Hopfgartner

Ok, it worked.

Thanks,

Peter

On 04/27/2012 03:22 PM, Umberto Nicoletti wrote:
I just built it on Ubuntu 10.04 x86, perhaps you should try this build 
process:


./configure [your options] --enable-python-mapscript
make
sudo make install

make/make install will also build and install python mapscript, no 
need to cd, swig, etc.


Umberto

On Fri, Apr 27, 2012 at 3:04 PM, Peter Hopfgartner 
mailto:peter.hopfgart...@r3-gis.com>> 
wrote:


I'm on a CentOS 6.2, x86_64 bit system:

/configure --with-gd --with-zlib --with-tiff --with-agg
--with-experimental-png --with-freetype=/usr/bin/freetype-config
--with-gdal=/usr/bin/gdal-config --with-ogr=/usr/bin/gdal-config
--with-geos=/usr/bin/geos-config --with-cairo=yes --with-proj
--with-wfs --with-wcs --with-sos --with-wmsclient --with-wfsclient
--with-xpm --with-postgis=/usr/bin/pg_config
--with-mygis=/usr/bin/mysql_config
--with-curl-config=/usr/bin/curl-config
--with-xml2-config=/usr/bin/xml2-config
--with-php=/usr/bin/php-config
--with-fribidi-config=/usr/lib64/pkgconfig/fribidi.pc
--with-fastcgi=/usr --without-pdf --without-eppl --with-threads
--enable-debug --disable-runpath

cd mapscript/python
swig -python -shadow -modern -o mapscript_wrap.c ../mapscript.i
cd ../..
make
cd mapscript/python
python setup.py build

The build fails with:

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC
-fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE_FASTCGI=1
-DUSE_CAIRO=1 -DUSE_FRIBIDI=1 -DUSE_FRIBIDI2=1 -DUSE_WMS_LYR=1
-DUSE_WFS_LYR=1 -DUSE_SOS_SVR=1 -DUSE_LIBXML2=1 -DUSE_CURL=1
-DUSE_CURLOPT_PROXYAUTH=1 -DUSE_WCS_SVR=1 -DUSE_WFS_SVR=1
-DUSE_WMS_SVR=1 -DUSE_POSTGIS=1 -DPOSTGIS_HAS_SERVER_VERSION=1
-DUSE_GDAL=1 -DUSE_OGR=1 -DUSE_GEOS=1 -DUSE_THREAD=1 -DUSE_PROJ=1
-DUSE_GD=1 -DUSE_GD_GIF=1 -DUSE_GD_PNG=1 -DUSE_GD_JPEG=1
-DUSE_GD_WBMP=1 -DUSE_GD_FT=1 -DGD_HAS_FTEX_XSHOW=1
-DGD_HAS_GDIMAGEGIFPTR=1 -DGD_HAS_GETBITMAPFONTS=1
-DGD_HAS_GET_TRUE_COLOR_PIXEL=1 -DUSE_ICONV=1 -DUSE_JPEG=1
-DUSE_GIF=1 -DUSE_PNG=1 -DUSE_ZLIB=1 -DUSE_FREETYPE=1
-DHAVE_VSNPRINTF=1 -DNEED_STRLCPY=1 -DNEED_STRLCAT=1
-DNEED_STRRSTR=1 -DDISABLE_CVSID=1 -I../..
-I/usr/include/freetype2 -Irenderers/agg/include
-I/usr/include/gdal -I/usr/include -I/usr/include/fastcgi
-I/usr/include/libxml2 -I/usr/include/fribidi -I/usr/include/cairo
-I/usr/include/pixman-1 -I/usr/include/libpng12
-I/usr/include/python2.6
-I/home/rpmbuild/tmp/mapserver-6.1.20120426 -c
pygdioctx/pygdioctx.c -o
build/temp.linux-x86_64-2.6/pygdioctx/pygdioctx.o
pygdioctx/pygdioctx.c: In function ‘PyFileIfaceObj_IOCtx_GetBuf’:
pygdioctx/pygdioctx.c:84: warning: passing argument 3 of
‘PyString_AsStringAndSize’ from incompatible pointer type
/usr/include/python2.6/stringobject.h:172: note: expected
‘Py_ssize_t *’ but argument is of type ‘int *’
gcc -pthread -shared build/temp.linux-x86_64-2.6/mapscript_wrap.o
build/temp.linux-x86_64-2.6/pygdioctx/pygdioctx.o -L../../
-L/usr/lib64 -L/usr/lib64 -L/usr/lib -L/usr/lib64
-L/home/rpmbuild/tmp/mapserver-6.1.20120426 -lpython2.6
-lmapserver -lfreetype -lgd -ljpeg -lpng -lz -lXpm -lX11 -lproj
-lgif -lgdal -lpq -lcurl -lgeos_c -lpthread -lc -lfcgi -lxml2 -lm
-lfribidi -lstdc++ -lfontconfig -lcairo -lpng12 -lmapserver -o
build/lib.linux-x86_64-2.6/_mapscript.so
/usr/bin/ld: cannot find -lmapserver
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

Anyway, there is a file libmapserver.la 
in the source directory.

What is it, that I'm mising?

Thanks,

Peter

-- 
Peter Hopfgartner

web  : http://www.r3-gis.com

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users





--
Peter Hopfgartner
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
web  : www.r3-gis.com
mail : peter.hopfgart...@r3-gis.com
phone: +39 0473 494949
fax  : +39 0473 069902

ATTENZIONE! Le informazioni contenute nella presente e-mail e nei documenti 
eventualmente allegati sono confidenziali. La loro diffusione, distribuzione 
e/o riproduzione da parte di terzi, senza autorizzazione del mittente è vietata 
e può violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate 
immediatamente informare il mittente del messaggio e distruggere la e-mail.

ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten 
beinhalteten Informationen sind streng vertraulic

Re: [mapserver-users] multiple transparent colours

2012-05-09 Thread Rahkonen Jukka
Hi,

Just came into my mind that I have had problems with OFFSITE and tileindex. It 
makes the desired pixel value transparent with WMS but not with WCS. At least 
is was so in the past. I have not produced WCS lately. The workaround was to 
make a VRT file from with gdalbuildvrt and use that as input for the WCS 
mapfile.  That way nodata worked as it should and we got proper images out of 
WCS even with warped source images. I am not sure if I ever made a ticket from 
that. Perhaps not or then just nobody ever reacted.

So I suppose that "OFFSITE AUTO" happens already if you use VRT as input 
instead of tileindex. I have not seen big difference in speed between tileindex 
and VRT. However, I use normally tileindex system because I can open and manage 
the index files with GIS programs.

-Jukka Rahkonen-

Stephen Woodbridge wrote:
> Lähetetty: 9. toukokuuta 2012 16:45
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: Re: [mapserver-users] multiple transparent colours
> 
> Frank,
> 
> Would it be possible to make mapserver pick up the NODATA 
> value from the 
> gdal source file. Maybe using a keyword like "OFFSITE AUTO". 
> This would 
> be especially useful when using a tileindex.
> 
> Any thoughts on this? Should I create a ticket for something 
> like this?
> 
> -Steve W
> 
> On 5/9/2012 9:36 AM, Rahkonen Jukka wrote:
> > Hi,
> > Perhaps you cannot literally set a colour as transparent in 
> a tiff but
> > for sure you can define a nodata value and then 
> applications can make
> > nodata pixels transparent. That is the most normal way to do it with
> > Mapserver and OFFSITE. I believe that Mapserver does not 
> even care if
> > tiff has a nodata tag set but you can give whatever value 
> for offsite in
> > a mapfile.
> > I have not played at all with alpha, but perhaps there is 
> some way to
> > give a list of pixel values which should be transparent and 
> convert them
> > all to a suitable alpha channel value.
> > -Jukka Rahkonen-
> >
> > Fernando Nortewrote:
> > Hi Christoph,
> >
> > I try to understand, how did you set the specific color to
> > transparent in a TIFF?
> > For raster you can set the level of transparency/opacity to the
> > image not to a color.
> >
> > Att,
> >
> > *Fernando Norte*
> >
> > Desenvolvedor SIGWeb
> >
> > tel.(31) 2533.9900
> >
> > cel.(31) 9119.8814
> >
> > skype: fernandoglobalgeo
> >
> > 
> >
> > Endereço: Alameda do Ingá, 88, 6º andar, Vale do Sereno
> >
> > Nova Lima/MG - CEP: 34.000-000
> >
> > www.globalgeo.com.br 
> >
> > "O presente documento pode conter material confidencial ou seu
> > sigilo é protegido por lei.
> > Quaisquer informações nele contida são destinadas exclusivamente
> > ao(s) seu(s) destinatário(s)
> > não devendo em nenhuma hipótese ser repassado a terceiros".
> >
> >
> >
> >
> > 2012/5/9 Christoph Schumacher
> >  > >
> >
> > Hello everybody,
> >
> > I have a problem setting up my wms.
> > I have multiple tiff images that have different 
> colours to be
> > set up as transparaent.
> >
> > With the offsite parameter I can only set one 
> colour transparent.
> >
> > Now my question is: Is there a way to make various colour
> > transparent??
> >
> >
> > best wishes and thank you very much
> >
> > christoph
> >
> >
> > ___
> > 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
> ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] multiple transparent colours

2012-05-09 Thread Stephen Woodbridge

Frank,

Would it be possible to make mapserver pick up the NODATA value from the 
gdal source file. Maybe using a keyword like "OFFSITE AUTO". This would 
be especially useful when using a tileindex.


Any thoughts on this? Should I create a ticket for something like this?

-Steve W

On 5/9/2012 9:36 AM, Rahkonen Jukka wrote:

Hi,
Perhaps you cannot literally set a colour as transparent in a tiff but
for sure you can define a nodata value and then applications can make
nodata pixels transparent. That is the most normal way to do it with
Mapserver and OFFSITE. I believe that Mapserver does not even care if
tiff has a nodata tag set but you can give whatever value for offsite in
a mapfile.
I have not played at all with alpha, but perhaps there is some way to
give a list of pixel values which should be transparent and convert them
all to a suitable alpha channel value.
-Jukka Rahkonen-

Fernando Nortewrote:
Hi Christoph,

I try to understand, how did you set the specific color to
transparent in a TIFF?
For raster you can set the level of transparency/opacity to the
image not to a color.

Att,

*Fernando Norte*

Desenvolvedor SIGWeb

tel.(31) 2533.9900

cel.(31) 9119.8814

skype: fernandoglobalgeo



Endereço: Alameda do Ingá, 88, 6º andar, Vale do Sereno

Nova Lima/MG - CEP: 34.000-000

www.globalgeo.com.br 

"O presente documento pode conter material confidencial ou seu
sigilo é protegido por lei.
Quaisquer informações nele contida são destinadas exclusivamente
ao(s) seu(s) destinatário(s)
não devendo em nenhuma hipótese ser repassado a terceiros".




2012/5/9 Christoph Schumacher
mailto:christoph.schumac...@pbs-schumacher.de>>

Hello everybody,

I have a problem setting up my wms.
I have multiple tiff images that have different colours to be
set up as transparaent.

With the offsite parameter I can only set one colour transparent.

Now my question is: Is there a way to make various colour
transparent??


best wishes and thank you very much

christoph


___
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] multiple transparent colours

2012-05-09 Thread Rahkonen Jukka
Hi,

Perhaps you cannot literally set a colour as transparent in a tiff but for sure 
you can define a nodata value and then applications can make nodata pixels 
transparent.  That is the most normal way to do it with Mapserver and OFFSITE.  
I believe that Mapserver does not even care if tiff has a nodata tag set but 
you can give whatever value for offsite in a mapfile.

I have not played at all with alpha, but perhaps there is some way to give a 
list of pixel values which should be transparent and convert them all to a 
suitable alpha channel value.

-Jukka Rahkonen-

Fernando Norte  wrote:
Hi Christoph,

I try to understand, how did you set the specific color to transparent in a 
TIFF?
For raster you can set the level of transparency/opacity to the image not to a 
color.

Att,

Fernando Norte

Desenvolvedor SIGWeb

tel.(31) 2533.9900

cel.(31) 9119.8814

skype: fernandoglobalgeo
[http://globalgeo.com.br/assinaturas/logo.png]

Endereço: Alameda do Ingá, 88, 6º andar, Vale do Sereno

Nova Lima/MG - CEP: 34.000-000

www.globalgeo.com.br

"O presente documento pode conter material confidencial ou seu sigilo é 
protegido por lei.
Quaisquer informações nele contida são destinadas exclusivamente ao(s) seu(s) 
destinatário(s)
não devendo em nenhuma hipótese ser repassado a terceiros".



2012/5/9 Christoph Schumacher 
mailto:christoph.schumac...@pbs-schumacher.de>>
Hello everybody,

I have a problem setting up my wms.
I have multiple tiff images that have different colours to be set up as 
transparaent.

With the offsite parameter I can  only  set one colour transparent.

Now my question is: Is there a way to make various colour transparent??


best wishes and thank you very much

christoph


___
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] Re: polygon border artifacts

2012-05-09 Thread Sven Geggus
"Lime, Steve D (DNR)"  wrote:

> Do outlines fix things at all zoom levels?

Not really. The Workaround which is working best for now is using a very big
polygon Overlap of 100Meters (Talking about Google Mercator here) which I
feel is way to much and an outline with of 1. To completely get rid of
artifacts I would need an Outline width of 2, but this is not small enough
IMO.

> What about the possibility of fixing the data?

The bug is clearly with mapserver here, the data is fine IMO. The tool used
for generation of the tiles does already allow for generation of arbitrary
overlap widths (https://github.com/joto/osmcoastline/).

> I mean, unioning the ocean polys into one, or better yet deriving land 
> polygons from 
> that data.

No, unfortunately both of them are not an Option!

1. Unioning the polygons:
I presented a small shapefile just to demonstrate the problem.
The original file I want to use contains ocean tiles covering the whole
world. So this has been spitted into tiles for a reason!

2. Land polygons:
These are also not an option because I want to use the ocean tiles to
cover inaccurate hillshading derived from srtm. This will not work the other
way round.

The only thing I could imagine as a solution on the data side would be
the clipping of the hillshades by means of the polygon shape.

Regards

Sven

-- 
TCP/IP: telecommunication protocol for imbibing pilsners
 (Man-page uubp(1C) on Debian/GNU Linux)

/me is giggls@ircnet, http://sven.gegg.us/ on the Web
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Re: Mapserver + mapcache + Google Map

2012-05-09 Thread Travis Kirstine
It appears that mapcache is trying to write to the grid "g" which is
not defined.  Are you looking to create tiles is a 900913 projection?
I would try removing the WGS84 and g
elements restarting / reload apache and see what happens (I'm not sure
if a tileset can support multiple grids).


Regards

On 7 May 2012 15:48, mkrassovski  wrote:
> Travis, thank you, for the reply.
> Yes, it does. I double checked it.
>
> Misha
>
> --
> View this message in context: 
> http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4958632.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


RE: [mapserver-users] Re: polygon border artifacts

2012-05-09 Thread Lime, Steve D (DNR)
When I think of why outlines don't make sense in this case it's because they 
further alter
the coastline- that's all. We do all sorts of weird configuration to create 
certain visual
effects. Drawing oceans to highlight land is an example in its own right. ;-)

Do outlines fix things at all zoom levels? What about the possibility of fixing 
the data?
I mean, unioning the ocean polys into one, or better yet deriving land polygons 
from 
that data.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Sven Geggus 
[li...@fuchsschwanzdomain.de]
Sent: Monday, May 07, 2012 1:47 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Re: polygon border artifacts

"Lime, Steve D (DNR)"  wrote:

> I tried locally and it's definitely a rendering artifact related to 
> anti-aliasing.

The artifact is getting worse in lower zoom levels (smaller islands).

I just tried a huge overlap of the polygons which made it better but
did not make it disapear also. So the workaround could be to find the
perfect combination of outlinewidth (as small as possible) and
overlap factor (also as small as possible).

> Should an outline always be drawn?

Tiled ocean polygons like I have them should be the perfect example
where an outline just does not make sense.

One would probably want to have an outline on the coastline but not
on polygon borders. Something one would need to render from a separate
linestring layer anyway.

Regards

Sven


--
"If you don't make lower-resolution mapping data publicly
available, there will be people with their cars and GPS
devices, driving around with their laptops" (Tim Berners-Lee)
/me is giggls@ircnet, http://sven.gegg.us/ on the Web
___
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] Re: mapserver-users Digest, Vol 52, Issue 14

2012-05-09 Thread sam
Sorry I missed you, but I am on parental leave until May 14th. Urgent YLUPC 
business can be sent to the YLUPC director at r...@planyukon.ca. 


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


Re: [mapserver-users] multiple transparent colours

2012-05-09 Thread Fernando Norte
Hi Christoph,

I try to understand, how did you set the specific color to transparent in a
TIFF?
For raster you can set the level of transparency/opacity to the image not
to a color.

Att,

 *Fernando Norte*

Desenvolvedor SIGWeb

tel.(31) 2533.9900

cel.(31) 9119.8814

skype: fernandoglobalgeo

Endereço: Alameda do Ingá, 88, 6º andar, Vale do Sereno

Nova Lima/MG - CEP: 34.000-000

www.globalgeo.com.br

"O presente documento pode conter material confidencial ou seu sigilo é
protegido por lei.
Quaisquer informações nele contida são destinadas exclusivamente ao(s)
seu(s) destinatário(s)
não devendo em nenhuma hipótese ser repassado a terceiros".




2012/5/9 Christoph Schumacher 

> Hello everybody,
>
> I have a problem setting up my wms.
> I have multiple tiff images that have different colours to be set up as
> transparaent.
>
> With the offsite parameter I can  only  set one colour transparent.
>
> Now my question is: Is there a way to make various colour transparent??
>
>
> best wishes and thank you very much
>
> christoph
>
>
> ___
> 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