Changeset 660

Show
Ignore:
Timestamp:
04/11/07 09:53:36
Author:
hobu
Message:

make sure we work for getfeature requests that return content > 32000

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OWSLib/trunk/owslib/wfs.py

    r650 r660  
    116116        if featureversion: request['featureversion'] = str(featureversion) 
    117117        if maxfeatures: request['maxfeatures'] = str(maxfeatures) 
    118          
     118 
    119119        data = urlencode(request) 
     120 
    120121        if method == 'Post': 
    121122            u = urlopen(base_url, data=data) 
     
    133134            have_read = True 
    134135            length = len(data) 
    135              
     136      
    136137        if length < 32000: 
    137138            if not have_read: 
     
    144145            return StringIO(data) 
    145146        else: 
     147            if have_read: 
     148                return StringIO(data) 
    146149            return u 
    147150