Jelajahi Sumber

getCode -> getcode

Jachym Cepicky 14 tahun lalu
induk
melakukan
473f23199a
2 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 2 2
      wcs/__init__.py
  2. 1 1
      wfs/__init__.py

+ 2 - 2
wcs/__init__.py

@@ -58,10 +58,10 @@ class WCS(OWS):
                 extent = None
                 # processing
                 if layer.crsOptions:
-                    lyrobj.setProjection(layer.crsOptions[0].getCode())
+                    lyrobj.setProjection(layer.crsOptions[0].getcode())
                     extent = self.getLayerExtent(layer,layer.crsOptions[0])
                 elif  layer.supportedCRS:
-                    lyrobj.setProjection(layer.supportedCRS[0].getCode())
+                    lyrobj.setProjection(layer.supportedCRS[0].getcode())
                     extent = self.getLayerExtent(layer,layer.supportedCRS[0])
                 else:
                     sr = osr.SpatialReference()

+ 1 - 1
wfs/__init__.py

@@ -81,7 +81,7 @@ class WFS(OWS):
                 continue
 
             #lyrobj.setProjection(self.__getLayerCrs(layer.crsOptions))
-            lyrobj.setProjection(layer.crsOptions[0].getCode())
+            lyrobj.setProjection(layer.crsOptions[0].getfode())
 
             lyrobj.dump = mapscript.MS_TRUE 
             lyrobj.template = "foo"