[mapserver-users] Newer version of Freetype causing font rendering problems

2012-12-13 Thread Fiona Hemsley-Flint

Hi,

We have found that version 2.4.10 of Freetype causes text through 
MapServer to render differently (and not as nicely) as v2.3.9 of Freetype.


Whilst we have got round this issue by reverting to the earlier version 
of Freetype, we are concerned that this may cause issues in the future 
if the old version either stops working on newer operating systems, or 
if Mapserver stops linking to it.


I have attached a couple of screenshots (hopefully these will come 
through on the list), and i can provide example shapefile and mapfile 
etc if required...


I guess what I'm looking for is feedback as to whether this is a known 
issue, and whether it should be submitted as a bug report to Mapserver 
(if so, how?), or to Freetype?


Thanks,
Fiona



--

Dr Fiona Hemsley-Flint
EDINA National Data Centre,
University of Edinburgh

+44(0)131 6514462


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

attachment: freetype_2_3_9.pngattachment: freetype_2_3_10.png___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Still impossible to force labels inside their polygons?

2012-12-13 Thread Lime, Steve D (DNR)
Label expressions might turn out to be useful here. Just thinking out loud... I 
mean we might be able to extend things and define expressions where you can 
write tests like the intersecting a label bbox against the parent shape. 
Expressions with multiple labels work like classes and are executed in order. 
Bigger issue is having to cache original geometries as part of the label cache.

--Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Brent Fraser 
[bfra...@geoanalytic.com]
Sent: Wednesday, December 12, 2012 12:49 PM
To: Mark Volz
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Still impossible to force labels inside their 
polygons?

Mark,

   Sounds ok (it took me a while to realize you meant the BBOX of the
polygons, not the label!).

 My world of sophisticated labeling would include some way of having
the mapfile specify the order of applying the rules, but currently there
is no way to do procedural things in a mapfile, just set parameters.  On
second thought, I guess the CLASS list evaluates things in a particular
order; perhaps the same technique could be used in label placement:

LABEL
 CHECKLABELFIT true  # Check BBOX of label against polygon outline
(not just BBOX of polygon)

 LOCATION# --- first label attempt (Case A,B) ---
 POSITION cc,ul,uc,ur
 END

 LOCATION# --- next label attempt (Case C) ---
  ANGLE auto
 END

 LOCATION# --- next label attempt (Case D) ---
 LEADER
 :
 END
 END
END

And I'd like to factor in preferring labeling in areas of no other
linework, but that may take some thought...

Best Regards,
Brent Fraser

On 12/12/2012 10:40 AM, Mark Volz wrote:
 Brent,

 In the long run when servers get faster, more layers get cached, and users 
 expect better cartography, I think that it would be worthwhile to implement a 
 way of trying multiple positions.  The CHECKLABELFIT keyword is mostly to 
 verify that a label falls inside the actual polygon as opposed to the BBOX, 
 which would help avoid ambiguity on labels.   I don't think CHECKLABELFIT 
 would be mutually exclusive to any method of trying to find different label 
 positions.

 In your comments you have the term If it doesn't fit.  CHECKLABELFIT could 
 be used to specify if we consider if the label fits according to the BBOX or 
 the polygon.  For example:

  A:  Calculate the default location of the label in the polygon.  If 
 CHECKLABELFIT is on: only place the label if it falls inside the polygon.  If 
 CHECKLABELFIT is off: only place the label if it fits in the BBOX

  If the label could not be placed, and TRYALTERNATELABELS is on:
  B:  Try different positions in the polygon  UL,UC,UR, etc.  If 
 CHECKLABELFIT is on: only place the label if it falls inside the polygon.  If 
 CHECKLABELFIT is off: only place the label if it fits in the BBOX

  If a label still could not be placed:
  C:  Rotate the label.  If CHECKLABELFIT is on: only place the label if 
 it falls inside the polygon.  If CHECKLABELFIT is off: only place the label 
 if it fits in the BBOX.

  If a label could not be placed after rotating the label
  D. Try using a leader line.  / Place Polygon annotation outside polygon.


 Use situations:
 CHECKLABELFIT=FALSE, TRYALTERNATELABELS=FALSE:  label the map as fast as 
 possible.
 CHECKLABELFIT=TRUE, TRYALTERNATELABELS=FALSE:  make sure labels fit in their 
 polygons, but don't worry about labeling everything.
 CHECKLABELFIT=FALSE, TRYALTERNATELABELS=TRUE:  try to label as many items as 
 possible, use the BBOX as label ambiguity is okay.
 CHECKLABELFIT=TRUE, TRYALTERNATELABELS=TRUE:  try to label as many items as 
 possible, and make sure that the labels fit inside their polygons. (slowest)

 Thanks


 Mark Volz
 GIS Specialist


 -Original Message-
 From: Brent Fraser [mailto:bfra...@geoanalytic.com]
 Sent: Wednesday, December 12, 2012 10:01 AM
 To: Mark Volz
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Still impossible to force labels inside their
 polygons?

 Mark,

 A simple solution sounds good as long as it can fit into a strategic 
 plan (I
 don't really have a plan for improving the polygon labeling, just a desire!).

   On major releases of Mapserver I try to push the limits of its 
 cartography
 by comparing its output to hand-composed pdfs of Canadian Topo maps [1]
 (not fair I know).  One of the stumbling blocks I've run into is the 
 labeling of
 polygons and I've speculated on the use of rules-based labeling.  Here's my
 list of rules from a comment on RFC
 77 [2].

   Allow for alternate label positions.  While this is likely beyond the 
 scope of
 RFC 77, perhaps it could be taken into account in design and implementation
 for later addition.  Basically I'd like more flexibility (rule-based?) in 
 labeling
 polygons:

   A. 

[mapserver-users] Mapserver CSRS support

2012-12-13 Thread Travis Kirstine
I have issue with my WMS service when using a source raster layer that is
in EPSG:2958 - NAD83(CSRS) / UTM zone 17N srs. The issue is that Mapserrver
(proj) does not apply a gridshift when requesting the layer in a different
projection - UTM z17n NAD83.  I have a gridshift file for this
transformation however there is no way to apply it to the output that I am
aware of.

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


Re: [mapserver-users] Retrieve function values from Postgres

2012-12-13 Thread Lime, Steve D (DNR)
I believe anything you can stuff in a DATA statement using SQL is legitimate. 


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Heiko Schröter 
[schro...@iup.physik.uni-bremen.de]
Sent: Tuesday, December 11, 2012 6:13 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Retrieve function  values from Postgres

Hello,

is it possible for mapserver to question a function in a postgres geo
database ?
i.e. this query string inside postgres  works:
select * from get_aerosol_data('gas_db', 25.5, '2005-3-2 00:00',
'2006-3-5 00:00');

If it is possible how to translate this into mapserver mapfile syntax ?

Thanks and Regards
Heiko


/mdraid/www/localhost/mapserver/mapserv -v
MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
SUPPORTS=FASTCGI INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
___
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] Retrieve function values from Postgres

