(self, featuretype)
return self._check_spatial_resource(style_url, nsfeaturetype,
                                            style_obj)
Check Geoserver to see if a named style exists. Creates the style if not.

        @returns: True if the object exists or was created. False on error.
Check Geoserver to see if a named style exists. Creates the style if not.
Check Geoserver to see if a named style exists . Creates the style if not .
def create_style(self, featuretype):
        """
        Check Geoserver to see if a named style exists. Creates the style if not.

        @returns: True if the object exists or was created. False on error.
        """
        nsfeaturetype = '%s:%s' % (
            self.ns,
            featuretype,
        )
        style_obj = {
            'style': {
                'name': nsfeaturetype,
                'filename': '%s.sld' % nsfeaturetype
            }
        }

        # Create the styles for the demographic layers
        style_url = '%s/rest/styles' % self.origin

        # Get or create the spatial style
        return self._check_spatial_resource(style_url, nsfeaturetype,
                                            style_obj)
def create_style ( self , featuretype ) : nsfeaturetype = '%s:%s' % ( self . ns , featuretype , ) style_obj = { 'style' : { 'name' : nsfeaturetype , 'filename' : '%s.sld' % nsfeaturetype } } # Create the styles for the demographic layers style_url = '%s/rest/styles' % self . origin # Get or create the spatial style return self . _check_spatial_resource ( style_url , nsfeaturetype , style_obj )