[mapserver-users] HELP query data raster

2008-04-23 Thread pablo zader
Hello friends,
I am working with MApServer 5, want to do query on layers raster and have
the following problem: on a layers raster once chosen the tool of query
gives the following thing to the clickear:

" MsQueryByPoint (): Search returned not results. Not matching record (s)
found. "

The layer raster of my map file defini like that:

LAYER
NAME "arboles"
TYPE raster
DATA "cobertura/GLC_5Final.tif"
STATUS ON
CLASS
EXPRESSION ([pixel] = 1)
STYLE
COLOR 0 255 0

END
TEMPLATE "template/raster.html"
END

CLASS
EXPRESSION ([pixel] = 1)
STYLE
COLOR 255 226 187
END
#TEMPLATE "template/raster.html"
END
HEADER "template/raster_header.html"
FOOTER "template/raster_footer.html"

The file raster.html (that is the principal one in the consultation) defini
like that:




Pixel:
values=[value_list]
value_0=[value_0]
value_1=[value_1]
value_2=[value_2]
RGB = [RED],[GREEN],[BLUE]
Class = [class]



I wait for his  help .. from already thank you very much to this forum that
really contributes things very interesting and good  solutions
Regards

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


Re: [mapserver-users] php/mapscipt getExtent

2008-04-23 Thread alim karim
thanks armin.

it seems that what you suggested is the only way to get the correct extents
for non-standard layers. i suppose one could add an if statement to check
the layer type i.e. use the canned getExtent if we are dealing with
shapefiles, otherwise if it is postgis, then use your code and if it is
anything else that is non-standard ... well ... tough luck.

On Wed, Apr 23, 2008 at 11:07 AM, Armin Burger <[EMAIL PROTECTED]> wrote:

> Alim
>
> The extent returned for a layer seems to be working only for 'standard'
> layers (e.g. based on shapefiles), but neither for Postgis nor raster
> layers, god knows why I use the code below for zooming to the extent of
> a Postgis layer:
>
> $data = trim($layer->data);
> $dataList1 = preg_split("/\s/", $data);
> $dataList2 = preg_split("/using/i", $data);
> $geomFld = array_shift($dataList1);
> $sql = "select xmin(extent) as minx, ymin(extent) as miny, xmax(extent)
>as maxx, ymax(extent) as maxy
>from (SELECT extent($geomFld) "
>. substr($dataList2[0], strlen($geomFld)) . ") as bar";
>
> // load DLL on Win if required
> if (PHP_OS == "WINNT" || PHP_OS == "WIN32") {
>if (! extension_loaded('pgsql')) {
>dl('php_pgsql.dll');
>}
> }
>
> $connString = $layer->connection;
> if (!($connection = pg_Connect($connString))){
>   error_log ("Could not connect to database");
>   error_log ("PG Connection error: " . pg_last_error($connection));
>   exit();
> }
>
> $qresult = pg_query ($connection, $sql);
> if (!$qresult) error_log("PG Query error for : $query" .
> pg_result_error($qresult));
>
> $pgE = pg_fetch_object($qresult);
> $layerExt = ms_newRectObj();
> $layerExt->setextent($pgE->minx, $pgE->miny, $pgE->maxx, $pgE->maxy);
>
>
> There might be easier solutions but this worked for me.
>
> armin
>
>
> On 22/04/2008 23:52, alim karim wrote:
>
> > hello all.
> >
> > i have a PostGIS layer (without its extents specified) in a mapfile.
> >
> > i am trying to use getExtent on this layer, but the coordinates i get
> > back (["minx":-2500,"miny":-2500,"maxx":2500,"maxy":2500])
> > are not the correct extents([1180204.375000, 809428.75,1222443.00,
> > 857276.187500)]).
> >
> > is there a way to get the proper extents of a layer even though they
> > might not be specified in the mapfile?
> >
> >
> >
> > 
> >
> > ___
> > 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


