Nominating MapGuide RFC 1

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Nominating MapGuide RFC 1

Bruce Dechant

Hi All,

 

I would like to nominate the following RFC: http://wiki.osgeo.org/index.php/MapGuide_RFC_1_-_Commandline_Parameter_Changes

 

Thanks,

Bruce

 

 

 

Reply | Threaded
Open this post in threaded view
|

RE: Nominating MapGuide RFC 1

Jason Birch
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Nominating MapGuide RFC 1

Robert Bray-2
In reply to this post by Bruce Dechant
Bruce,

I assume you mean motion to approve. In which case I'll second your motion.

Bob

Bruce Dechant wrote:

Hi All,

 

I would like to nominate the following RFC: http://wiki.osgeo.org/index.php/MapGuide_RFC_1_-_Commandline_Parameter_Changes

 

Thanks,

Bruce

 

 

 


--------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Nominating MapGuide RFC 1

Robert Bray-2
In reply to this post by Jason Birch
Ok, since Jason trumped my second, I'll +1. While minor, consistency with expected platform behavior is always a good thing.

Bob

Jason Birch wrote:
I'll second that (it got good discussion and was changed to accommodate) and vote +0


From: Bruce Dechant [[hidden email]]
Sent: Wednesday, November 15, 2006 10:00
To: [hidden email]
Subject: [mapguide-dev] Nominating MapGuide RFC 1

Hi All,

 

I would like to nominate the following RFC: http://wiki.osgeo.org/index.php/MapGuide_RFC_1_-_Commandline_Parameter_Changes

 

Thanks,

Bruce

 

 

 


--------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: Nominating MapGuide RFC 1

Andy Morsell
+1
 

Andy Morsell


From: Robert Bray [mailto:[hidden email]]
Sent: Wednesday, November 15, 2006 10:26 AM
To: [hidden email]
Subject: Re: [mapguide-dev] Nominating MapGuide RFC 1

Ok, since Jason trumped my second, I'll +1. While minor, consistency with expected platform behavior is always a good thing.

Bob

Jason Birch wrote:
I'll second that (it got good discussion and was changed to accommodate) and vote +0


From: Bruce Dechant [[hidden email]]
Sent: Wednesday, November 15, 2006 10:00
To: [hidden email]
Subject: [mapguide-dev] Nominating MapGuide RFC 1

Hi All,

I would like to nominate the following RFC: http://wiki.osgeo.org/index.php/MapGuide_RFC_1_-_Commandline_Parameter_Changes

Thanks,

Bruce


--------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Nominating MapGuide RFC 1

Paul Spencer-2
+1 Paul Spencer

On 15-Nov-06, at 1:36 PM, Andy Morsell wrote:

> +1
>
> Andy Morsell
>
> From: Robert Bray [mailto:[hidden email]]
> Sent: Wednesday, November 15, 2006 10:26 AM
> To: [hidden email]
> Subject: Re: [mapguide-dev] Nominating MapGuide RFC 1
>
> Ok, since Jason trumped my second, I'll +1. While minor,  
> consistency with expected platform behavior is always a good thing.
>
> Bob
>
> Jason Birch wrote:
>> I'll second that (it got good discussion and was changed to  
>> accommodate) and vote +0
>>
>> From: Bruce Dechant [mailto:[hidden email]]
>> Sent: Wednesday, November 15, 2006 10:00
>> To: [hidden email]
>> Subject: [mapguide-dev] Nominating MapGuide RFC 1
>>
>> Hi All,
>>
>> I would like to nominate the following RFC: http://wiki.osgeo.org/ 
>> index.php/MapGuide_RFC_1_-_Commandline_Parameter_Changes
>>
>> Thanks,
>>
>> Bruce
>>
>
> ---------------------------------------------------------------------  
> To unsubscribe, e-mail: [hidden email] For  
> additional commands, e-mail: [hidden email]

+-----------------------------------------------------------------+
|Paul Spencer                          [hidden email]    |
+-----------------------------------------------------------------+
|Chief Technology Officer                                         |
|DM Solutions Group Inc                http://www.dmsolutions.ca/ |
+-----------------------------------------------------------------+





---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Nominating MapGuide RFC 1

Haris Kurtagic
+1
Haris

________________________________

From: Paul Spencer [mailto:[hidden email]]
Sent: Wed 11/15/2006 8:14 PM
To: [hidden email]
Subject: Re: [mapguide-dev] Nominating MapGuide RFC 1



+1 Paul Spencer

On 15-Nov-06, at 1:36 PM, Andy Morsell wrote:

> +1
>
> Andy Morsell
>
> From: Robert Bray [mailto:[hidden email]]
> Sent: Wednesday, November 15, 2006 10:26 AM
> To: [hidden email]
> Subject: Re: [mapguide-dev] Nominating MapGuide RFC 1
>
> Ok, since Jason trumped my second, I'll +1. While minor,
> consistency with expected platform behavior is always a good thing.
>
> Bob
>
> Jason Birch wrote:
>> I'll second that (it got good discussion and was changed to
>> accommodate) and vote +0
>>
>> From: Bruce Dechant [mailto:[hidden email]]
>> Sent: Wednesday, November 15, 2006 10:00
>> To: [hidden email]
>> Subject: [mapguide-dev] Nominating MapGuide RFC 1
>>
>> Hi All,
>>
>> I would like to nominate the following RFC: http://wiki.osgeo.org/
>> index.php/MapGuide_RFC_1_-_Commandline_Parameter_Changes
>>
>> Thanks,
>>
>> Bruce
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email] For
> additional commands, e-mail: [hidden email]
+-----------------------------------------------------------------+
|Paul Spencer                          [hidden email]    |
+-----------------------------------------------------------------+
|Chief Technology Officer                                         |
|DM Solutions Group Inc                http://www.dmsolutions.ca/ |
+-----------------------------------------------------------------+





