def to_proj4(self, as_dict=False):
        """
        Returns the CS as a proj4 formatted string or dict.

        Arguments:

        - **as_dict** (optional): If True, returns the proj4 string as a dict (defaults to False).
        """
        string = "%s" % self.proj.to_proj4()
        string += " %s" % self.geogcs.to_proj4(toplevel=False)
        string += " " + " ".join(param.to_proj4() for param in self.params)
        string += " %s" % self.unit.to_proj4()
        string += " +axis=" + self.twin_ax[0].proj4 + self.twin_ax[1].proj4 + "u" # up set as default because only proj4 can set it I think...
        string += " +no_defs"
        
        if as_dict:
            return dict([
                        entry.lstrip('+').split('=')
                        for entry in string.split()
                        if entry != "+no_defs"
                         ])
        else:
            return string
def to_proj4(self, as_dict=False):
        """
        Returns the CS as a proj4 formatted string or dict.

        Arguments:

        - **as_dict** (optional): If True, returns the proj4 string as a dict (defaults to False).
        """
        string = "%s" % self.proj.to_proj4()
        string += " %s" % self.geogcs.to_proj4(toplevel=False)
        string += " " + " ".join(param.to_proj4() for param in self.params)
        string += " %s" % self.unit.to_proj4()
        string += " +axis=" + self.twin_ax[0].proj4 + self.twin_ax[1].proj4 + "u" # up set as default because only proj4 can set it I think...
        string += " +no_defs"
        
        if as_dict:
            return dict([
                        entry.lstrip('+').split('=')
                        for entry in string.split()
                        if entry != "+no_defs"
                         ])
        else:
            return string
def to_proj4 ( self , as_dict = False ) : string = "%s" % self . proj . to_proj4 ( ) string += " %s" % self . geogcs . to_proj4 ( toplevel = False ) string += " " + " " . join ( param . to_proj4 ( ) for param in self . params ) string += " %s" % self . unit . to_proj4 ( ) string += " +axis=" + self . twin_ax [ 0 ] . proj4 + self . twin_ax [ 1 ] . proj4 + "u" # up set as default because only proj4 can set it I think... string += " +no_defs" if as_dict : return dict ( [ entry . lstrip ( '+' ) . split ( '=' ) for entry in string . split ( ) if entry != "+no_defs" ] ) else : return string
Returns the CS as a proj4 formatted string or dict.

        Arguments:

        - **as_dict** (optional): If True, returns the proj4 string as a dict (defaults to False).
Returns the CS as a proj4 formatted string or dict .