[Fwd: Re: [mapserver-users] Any Fedora fc8 64 bit mapserver users out there?]

2008-04-23 Thread Stephen Woodbridge

Nahum,

Thank you! this might have contributed to the problems I was having. I'm 
forwarding this to the mapserver-users list so it gets archived there 
and might help other also.


Best regards,
  -Steve W

 Original Message 
Subject: Re: [mapserver-users] Any Fedora fc8 64 bit mapserver users out 
there?

Date: Wed, 23 Apr 2008 10:28:25 -0500 (CDT)
From: Nahum Castro <[EMAIL PROTECTED]>
To: Stephen Woodbridge <[EMAIL PROTECTED]>


--- Stephen Woodbridge <[EMAIL PROTECTED]>
escribió:


Nahum,

Thank you for your response. I think the system I
was on had some 
serious problems. We are going to reload it with
Debian and see if we 
have better luck with that. I have more experience
with Debian anyway. 
If it is still a problem we can probably assume the

hardware is bad.

It is good to know that others are able to build
without a problem on 
Fedora. It was hard for me to believe that other
would not have had 
similar problems based on what I was seeing.


Thanks,
  -Steve


I have found that simlar problems occur with the gd
version included in fedora.

Downloading an installing current version of gd solved
the problem.

Saludos.
Nahum

--
Nahum Castro
Leon, Guanajuato, Mexico
http://www.leon-linux.com
e-mail: pedro1_72 [en] yahoo [punto] com




Yahoo! Deportes Beta
¡No te pierdas lo último sobre el torneo clausura 2008! Entérate aquí 
http://deportes.yahoo.com


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


Re: [mapserver-users] php/mapscipt getExtent

2008-04-23 Thread Armin Burger

Alim

The extent returned for a layer seems to be working only for 'standard' 
layers (e.g. based on shapefiles), but neither for Postgis nor raster 
layers, god knows why I use the code below for zooming to the extent 
of a Postgis layer:


$data = trim($layer->data);
$dataList1 = preg_split("/\s/", $data);
$dataList2 = preg_split("/using/i", $data);
$geomFld = array_shift($dataList1);
$sql = "select xmin(extent) as minx, ymin(extent) as miny, xmax(extent)
as maxx, ymax(extent) as maxy
from (SELECT extent($geomFld) "
. substr($dataList2[0], strlen($geomFld)) . ") as bar";

// load DLL on Win if required
if (PHP_OS == "WINNT" || PHP_OS == "WIN32") {
if (! extension_loaded('pgsql')) {
dl('php_pgsql.dll');
}
}

$connString = $layer->connection;
if (!($connection = pg_Connect($connString))){
   error_log ("Could not connect to database");
   error_log ("PG Connection error: " . pg_last_error($connection));
   exit();
}

$qresult = pg_query ($connection, $sql);
if (!$qresult) error_log("PG Query error for : $query" . 
pg_result_error($qresult));


$pgE = pg_fetch_object($qresult);
$layerExt = ms_newRectObj();
$layerExt->setextent($pgE->minx, $pgE->miny, $pgE->maxx, $pgE->maxy);


There might be easier solutions but this worked for me.

armin

On 22/04/2008 23:52, alim karim wrote:

hello all.

i have a PostGIS layer (without its extents specified) in a mapfile.

i am trying to use getExtent on this layer, but the coordinates i get 
back 
(["minx":-2500,"miny":-2500,"maxx":2500,"maxy":2500]) 
are not the correct extents([1180204.375000, 
809428.75,1222443.00, 857276.187500)]).


is there a way to get the proper extents of a layer even though they 
might not be specified in the mapfile?






___
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: php/mapscipt getExtent

2008-04-23 Thread alim karim
as per mapserver 4.4 release notes:

- Layers now accept an EXTENT through the mapfile (bug 786). Nothing
  is done with it at this point, and getExtent still queries the
  datasource rather than getting information from the mapfile-specified
  extent.


