AW: [mapserver-users] Re: symbol position moving when using angle

2011-06-21 Thread Maul, Andreas-Alexander
Hi Bart,
may be this is what you are looking for:
>From the map file documentation:

LABEL
...
POSITION [ul|uc|ur|cl|cc|cr|ll|lc|lr|auto]
Position of the label relative to the labeling point (layers only). First 
letter is "Y" position, second letter is "X" position. "Auto" tells MapServer 
to calculate a label position that will not interfere with other labels. With 
points, MapServer selects from the 8 outer positions (i.e. excluding cc). With 
polygons, MapServer selects from cc (added in MapServer 5.4), uc, lc, cl and cr 
as possible positions. With lines, it only uses lc or uc, until it finds a 
position that doesn't collide with labels that have already been drawn. If all 
positions cause a conflict, then the label is not drawn (Unless the label's 
FORCE a parameter is set to "true"). "Auto" placement is only available with 
cached labels.

Regards,
Andreas

-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Bart van den 
Eijnden (OSGIS)
Gesendet: Dienstag, 21. Juni 2011 15:55
An: Robert Hollingsworth
Cc: mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] Re: symbol position moving when using angle

Hi Robert,

thanks for your answer, indeed that must be the explanation.

However, the ESRI software (ArcMap in this case) is doing what we expect
with the same true type font.

Best regards,
Bart

> looks to me like the 'base point' around which the symbol is defined in
> terms
> of x-y position, and therefore around which the thing will rotate -- is to
> the lower-left of the visible exclamation mark:
>
>    #
>    #
>    #
>
>    #
> x  << rotates around this
>
> while you really want something like:
>
>    #
>    #
>    #   << rotates around this point
>
>    #
>
> I'm guessing this is the normal case for most ttf's?  Can you find or
> create a ttf char that is defined like the second case?  Otherwise
> probably need to use a bitmap or just block out what you need with
> mapserver vector symbology
>
> Robert
> ==
> original msg
> ==
> Hi list,
>
> hopefully someone can explain the following issue to me.
>
> I am using a vector symbol (ttf), and when using no angle, it is
> positioned correctly.
>
> However, when I use ANGLE on the STYLE (using an attribute in the
> dataset), things get weird and the symbol position changes.
>
> Image brous4.png (no rotation in Mapserver, red exclamation marks are
> Mapserver, black exclamation marks are ArcMap, blue dot is the same
> Mapserver layer using a circle symbol to display the location):
>
> http://www.osgis.nl/download/mapserver/brous4.png
>
> Image brous3.png, now we rotate the symbols in Mapserver, but their
> location is moving (a simple OFFSET does not seem to be a possible
> solution however):
>
> http://www.osgis.nl/download/mapserver/brous3.png
>
> TIA for any guidance.
>
> Best regards,
> Bart
> ___
> 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] Re: symbol position moving when using angle

2011-06-21 Thread Maul, Andreas-Alexander
Hi Bart,
the Migration Guide says that the keyword POSITION can also be used in the 
STYLE section since version 6.0.
Regards,
Andreas

-Ursprüngliche Nachricht-
Von: Bart van den Eijnden (OSGIS) [mailto:bart...@osgis.nl] 
Gesendet: Dienstag, 21. Juni 2011 16:13
An: Maul, Andreas-Alexander
Cc: mapserver-users@lists.osgeo.org; bart...@osgis.nl
Betreff: Re: AW: [mapserver-users] Re: symbol position moving when using angle

Hi Andreas,

I am not drawing labels in this particular case, I am drawing points with
a ttf symbol.

CLASS
  STYLE
ANGLE [GRADENHOEK]
SYMBOL "foo"
SIZE 50
COLOR 255 0 0
  END
END

SYMBOL
  NAME "foo"
  TYPE TRUETYPE
  FONT "arial"
  CHARACTER "!"
  ANTIALIAS TRUE
END

Best regards,
Bart

