Changeset 3243 for DPPP


Ignore:
Timestamp:
18/01/08 09:05:24 (12 years ago)
Author:
mkochan
Message:

Bug fix: 1) Using correct resolution for getting map from WMS -- 960x480, there are twice as many longitude degrees as there are latitude ones. 2) Exporting float degrees to WMS rather than int-rounded degrees.

Location:
DPPP/kml/csml2kml
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • DPPP/kml/csml2kml/python/csmlwrappers.py

    r3204 r3243  
    66         
    77    def getBBox(self): 
    8         north = int(float(self.feature.boundedBy.upperCorner.CONTENT.split()[1])) 
    9         south = int(float(self.feature.boundedBy.lowerCorner.CONTENT.split()[1])) 
    10         east  = int(float(self.feature.boundedBy.upperCorner.CONTENT.split()[0]))         
    11         west  = int(float(self.feature.boundedBy.lowerCorner.CONTENT.split()[0])) 
     8        north = float(self.feature.boundedBy.upperCorner.CONTENT.split()[1]) 
     9        south = float(self.feature.boundedBy.lowerCorner.CONTENT.split()[1]) 
     10        east  = float(self.feature.boundedBy.upperCorner.CONTENT.split()[0])         
     11        west  = float(self.feature.boundedBy.lowerCorner.CONTENT.split()[0]) 
    1212        bbox = BBox(north,south,east,west) 
    1313        return bbox 
     
    3131        self.west=west 
    3232    def str(self): 
    33         return "%d,%d,%d,%d" % (self.west, self.south, self.east, self.north) 
     33        return "%s,%s,%s,%s" % (str(self.west), str(self.south), str(self.east), str(self.north)) 
    3434 
    3535class PointSeriesFeatureWrapper(object): 
  • DPPP/kml/csml2kml/testdata/clim_10.csml2kml.conf.xml

    r3234 r3243  
    44    <ServiceVersion>1.1.1</ServiceVersion> 
    55    <ImageFormat>image/png</ImageFormat> 
    6     <ImageWidth>640</ImageWidth> 
     6    <ImageWidth>960</ImageWidth> 
    77    <ImageHeight>480</ImageHeight> 
    88    <CRS>EPSG:4326</CRS> 
Note: See TracChangeset for help on using the changeset viewer.