[mapserver-users] a class level opacity

2013-07-16 Thread Ahmet Temiz
hello

Is there any way to realize a class level opacity ?

something like:

CLASS
NAME "0"
EXPRESSION ([pixel] == 0 )
TRANSPARENCY  50   # it gives wrong
COLOR 0 0 0
END


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


Re: [mapserver-users] a class level opacity

2013-07-16 Thread thomas bonfort
use STYLEs . Your syntax is outrageously deprecated, please read the docs.
http://mapserver.org/mapfile/class.html
http://mapserver.org/mapfile/style.html#style

--
thomas

On 16 July 2013 11:17, Ahmet Temiz  wrote:
> hello
>
> Is there any way to realize a class level opacity ?
>
> something like:
>
> CLASS
> NAME "0"
> EXPRESSION ([pixel] == 0 )
> TRANSPARENCY  50   # it gives wrong
> COLOR 0 0 0
> END
>
>
> 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] mergeNewParams and Tile Manager in 2.13.1

2013-07-16 Thread Donald Kerr
I am working towards upgrading my current working copy of Openlayers which
is a master version from Github downloaded on 7th January 2013.

 

I use mergeNewParams on a WMS layer to retrieve new tiles changed from
Mapserver (swaps colour tiles for greyscale and vice versa but that's
irrelevant):

 

layerOSWMS.mergeNewParams({'FORMAT': 'png_grey'});

 

When the above is called using the master version download from 7th Jan,
each replacement tile appears one after the other as I would expect. With
2.13.1, it appears that all the tiles are downloaded and all appear visually
at the same time after a short delay.

 

Has this anything to do with the new Tile Manager and what can I do to
revert to the old style tile replacement where they are rendered on screen
as they are downloaded? "tileManager: null" doesn't seem to make any
difference besides I would probably not want to turn all features of the
Tile Manager off.

 

Many thanks.

 

Regards,

 

Donald

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


Re: [mapserver-users] sql clause in DATA

2013-07-16 Thread Ahmet Temiz
thank you

can we do same things for raster map ?

regards


On Sat, Jul 13, 2013 at 12:41 PM, Ahmet Temiz wrote:

> hello
>
> Is there any way to insert a sql query into a connection string as:
>
> DATA 'PG: dbname=tr2 host=localhost ...
>
> I want to manipulate ms - layer changing data line  using java mapscript .
>
>
> 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
>



-- 
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


Re: [mapserver-users] error showing map in template

2013-07-16 Thread avin mohanza
this is the map file

MAP
  NAME ARNSBERG
  # Map image size
  SIZE 600 400
  UNITS meters

  EXTENT 7.474607 50.595419 8.763348 51.966222
  #FONTSET './fonts/fonts.txt'
  #SYMBOLSET './symbols/symbols.txt'
  PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
  END

  # Background color for the map canvas -- change as desired
  IMAGECOLOR 255 255 255
  IMAGEQUALITY 95
  IMAGETYPE agg

  OUTPUTFORMAT
NAME agg
DRIVER AGG/PNG
IMAGEMODE RGB
  END
  # Legend
  LEGEND
  IMAGECOLOR 255 255 255
STATUS ON
KEYSIZE 18 12
LABEL
  TYPE BITMAP
  SIZE MEDIUM
  COLOR 0 0 89
END
  END

  # Web interface definition. Only the template parameter
  # is required to display a map. See MapServer documentation
  WEB
# Set IMAGEPATH to the path where MapServer should
# write its output.
IMAGEPATH '/var/www/arnsbergMS/'

# Set IMAGEURL to the url that points to IMAGEPATH
# as defined in your web server configuration
IMAGEURL '/tmp/'

# WMS server settings
METADATA
  'ows_title'   'QGIS-MAP'
  'ows_onlineresource' 
'http://localhost/cgi-bin/mapserv?map=/var/www/arnsbergMS/arnsberg.map'
  'ows_srs' 'EPSG:4326'
  'wms_enable_request'   "*"
  'ows_enable_request'   "*"
  'wfs_enable_request'   "*"
END

