Thanks, Frank. I think that must be where it goes wrong.
I tried to get an OSGeo userid (I used to have one, but it forgot me), but it won't let me. The form says my userid has been created, but it rejects it upon login. If I use the "forgotten password" functionality it doesn't recognise my email address.
I don't think I'd know how to compile mapserver and mapscript from scratch (haven't tried it for a few years), but there may be someone here who can. I will investigate that.
regards,
Jacob
-----Original Message-----
From: Frank Warmerdam [mailto:[EMAIL PROTECTED]]
Sent: Thu 11/1/2007 13:13
To: Delfos, Jacob
Cc: [email protected]
Subject: Re: [UMN_MAPSERVER-USERS] Mapserver Color Binding: Blue and Greenswapped (bug?)
Delfos, Jacob wrote:
> Hi List
>
> I am trying to make use of the colour binding feature, and it basically
> works, except... the colours are not quite right. My colours do not
> match those in MapInfo, although I can make MapInfo emulate the
> MapServer colours by swapping blue and green around. So basically: my
> RGB values are interpreted by MapServer as RBG.
>
> This happens for polygons as well as lines (haven't tried points). My
> data has been translated from MapInfo to PostGIS.
>
> I tried to lodge a bug in Trac, but it says "TICKET_CREATE privileges
> are required to perform this operation"
>
> Does anyone know more about this colour problem?
Jacob,
With some pointers from Howard, I found this segment of code in
bindColorAttribute() in maputil.c:
attribute->red = atoi(tokens[0]);
attribute->blue = atoi(tokens[1]);
attribute->green = atoi(tokens[2]);
I think this is responsible. If you are building from source, try just
changing it to the more obvious organization. I'd also suggest you
file a bug in Trac on the issue we will see if there is a subtle reason
for this, or it's just a typo.
To file bugs you need an OSGeo Userid. The pointer to get an osgeo
userid which you can use to login with is under the title "Important
Notice" on the http://trac.osgeo.org/mapserver page. The same userid
can be used for other OSGeo services like subversion, and other
trac instances (like GDAL's).
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, [EMAIL PROTECTED]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use.
