(geo_type, coordinates, properties, split_multi_geometries)
return all_features
Returns a JSON object that represents a GeoJSON feature
        :param geo_type: 
        :param coordinates: 
        :param properties: 
        :return:
Returns a JSON object that represents a GeoJSON feature
        :param geo_type: 
        :param coordinates: 
        :param properties: 
        :return:
Returns a JSON object that represents a GeoJSON feature : param geo_type : : param coordinates : : param properties : : return :
def _create_geojson_feature_from_coordinates(geo_type, coordinates, properties, split_multi_geometries):
        """
        Returns a JSON object that represents a GeoJSON feature
        :param geo_type: 
        :param coordinates: 
        :param properties: 
        :return: 
        """
        assert coordinates is not None
        all_features = []

        coordinate_sets = [coordinates]

        type_string = geo_type
        is_multi_geometry = is_multi(geo_type, coordinates)
        if is_multi_geometry and not split_multi_geometries:
            type_string = "Multi{}".format(geo_type)
        elif is_multi_geometry and split_multi_geometries:
            coordinate_sets = []
            for coord_array in coordinates:
                coordinate_sets.append(coord_array)

        for c in coordinate_sets:
            feature_json = {
                "type": "Feature",
                "geometry": {"type": type_string, "coordinates": c},
                "properties": properties,
            }
            all_features.append(feature_json)

        return all_features
def _create_geojson_feature_from_coordinates ( geo_type , coordinates , properties , split_multi_geometries ) : assert coordinates is not None all_features = [ ] coordinate_sets = [ coordinates ] type_string = geo_type is_multi_geometry = is_multi ( geo_type , coordinates ) if is_multi_geometry and not split_multi_geometries : type_string = "Multi{}" . format ( geo_type ) elif is_multi_geometry and split_multi_geometries : coordinate_sets = [ ] for coord_array in coordinates : coordinate_sets . append ( coord_array ) for c in coordinate_sets : feature_json = { "type" : "Feature" , "geometry" : { "type" : type_string , "coordinates" : c } , "properties" : properties , } all_features . append ( feature_json ) return all_features