Changeset 3180


Ignore:
Timestamp:
Jun 19, 2006, 4:58:39 PM (18 years ago)
Author:
duncan
Message:

adding comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pmesh/mesh.py

    r3177 r3180  
    600600        If geo_reference is None the data is asumed to be absolute
    601601        """
     602        #FIXME: have the user set the tag and resolution here,
     603        # but still return the instance, just in case.
    602604        [[x,y]] = self.geo_reference.change_points_geo_ref([x,y],
    603605                                                 points_geo_ref=geo_reference)
     
    610612
    611613   
    612     def add_vertices(self, data):
    613         data = ensure_geospatial(data)
     614    def add_vertices(self, point_data):
     615        """
     616        Add user vertices.
     617
     618        The point_data can be a list of (x,y) values, a numeric
     619        array or a geospatial_data instance.
     620        """
     621        point_data = ensure_geospatial(point_data)
    614622
    615623        # get points relative to the mesh geo_ref
    616         points = data.get_data_points(geo_reference=self.geo_reference)
     624        points = point_data.get_data_points(geo_reference=self.geo_reference)
    617625        #FIXME finish....
    618626   
Note: See TracChangeset for help on using the changeset viewer.