---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

winmail.dat (7K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Nominating MapGuide RFC 1

Tom Fukushima
In reply to this post by Bruce Dechant
Re: [mapguide-dev] Nominating MapGuide RFC 1
+1 Tom


From: Haris Kurtagic [mailto:[hidden email]]
Sent: Wednesday, November 15, 2006 2:02 PM
To: [hidden email]
Subject: RE: [mapguide-dev] Nominating MapGuide RFC 1

+1
Haris


From: Paul Spencer [mailto:[hidden email]]
Sent: Wed 11/15/2006 8:14 PM
To: [hidden email]
Subject: Re: [mapguide-dev] Nominating MapGuide RFC 1

+1 Paul Spencer

On 15-Nov-06, at 1:36 PM, Andy Morsell wrote:


> +1
>
> Andy Morsell
>
> From: Robert Bray [[hidden email]]
> Sent: Wednesday, November 15, 2006 10:26 AM
> To: [hidden email]
> Subject: Re: [mapguide-dev] Nominating MapGuide RFC 1
>
> Ok, since Jason trumped my second, I'll +1. While minor, 
> consistency with expected platform behavior is always a good thing.
>
> Bob
>
> Jason Birch wrote:
>> I'll second that (it got good discussion and was changed to 
>> accommodate) and vote +0
>>
>> From: Bruce Dechant [[hidden email]]
>> Sent: Wednesday, November 15, 2006 10:00
>> To: [hidden email]
>> Subject: [mapguide-dev] Nominating MapGuide RFC 1
>>
>> Hi All,
>>
>> I would like to nominate the following RFC: http://wiki.osgeo.org/
>> index.php/MapGuide_RFC_1_-_Commandline_Parameter_Changes
>>
>> Thanks,
>>
>> Bruce
>>
>
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: [hidden email] For 
> additional commands, e-mail: [hidden email]

+-----------------------------------------------------------------+
|Paul Spencer                          [hidden email]    |
+-----------------------------------------------------------------+
|Chief Technology Officer                                         |
|DM Solutions Group Inc                http://www.dmsolutions.ca/ |
+-----------------------------------------------------------------+





---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

GetLocalizedString

Flipper
Re: [mapguide-dev] Nominating MapGuide RFC 1

Looking at the Last line of the Selected Code         “$unitsType = GetLocalizedString("DISTANCEMETERS", $locale);”

What is happening here??? Im not a PHP programmer and I cant find a function Called GetLocalizedString anywhere….

…What would this be in a Map with no Coordsys? Or is that Irrelevant?

 

 

 

//get the map extent and calculate the scale factor

        //

        $mapExtent = $map->GetMapExtent();

        $srs = $map->GetMapSRS();

        if($srs != "")

        {

            $csFactory = new MgCoordinateSystemFactory();

            $cs = $csFactory->Create($srs);

            $metersPerUnit = $cs->ConvertCoordinateSystemUnitsToMeters(1.0);

            $unitsType = $cs->GetUnits();

        }

        else

        {

            $metersPerUnit = 1.0;

            $unitsType = GetLocalizedString("DISTANCEMETERS", $locale);

        }

Reply | Threaded
Open this post in threaded view
|

RE: GetLocalizedString

weltonw
Re: [mapguide-dev] Nominating MapGuide RFC 1
It's a static helper method used to look up a localized string by name (name="DISTANCEMETERS" in this case).  The source for the method (not particularly interesting) is in the file PhpLocalizer.cpp in this folder:
 
 
The localized strings are stored in resource files, and the locale argument specifies which file to use.  In the open source vault the resource files are located in this folder:
 
 
Don't know offhand where the web tier install actually puts them - look for a "localized" folder.
 
The vault only contains the English resource file, named "en".  Using that locale, the returned string in this example would be "Meters".  The coordinate system doesn't come into play.
 
Walt
 

From: Scott Hameister [mailto:[hidden email]]
Sent: Thursday, November 16, 2006 2:01 AM
To: [hidden email]
Subject: [mapguide-dev] GetLocalizedString

Looking at the Last line of the Selected Code         “$unitsType = GetLocalizedString("DISTANCEMETERS", $locale);”

What is happening here??? Im not a PHP programmer and I cant find a function Called GetLocalizedString anywhere….

…What would this be in a Map with no Coordsys? Or is that Irrelevant?

 

 

 

//get the map extent and calculate the scale factor

        //

        $mapExtent = $map->GetMapExtent();

        $srs = $map->GetMapSRS();

        if($srs != "")

        {

            $csFactory = new MgCoordinateSystemFactory();

            $cs = $csFactory->Create($srs);

            $metersPerUnit = $cs->ConvertCoordinateSystemUnitsToMeters(1.0);

            $unitsType = $cs->GetUnits();

        }

        else

        {

            $metersPerUnit = 1.0;

            $unitsType = GetLocalizedString("DISTANCEMETERS", $locale);

        }