it seems as though getExtent is not behaving as described above. has anyone
else experienced this behavior?




On Tue, Apr 22, 2008 at 2:52 PM, alim karim <[EMAIL PROTECTED]> wrote:

> hello all.
>
> i have a PostGIS layer (without its extents specified) in a mapfile.
>
> i am trying to use getExtent on this layer, but the coordinates i get back
> (["minx":-2500,"miny":-2500,"maxx":2500,"maxy":2500]) are
> not the correct extents([1180204.375000, 809428.75,1222443.00,
> 857276.187500)]).
>
> is there a way to get the proper extents of a layer even though they might
> not be specified in the mapfile?
>
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


{Spam?} Re: {Spam?} [mapserver-users] DXF

2008-04-23 Thread Siki Zoltan

Hi Pietro,

dxf is not supported by OGR. MicroStation dgn format is supported which is 
a similar CAD format. You can convert dxf to dgn with MicroStation or 
AutoCAD Map. If it is not possible for you, you can use GRASS to read dxf 
and export it to shp.


Zoltan

On Wed, 23 Apr 2008, Pietro Giannini wrote:


Good morning List.

Anyone is experienced about reading dxf files in a mapserver application?
thanks

...pg



--
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58"N 12°29'13.39"E

___
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] Oracle+WMS: GetCapabilities issueUID 1559)

2008-04-23 Thread Diego Guidi
>  Yeah, it can be that this is only implemented for the Oracle driver in
>  Mapserver, i.e. the SDE and PostGIS driver in Mapserver don't even call the
>  DB function to calculate the extent, so that probably explains why it is
>  fast with those drivers.

Problem fixed.
With ows_extent getcapabilities request is fast as expected also with
oracle datastore.
Thanks a lot for support ;)
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Oracle+WMS: GetCapabilities issueUID 1559)

2008-04-23 Thread bartvde
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>

UID 1564) <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
X-Sender: [EMAIL PROTECTED]
Received: from b50-11.minvenw.nl [145.50.39.11] with HTTP/1.1 (POST); Wed, 23
Apr 2008 14:25:13 +0200
User-Agent: RoundCube Webmail/0.1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit

Yeah, it can be that this is only implemented for the Oracle driver in
Mapserver, i.e. the SDE and PostGIS driver in Mapserver don't even call the
DB function to calculate the extent, so that probably explains why it is
fast with those drivers.

Btw: mapserver-users <[EMAIL PROTECTED]> is not active anymore,
so please don't use it anymore.

Best regards,
Bart

On Wed, 23 Apr 2008 14:23:15 +0200, "Diego Guidi" <[EMAIL PROTECTED]>
wrote:
>> Add ows_extent for your LAYERS METADATA.
>>  Mapserver is trying to calculate the bounds of your layers, and that's
> a
>>  very slow function in Oracle (and in other spatial DBMS-s as well
> IIRC).
> 
> Thanks a lot, i try as soon as possible.
> BTW, with the same data published in SDE+Oracle and PostGIS mapserver
> responses are immediate: only with oracle I see this problem.

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


Re: [mapserver-users] Oracle+WMS: GetCapabilities issueUID 1559)

2008-04-23 Thread Diego Guidi
> Add ows_extent for your LAYERS METADATA.
>  Mapserver is trying to calculate the bounds of your layers, and that's a
>  very slow function in Oracle (and in other spatial DBMS-s as well IIRC).

Thanks a lot, i try as soon as possible.
BTW, with the same data published in SDE+Oracle and PostGIS mapserver
responses are immediate: only with oracle I see this problem.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Oracle+WMS: GetCapabilities issueUID 1559)

2008-04-23 Thread bartvde
Add ows_extent for your LAYERS METADATA.

Mapserver is trying to calculate the bounds of your layers, and that's a
very slow function in Oracle (and in other spatial DBMS-s as well IIRC).

Best regards,
Bart

