def get_feature_type_info(self):
        """
        Gets FeatureType as a python dict.

        Transforms feature_name info into python dict.
        """
        caps = self.get_capabilities()
        if caps is None:
            return None

        el = caps.find('{http://www.opengis.net/wfs}FeatureTypeList')
        for e in el.findall('{http://www.opengis.net/wfs}FeatureType'):
            if e.find('{http://www.opengis.net/wfs}Name').text == self._feature_name:
                # transform into python dict
                # <Name>sample</Name>
                # <Abstract/>
                # <LatLongBoundingBox maxx="1" maxy="5" ... />
                #
                # becomes:
                #
                # {'Name'               :'sample',
                #  'Abtract'            : None,
                #  'LatLongBoundingBox' : {'maxx':1, 'maxy':5 ... }}
                #
                d = {sube.tag[28:]:sube.text or sube.attrib or None for sube in e.getchildren()}

                # transform LatLongBoundingBox into a Shapely box
                llbb = {k:round(float(v), 4) for k,v in d['LatLongBoundingBox'].iteritems()}
                d['LatLongBoundingBox'] = box(llbb['minx'], llbb['miny'], llbb['maxx'], llbb['maxy'])
                return d

        return None
def get_feature_type_info ( self ) : caps = self . get_capabilities ( ) if caps is None : return None el = caps . find ( '{http://www.opengis.net/wfs}FeatureTypeList' ) for e in el . findall ( '{http://www.opengis.net/wfs}FeatureType' ) : if e . find ( '{http://www.opengis.net/wfs}Name' ) . text == self . _feature_name : d = { sube . tag [ 28 : ] : sube . text or sube . attrib or None for sube in e . getchildren ( ) } llbb = { k : round ( float ( v ) , 4 ) for k , v in d [ 'LatLongBoundingBox' ] . iteritems ( ) } d [ 'LatLongBoundingBox' ] = box ( llbb [ 'minx' ] , llbb [ 'miny' ] , llbb [ 'maxx' ] , llbb [ 'maxy' ] ) return d return None
Gets FeatureType as a python dict.

        Transforms feature_name info into python dict.