> Hi Bart,
> may be this is what you are looking for:
> From the map file documentation:
>
> LABEL
> ...
> POSITION [ul|uc|ur|cl|cc|cr|ll|lc|lr|auto]
> Position of the label relative to the labeling point (layers only).
> First letter is "Y" position, second letter is "X" position. "Auto"
> tells MapServer to calculate a label position that will not interfere
> with other labels. With points, MapServer selects from the 8 outer
> positions (i.e. excluding cc). With polygons, MapServer selects from
> cc (added in MapServer 5.4), uc, lc, cl and cr as possible positions.
> With lines, it only uses lc or uc, until it finds a position that
> doesn't collide with labels that have already been drawn. If all
> positions cause a conflict, then the label is not drawn (Unless the
> label's FORCE a parameter is set to "true"). "Auto" placement is only
> available with cached labels.
>
> Regards,
> Andreas
>
> -Ursprüngliche Nachricht-
> Von: mapserver-users-boun...@lists.osgeo.org
> [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Bart van
> den Eijnden (OSGIS)
> Gesendet: Dienstag, 21. Juni 2011 15:55
> An: Robert Hollingsworth
> Cc: mapserver-users@lists.osgeo.org
> Betreff: Re: [mapserver-users] Re: symbol position moving when using angle
>
> Hi Robert,
>
> thanks for your answer, indeed that must be the explanation.
>
> However, the ESRI software (ArcMap in this case) is doing what we expect
> with the same true type font.
>
> Best regards,
> Bart
>
>> looks to me like the 'base point' around which the symbol is defined in
>> terms
>> of x-y position, and therefore around which the thing will rotate -- is
>> to
>> the lower-left of the visible exclamation mark:
>>
>>    #
>>    #
>>    #
>>
>>    #
>> x  << rotates around this
>>
>> while you really want something like:
>>
>>    #
>>    #
>>    #   << rotates around this point
>>
>>    #
>>
>> I'm guessing this is the normal case for most ttf's?  Can you find or
>> create a ttf char that is defined like the second case?  Otherwise
>> probably need to use a bitmap or just block out what you need with
>> mapserver vector symbology
>>
>> Robert
>> ==
>> original msg
>> ==
>> Hi list,
>>
>> hopefully someone can explain the following issue to me.
>>
>> I am using a vector symbol (ttf), and when using no angle, it is
>> positioned correctly.
>>
>> However, when I use ANGLE on the STYLE (using an attribute in the
>> dataset), things get weird and the symbol position changes.
>>
>> Image brous4.png (no rotation in Mapserver, red exclamation marks are
>> Mapserver, black exclamation marks are ArcMap, blue dot is the same
>> Mapserver layer using a circle symbol to display the location):
>>
>> http://www.osgis.nl/download/mapserver/brous4.png
>>
>> Image brous3.png, now we rotate the symbols in Mapserver, but their
>> location is moving (a simple OFFSET does not seem to be a possible
>> solution however):
>>
>> http://www.osgis.nl/download/mapserver/brous3.png
>>
>> TIA for any guidance.
>>
>> Best regards,
>> Bart
>> ___
>> 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


AW: [mapserver-users] ArcSDE raster and value difference of 256

2009-12-11 Thread Maul, Andreas-Alexander
See ticket #3230
Regards,
Andreas

-
Dr. Andreas-Alexander Maul
B4.2 Geodaten, Geologische Informationen, Stratigraphie

Bundesanstalt für Geowissenschaften und Rohstoffe
im
GEOZENTRUM HANNOVER
Stilleweg 2
30655 Hannover

Tel.: +49 (0)511 643-3454
Email: andreas-alexander.m...@bgr.de

-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von bart...@osgis.nl
Gesendet: Donnerstag, 26. November 2009 11:17
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] ArcSDE raster and value difference of 256

Hi list,

I am trying to use an ArcSDE raster layer in Mapserver, but the values
that Mapserver gives back are different from the values that ArcMap gives
back.

There is a difference of exactly 256.

So NODATA is 256 according to ArcMap, but Mapserver seems to map it to 0,
etc. for all other values.

Does anyone know how to solve this? TIA.

[b...@hades build]$ /opt/arcsde-9.2-tools/bin/sderaster -o list -l
HOOGTE.kust_2009_2,RASTER -s geodatabase.ad.rws.nl -i 5151 -D PGPR -u
RWS_LEZEN -p  -verbose

Connecting to server geodatabase.ad.rws.nl, port 5151, as user RWS_LEZEN

ArcSDE 9.1 Oracle10g  Build 392 Thu Nov  2 15:42:12 PST 2006


Raster ID ...: 1
Raster Dimension : 22000, 15000, 1
Raster Tile Dimension ...: 128, 128
Pixel Type ..: char
Compression .: lz77
Image Pyramid ...: 6, false, nearest
Extent ..:
  minx:105002.50
  miny:543752.50
  maxx:214997.50
  maxy:618747.50
Cell Size:
  x   : 5.00
  y   : 5.00
Statistics ..: 


1 raster(s).

Complete...

Best regards,
Bart

___
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