On Wed, 23 Apr 2008 14:13:57 +0200, "Diego Guidi" <[EMAIL PROTECTED]>
wrote:
>  I'm using the last ms4w package and I'm experiencing an issue with
>  GetCapabilities request... in one word: is terribly slow :(
>  I've created a map file from a bunch of layers in SDE and all works
>  well, then I've moved the same data to Oracle Spatial, changed
>  configuration of the map file and now the problem appears.
>  I want to specify this: only getcapabilities is terribly slow (10
>  minutes for 10 layers), getmap requests and getfeatureinfo requests
>  are fast, actually much faster that with SDE...
>  anyone has experienced this issue?
> ___
> 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] AGG - FORMATOPTION PALETTE

2008-04-23 Thread Léveillé , James
Hi,
 
I'm trying to use my own palette for AGG as described here by Thomas :
http://www.nabble.com/forced-palette-and-quantization-for-RGBA-images-td1464
5869.html
 
As explained in the article, I'm using a typical PNG 24 bits image (produced
in RGBA mode - 4 bands).
But from this image, I'm not able to produce a 8 bits PNG image with the
ALPHA, only in RGB with 3 channels - see the GDALINFO below.
I need this 8 bits image to generate my palette.
 
gdalinfo rgb.png
Driver: PNG/Portable Network Graphics
Size is 1203, 813
Coordinate System is `'
Corner Coordinates:
Upper Left  (0.0,0.0)
Lower Left  (0.0,  813.0)
Upper Right ( 1203.0,0.0)
Lower Right ( 1203.0,  813.0)
Center  (  601.5,  406.5)
Band 1 Block=1203x1 Type=Byte, ColorInterp=Palette
  Color Table (RGB with 256 entries)
0: 17,12,12,255
1: 27,101,44,255
2: 0,132,0,255
3: 19,130,16,255
...
 
How can I generate a 8 bits RGBA image from the original 24 bits image ?
 
Regards.
 

__

JAMES LÉVEILLÉ
Service des systèmes de Mission
Direction des technologies de l'information
Ministère des Transports du Québec

5833, boul. Pierre-Bertrand, 2ième étage
Québec (Québec) G2K 1K7
Téléphone:   (418) 380-2005 poste 227
Télécopieur: (418) 644-6653
[EMAIL PROTECTED]  


 

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


[mapserver-users] Oracle+WMS: GetCapabilities issue

2008-04-23 Thread Diego Guidi
 I'm using the last ms4w package and I'm experiencing an issue with
 GetCapabilities request... in one word: is terribly slow :(
 I've created a map file from a bunch of layers in SDE and all works
 well, then I've moved the same data to Oracle Spatial, changed
 configuration of the map file and now the problem appears.
 I want to specify this: only getcapabilities is terribly slow (10
 minutes for 10 layers), getmap requests and getfeatureinfo requests
 are fast, actually much faster that with SDE...
 anyone has experienced this issue?
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] queryByPoint still valid?

2008-04-23 Thread Stefan Schwarzer

Hi,

hmm... I changed a couple of things in my application: new template  
engine; moved from PHP4 to PHP5; and from mapserver 4.x to mapserver 5.x


Now, the "identify" feature (click on a country and give me some info  
about it), has problems


Is anything wrong with these lines?


//Query the Map at the point clicked
if (!$imgbox)
$a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1);
else
$a = $map -> queryByRect($click_rt);

Thanks for any hints,

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


Re: [mapserver-users] Large scale PDF output on Windows

2008-04-23 Thread Kristian Thy
On Wed, Apr 23, [EMAIL PROTECTED] wrote:
> There is MAXSIZE for this on the MAP object:


Thanks, both of you. Ritual sacrifice has been cancelled.

\\kristian
-- 
... et nemo ex vobis interrogat me: »Quo vadis?«
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Large scale PDF output on Windows

2008-04-23 Thread bartvde
There is MAXSIZE for this on the MAP object:

MAXSIZE [integer]
Sets the maximum size of the map image. This will override the default
value. For example, setting this to 2048 means that you can have up to 2048
pixels in both dimensions (i.e. max of 2048x2048).

Wrt resource issues, we have seen Masperver fail (internal server errors)
on such big images depending on the dataset. For instance with aerial
photography (ECW) I've run into resource issues in the past. Sometimes the
limit was a bit below 10.000 pixels, sometimes 15.000 went fine. It all
depends how lucky you are :-)

Best regards,
Bart

On Wed, 23 Apr 2008 07:38:24 -0400, Christopher Schmidt
<[EMAIL PROTECTED]> wrote:
> On Wed, Apr 23, 2008 at 01:30:12PM +0200, Kristian Thy wrote:
>> I'm trying to generate pdf output from mapserver to be printed in A3
>> format at 600 dpi (which is not negotiable). We're currently using the
>> 5.0.2 binary from ms4w, which has a limitation of 2048 px square. I have
>> calculated I need 9921 by 7015 px output.
>>
>> Before I prostrate myself before the altar and make sacrifices to the
>> gods of compiling-mapserver-on-windows, can anybody confirm that output
>> of this size is indeed possible? The only thing I can find through
>> Google is this post from Ed McNierney - four and a half years old:
> 
> You don't need to recompile anymore. You can change this in a mapfile
> setting. (I don't know what it is, I'm sure that someone else will tell
> you: but wanted to make sure you got stopped before you started
> compiling.)
> 
> And yes, output of that size is possible. I believe that when I was
> talking to pagameba, he was talking about rendering on the order of 50
> x 50 256 px tiles -- about 1 by 1 or more. At that point, you
> may be limited by memory limits of some kind, depending on your
> rendering rules... but someone else can comment on that as well.
> 
> 
> 
>>
>
http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0309/msg00417.html
>>
>> \\kristian
>> --
>> ... et nemo ex vobis interrogat me: »Quo vadis?«
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> --
> Christopher Schmidt
> MetaCarta
> ___
> 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] Large scale PDF output on Windows

2008-04-23 Thread Christopher Schmidt
On Wed, Apr 23, 2008 at 01:30:12PM +0200, Kristian Thy wrote:
> I'm trying to generate pdf output from mapserver to be printed in A3
> format at 600 dpi (which is not negotiable). We're currently using the
> 5.0.2 binary from ms4w, which has a limitation of 2048 px square. I have
> calculated I need 9921 by 7015 px output.
> 
> Before I prostrate myself before the altar and make sacrifices to the
> gods of compiling-mapserver-on-windows, can anybody confirm that output
> of this size is indeed possible? The only thing I can find through
> Google is this post from Ed McNierney - four and a half years old:

You don't need to recompile anymore. You can change this in a mapfile
setting. (I don't know what it is, I'm sure that someone else will tell
you: but wanted to make sure you got stopped before you started
compiling.) 

And yes, output of that size is possible. I believe that when I was
talking to pagameba, he was talking about rendering on the order of 50
x 50 256 px tiles -- about 1 by 1 or more. At that point, you
may be limited by memory limits of some kind, depending on your
rendering rules... but someone else can comment on that as well.



> http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0309/msg00417.html
> 
> \\kristian
> -- 
> ... et nemo ex vobis interrogat me: »Quo vadis?«
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

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


[mapserver-users] Large scale PDF output on Windows

2008-04-23 Thread Kristian Thy
I'm trying to generate pdf output from mapserver to be printed in A3
format at 600 dpi (which is not negotiable). We're currently using the
5.0.2 binary from ms4w, which has a limitation of 2048 px square. I have
calculated I need 9921 by 7015 px output.

Before I prostrate myself before the altar and make sacrifices to the
gods of compiling-mapserver-on-windows, can anybody confirm that output
of this size is indeed possible? The only thing I can find through
Google is this post from Ed McNierney - four and a half years old:

http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0309/msg00417.html

\\kristian
-- 
... et nemo ex vobis interrogat me: »Quo vadis?«
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] DXF

2008-04-23 Thread Pietro Giannini
Good morning List.

Anyone is experienced about reading dxf files in a mapserver application?
thanks

...pg



-- 
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58"N 12°29'13.39"E

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


[mapserver-users] Indic Support in Mapserver?

2008-04-23 Thread Swapnil Hajare
Hello All,
  I have been trying unsuccessfully to login to
trac.osgeo.org/mapserverusing my OSGeo userid (dreamil). After trying
for last 2 days, I am posting
here the bug report which I wanted to post there. Please go through this and
let me know your opinion on the same:


Title: Indic Support (using OpenType fonts) in Mapserver

The current version of Mapserver can render labels on map using LABEL
directive in a map file.For labels, you can use truetype fonts which is
achieved using freetype.Due to this map labels can be displayed in various
non-English languages such as europian and some Asian scripts.

However, for rendering some CTL (Complex Text Layout) scripts, truetype
fonts are not sufficient.Indic Scripts, for example, require much more than
mere juxtaposition of glyphs from a font.Rendering Indic scripts such as
Devanagari, Gujarati, Tamil, Telugu, Bengali etc. is much more complex than
others.To handle this, "intelligent" fonts were designed which contain
embedded rules to help rendering.These were called OpenType fonts (see
http://www.microsoft.com/typography/otfntdev/indicot/default.htm). Though
initiated by M$, OpenType fonts are are now Industry standard for rendering
these complex scripts on Computer using script and language rules. All major
Linux desktops such as GNOME and KDE support OpenType font rendering.To
handle OpenType fonts, various rendering engines have been developed and
have become part of rendering libraries such as Pango(
http://www.pango.org/)/ICU(http://www.icu-project.org/),
Qt etc.It should be noted that, in absence of such a rendering engine,
OpenType fonts act as Truetype fonts i.e. the embedded rendering rules are
not used while doing the glyph formation.

There are numerous OpenType fonts available free/proprietory for Indic
scripts. We have ourselves developed gargi, the first GPLed OpenType font
for Devanagari(http://savannah.nongnu.org/projects/gargi).

Current Mapserver supports truetype fonts using freetype routines, but there
is no support for OpenType fonts. As a result, a text label in any of the
indic scripts is rendered using justaposition of glyphs from the font
provided, without using rendering rules.The result is incorrect rendering.
To show you the difference, here is the snapshot of a map with labels in
Devanagari script (which is a indic script), rendered in correct fashion(
http://indictrans.in/~swapnil/mapserver/required_result.png)
and here is the snapshot as rendered by Mapserver(
http://indictrans.in/~swapnil/mapserver/mapserv_no_render_support_for_ttf.png)
You may not be able to make out much if you are not familiar with the
script, but for someone who knows the script, its an incorrect or broken
representation of the text.

To solve this, we should add support for OpenType font rendering in
Mapserver.This can be done by embedding some indic rendering routines from
Pango or ICU into the label rendering engine of mapserver. I don't know the
details of how labels are rendered in Mapserver, so somebody knowledgable
should guide. I am prepared to take up the task on behalf of my team (
www.indictrans.in) if I get some guidance about internal working of
Mapserver.As far as performance is concerned, this will hit the speed badly,
but then this can be encoded as a configure options (--with-pango similar to
Firefox implementation
http://developer.spikesource.com/wiki/index.php/Firefox_Indic_Build) so that
it becomes optional.

You may have look at the temporary solution which we are using for the time
being to show indic text on maps using Mapserver here:
http://www.indictrans.in/old/doublebyte/English/doublebyte_l10n_25march_4PM.htmlWe
have numerous localized GIS demo on our website using this approach.


regards,
-- 
Swapnil Hajare
dreamil.indictrans.in
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users