2012-12-13 Thread Stephen Woodbridge


DATA the_geom from (select * from get_aerosol_data('gas_db', 25.5, 
'2005-3-2 00:00', '2006-3-5 00:00') ) as foo using unique gid using 
srid=4326


Here is a link that might help:

http://mapserver.org/input/vector/postgis.html

-Steve W

On 12/13/2012 3:24 PM, Lime, Steve D (DNR) wrote:

I believe anything you can stuff in a DATA statement using SQL is legitimate.


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Heiko Schröter 
[schro...@iup.physik.uni-bremen.de]
Sent: Tuesday, December 11, 2012 6:13 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Retrieve function  values from Postgres

Hello,

is it possible for mapserver to question a function in a postgres geo
database ?
i.e. this query string inside postgres  works:
select * from get_aerosol_data('gas_db', 25.5, '2005-3-2 00:00',
'2006-3-5 00:00');

If it is possible how to translate this into mapserver mapfile syntax ?

Thanks and Regards
Heiko


/mdraid/www/localhost/mapserver/mapserv -v
MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
SUPPORTS=FASTCGI INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
___
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] MapFile viewer

2012-12-13 Thread Ivan Minčík
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all,
If anybody interested, I have published my simple web based mapfile
viewer tool, which I use to develop and visualize MapServer layers.

Mapfile viewer is a Python script which starts standalone WSGI server
which provides OpenLayers-based map viewer containing layers from
given mapfile.

You can download it from here: https://github.com/imincik/mapfile-viewer

Any patches welcomed.

- -- 
Ivan Mincik, ivan.min...@gmail.com
If replying in mailing-list please add me to Cc.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBAgAGBQJQykLqAAoJEPfdLsR5Upoez7cIAJiQE1pxklQHYVqS6YOLTcyv
8Vf/XxwJ61Foe1rGKj5eFJiicFWZX3+btwL2MQ2+q/+ujhFUj+uEsBDmHFa3TlKm
S1P2QDteks7eX7V8BIstGrCOJ2jd5n17j5/4WsRJOzDHfKrqRyNx9NCHyTQnE97s
iL4vz8zvcWhP/kKXACoAH5RL7C5m9MmVuKWByMhZa/ppNALeQtZcMOTn0DW+N1LP
K0oCCw9B88/LkqXZQTnfrRKHMKkktlwxSRNfqSbjC4TREhUunnJd1r4yJghkPgeb
BQoxQSPNIgi5epr9rFXxs6nBMhXPkBvtTaPAEKQzmM+M/QBdkxcqxq6TWbQQ/6I=
=3Xfc
-END PGP SIGNATURE-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Map inset, anyone tried this?

2012-12-13 Thread Basques, Bob (CI-StPaul)
All,

Wild thought here . . .

I'm wondering about how to approach the need to add a map inset to a MapServer 
call.  I know I can make separate calls and stack some maps on top of each 
other, but I'm wondering now about using a TRANSFORM of coordinates to put a 
Map Inset window into a Mapserver call in some way?

One thought was to use a SQL call to PostGIS and transform things in some 
fashion that way.  Another might be a method for defining a window, and then 
adding in a MapServer parameter to use a MAPfile to populate it.  This might 
also lead to some capabilities with respect to making some interesting embedded 
Legends, since the populating aspect might be a simple URL to populate the 
defined window in the map.  With MapServer making the call, the window could 
even be treated as a label object and label collisions could be handled as well 
. . .  hmmm, remember, I did say  wild.  :c)

In the back of my mind (for some number of years now) I've wanted the 
capabilities to actually draw things via a MapServer call in some form.  A Map 
Inset window with a tail, similar to OpenLayers or Google Popups for example, 
would be the best description I can think of.

Anyone tried anything like this?  I can see this being interesting as a 
capability especially for doing spatial reports (Which I'm in the middle of 
designing right now  . . .)

Thanks

Bobb


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