<s> import sys <EOL> import shapefile <EOL> from shapely . geometry import shape <EOL> shp = shapefile . Reader ( sys . argv [ <NUM_LIT:1> ] ) <EOL> print "<STR_LIT>" , shp . numRecords , "<STR_LIT>" <EOL> pos = None <EOL> count = <NUM_LIT:0> <EOL> for record in shp . records ( ) : <EOL> print "<STR_LIT:U+0020>" , record [ <NUM_LIT:1> ] <EOL> if record [ <NUM_LIT:1> ] == sys . argv [ <NUM_LIT:2> ] : <EOL> pos = count <EOL> count += <NUM_LIT:1> <EOL> if pos is None : <EOL> print >> sys . stderr , sys . argv [ <NUM_LIT:2> ] , "<STR_LIT>" <EOL> sys . exit ( ) <EOL> print >> sys . stderr , "<STR_LIT>" , sys . argv [ <NUM_LIT:2> ] , "<STR_LIT>" <EOL> manhattan = shape ( shp . shapes ( ) [ pos ] ) <EOL> print manhattan . contains ( manhattan . centroid ) </s>
