def create_featuretype(self, feature_type_name, data_store_name='PostGIS', alias=None):
        """
        Create a featuretype.

        @param feature_type_name: The name of the feature type.
        @keyword data_store_name: Optional. The name of the datastore. Defaults to 'PostGIS'
        @keyword alias: Optional. The new feature type is an alias for this names feature type.
        @returns: A flag indicating if the feature type was successfully created.
        """
        feature_type_url = '/geoserver/rest/workspaces/%s/datastores/%s/featuretypes' % (self.ns, data_store_name)

        feature_type_obj = SpatialUtils.feature_template(feature_type_name, alias=alias)
        return self._check_spatial_resource(feature_type_url, feature_type_name, feature_type_obj)
dataset/ETHPy150Open PublicMapping/DistrictBuilder/django/publicmapping/redistricting/config.py/SpatialUtils.create_featuretype/original