#Scale range at which web interface will operate
# Template and header/footer settings
# Only the template parameter is required to display a map. See
MapServer documentation
#TEMPLATE 'fooOnlyForWMSGetFeatureInfo'
TEMPLATE '/var/www/arnsbergMS/tring.html' 
  END

  LAYER
NAME 'arnsbergMS3'
TYPE POLYGON
DUMP false
  EXTENT 7.474607 50.595419 8.763348 51.966222
#DATA
'/var/www/arnsbergMS/arnsberg-regbez-latest.osm?type=polygon&tag=name&style=/usr/share/qgis/python/plugins/osm/styles/medium_scale.style'
DATA '/var/www/arnsbergMS/arnsbergMS3.shp'
METADATA
  'ows_title' 'arnsbergMS3'
  'wms_enable_request'   "*"
  'ows_enable_request'   "*"
  'wfs_enable_request'   "*"
END
STATUS ON
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
   NAME 'arnsbergMS3' 
   STYLE
 WIDTH 0.91 
 OUTLINECOLOR 0 0 0
 COLOR 224 176 81
   END
END
  END

  LAYER
NAME 'arnsbergMS2'
TYPE LINE
DUMP false
  EXTENT 7.474607 50.595419 8.763348 51.966222
#DATA
'/var/www/arnsbergMS/arnsberg-regbez-latest.osm?type=line&tag=name&style=/usr/share/qgis/python/plugins/osm/styles/medium_scale.style'
DATA '/var/www/arnsbergMS/arnsbergMS2.shp'
METADATA
  'ows_title' 'arnsbergMS2'
  'wms_enable_request'   "*"
  'ows_enable_request'   "*"
  'wfs_enable_request'   "*"
END
STATUS ON
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
   NAME 'arnsbergMS2' 
   STYLE
 WIDTH 0.91 
 COLOR 171 48 161
   END
END
  END
END

if you need also my template
this is my template, tring.html

!-- MapServer Template -->


MapServer Workshop









Example 2.1: Zoom and Pan Controls










  




  




  Map Mode:

  Browse
  Map

  



  

  



  Map Control: 

  Zoom In 4x
  Zoom In 3x
  Zoom In 2x
  Recenter
  Zoom Out 2x
  Zoom Out 3x
  Zoom Out 4x

  

  
  



  

  



  







thank you so much


Lime, Steve D (MNIT) wrote
> Tough to tell without a little bit of the mapfile content. Most likely
> this is from:
> 
>   1) missing quotes around a string
>   2) misspelling of a keyword
>   3) a missing END keyword
> 
> Steve
> 
> -Original Message-
> From: 

> mapserver-users-bounces@.osgeo

>  [mailto:

> mapserver-users-bounces@.osgeo

> ] On Behalf Of avin mohanza
> Sent: Monday, July 15, 2013 4:06 AM
> To: 

> mapserver-users@.osgeo

> Subject: [mapserver-users] error showing map in template
> 
> loadWeb(): Unknown identifier. Parsing error near
> (/var/www/arnsbergMS/templatest.html):(line 1) 
> 
> what cause this error?
> 
> i appreciate every help..
> 
> 
> 
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/error-showing-map-in-template-tp5066390.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> ___
> mapserver-users mailing list

> mapserver-users@.osgeo

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

[mapserver-users] xslt transfofmr on getcapabilites of tinyows

2013-07-16 Thread Andrea Peri
Hi,

I'm try.ing to trasform an xml from tinyows.

But it seem don't work.

Perhaps there a problem with the xml of tiny ?

On this call:

http://www502.regione.toscana.it/wfsvector/com.rt.wfs.RTmap/wfs?SERVICE=WFS&REQUEST=GetCapabilities&version=1.1.0

I'm trying to apply this trasformation:



to retrieve the name of first FeatureType.

But the xsltproc always return null.

I'm not sure of my xpath, but it seem ok,

Any help is welcome.

-- 
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] xslt transfofmr on getcapabilites of tinyows

2013-07-16 Thread Olivier Courtin
If you have a doubt on a XML provided by a WFS server,
there's OGC XSD you could use to validate against.
(look in tinyows/schema dir)

O.

