[mapserver-users] Re: Mapfile multiple CLASSITEM's

2010-08-09 Thread Donatas Malinauskas
Yes, Sumit, I understand - with few classes I can describe different 
animals, but the problem is that the same PIG in the map should be in 
severel different colours. The column value (eg. big pig - fills white, 
biggest pig - fills yellow, very big pig - fills red and so on) I read 
from data table...Is it possible to fill the same PIG ( in the same 
class) in different colours depending on data column value?


Thanks :)


Sumit Sharma [via OSGeo.org] wrote:
I use CLASSITEM for only one value, I think you can not use it for 
multiple values.
However for your problem you can easily solve it by using expression 
in class and color value in style

As for your example...
 CLASS
  NAME "PIG"
  EXPRESSION ([ANIMAL] = 'PIG')
  STYLE
ANGLE 360
COLOR [ANIMALCOLOR]
OUTLINECOLOR 0 0 0
SIZE 10
SYMBOL "YourPointSymbol"
WIDTH 1
  END
END
and so on you can make other classes for different "animals"
Hope this will resolve your problem

View message @ 
http://osgeo-org.1803224.n2.nabble.com/Mapfile-multiple-CLASSITEM-s-tp5388609p5388702.html 

To unsubscribe from Mapfile multiple CLASSITEM's, click here 
. 





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


[mapserver-users] Mapfile multiple CLASSITEM's

2010-08-09 Thread Donatas Malinauskas

HHi,

Is it possible to use multiple classitem's in mapserver mapfile? I want 
to symbolize my point by two column values (make symbol by one column 
value and make that symbol color by other column value).


eg. symbol - pig (found by classitem and expression = 'pig') and she can 
be red, black, white... it depends on second column value...How can I 
symbolize it?


Maybe it's possible to do in other way?

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


Re: Re: [mapserver-users] PHP mapscript recenter problem

2010-01-25 Thread Donatas Malinauskas

Hi Alan,

Thanks for yours reply! Yes now it's clear pixels are integers... It is 
too bad that this simply function mismatches to me.  Is there other 
recenter function which works with x,y in lonlat? I didn't see something 
like that in mapserver/mapscript documentation...


Good day,
Donatas.

Alan Boudreault wrote:

Donatas,

The x,y given to the zoomPoint function are in PIXEL, not lonlat. You cannot 
specify a half pixel. That said, pixel are integers, not double.
 
Alan


On January 22, 2010 03:22:30 am Donatas Malinauskas wrote:
  

HGood day,

I have some problem. I want to recenter my map exactly to users given
georeferenced coordinates. For that purpose I use php mapscript function
- zoompoint(ZOOMFACTOR,$myXY, WIDTH, HEIGHT, EXTENT) with ZOOMFACTOR=1.
But this function doesn't work correctly. ZoomPoint function centers map
to rounded x,y position (then I have myX 235.5px and myY 330.42 it
rounds to 235px, 330px) and moves map to incorect center coordinates.
What should I do in this situation, please give me some advice, how
recenter map with  best precision.

Thanks,
Donatas.
___
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] PHP mapscript recenter problem

2010-01-22 Thread Donatas Malinauskas

HGood day,

I have some problem. I want to recenter my map exactly to users given 
georeferenced coordinates. For that purpose I use php mapscript function 
- zoompoint(ZOOMFACTOR,$myXY, WIDTH, HEIGHT, EXTENT) with ZOOMFACTOR=1. 
But this function doesn't work correctly. ZoomPoint function centers map 
to rounded x,y position (then I have myX 235.5px and myY 330.42 it 
rounds to 235px, 330px) and moves map to incorect center coordinates. 
What should I do in this situation, please give me some advice, how  
recenter map with  best precision.


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