Skip to content

Commit

Permalink
some modifications to vector class
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Bierbower authored and Will Bierbower committed Apr 9, 2015
1 parent c0b47ed commit b501027
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fauxgeo/vector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Raster Class
Vector Class
'''

import os
Expand Down Expand Up @@ -85,7 +85,7 @@ def _delete(self):
os.remove(fp+ext)

def __str__(self):
return self.uri
return "<vector object at " + self.uri + ">"

def __len__(self):
return self.feature_count()
Expand Down Expand Up @@ -114,8 +114,8 @@ def __contains__(self):
def __repr__(self):
raise NotImplementedError

def _repr_png_(self):
raise NotImplementedError
def _repr_svg_(self):
return self.get_geometry()._repr_svg_()

def save_vector(self, uri):
src_uri = os.path.splitext(self.uri)[0]
Expand Down

0 comments on commit b501027

Please sign in to comment.