On Tue, Jul 16, 2013 at 5:39 PM, Andrea Peri  wrote:
> Hi,
>
> I'm try.ing to trasform an xml from tinyows.
>
> But it seem don't work.
>
> Perhaps there a problem with the xml of tiny ?
>
> On this call:
>
> http://www502.regione.toscana.it/wfsvector/com.rt.wfs.RTmap/wfs?SERVICE=WFS&REQUEST=GetCapabilities&version=1.1.0
>
> I'm trying to apply this trasformation:
>
> 
>
> to retrieve the name of first FeatureType.
>
> But the xsltproc always return null.
>
> I'm not sure of my xpath, but it seem ok,
>
> Any help is welcome.
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



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


Re: [mapserver-users] xslt transfofmr on getcapabilites of tinyows

2013-07-16 Thread Andrea Peri
Hi,

I test it with a validate tool,
Effectively there was an error.

> Element  is not allowed under element .

So I remove the keywords definition from my tiny config.xml,

After this the xml was valid, but always the



don't return the right value.





2013/7/16 Olivier Courtin 

> If you have a doubt on a XML provided by a WFS server,
> there's OGC XSD you could use to validate against.
> (look in tinyows/schema dir)
>
> O.
>
> On Tue, Jul 16, 2013 at 5:39 PM, Andrea Peri  wrote:
> > Hi,
> >
> > I'm try.ing to trasform an xml from tinyows.
> >
> > But it seem don't work.
> >
> > Perhaps there a problem with the xml of tiny ?
> >
> > On this call:
> >
> >
> http://www502.regione.toscana.it/wfsvector/com.rt.wfs.RTmap/wfs?SERVICE=WFS&REQUEST=GetCapabilities&version=1.1.0
> >
> > I'm trying to apply this trasformation:
> >
> > 
> >
> > to retrieve the name of first FeatureType.
> >
> > But the xsltproc always return null.
> >
> > I'm not sure of my xpath, but it seem ok,
> >
> > Any help is welcome.
> >
> > --
> > -
> > Andrea Peri
> > . . . . . . . . .
> > qwerty àèìòù
> > -
> >
> > ___
> > mapserver-users mailing list
> > mapserver-users@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
>
>
>
> --
> Olivier
>



-- 
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] xslt transfofmr on getcapabilites of tinyows

2013-07-16 Thread Andrea Peri
I open a ticket for this issue on keyword.

https://github.com/mapserver/tinyows/issues/61

Regards.


2013/7/16 Andrea Peri 

> Hi,
>
> I test it with a validate tool,
> Effectively there was an error.
>
> > Element  is not allowed under element .
>
> So I remove the keywords definition from my tiny config.xml,
>
> After this the xml was valid, but always the
>
> 
>
> don't return the right value.
>
>
>
>
>
> 2013/7/16 Olivier Courtin 
>
>> If you have a doubt on a XML provided by a WFS server,
>> there's OGC XSD you could use to validate against.
>> (look in tinyows/schema dir)
>>
>> O.
>>
>> On Tue, Jul 16, 2013 at 5:39 PM, Andrea Peri  wrote:
>> > Hi,
>> >
>> > I'm try.ing to trasform an xml from tinyows.
>> >
>> > But it seem don't work.
>> >
>> > Perhaps there a problem with the xml of tiny ?
>> >
>> > On this call:
>> >
>> >
>> http://www502.regione.toscana.it/wfsvector/com.rt.wfs.RTmap/wfs?SERVICE=WFS&REQUEST=GetCapabilities&version=1.1.0
>> >
>> > I'm trying to apply this trasformation:
>> >
>> > 
>> >
>> > to retrieve the name of first FeatureType.
>> >
>> > But the xsltproc always return null.
>> >
>> > I'm not sure of my xpath, but it seem ok,
>> >
>> > Any help is welcome.
>> >
>> > --
>> > -
>> > Andrea Peri
>> > . . . . . . . . .
>> > qwerty àèìòù
>> > -
>> >
>> > ___
>> > mapserver-users mailing list
>> > mapserver-users@lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >
>>
>>
>>
>> --
>> Olivier
>>
>
>
>
> --
> -
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -
>



-- 
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users