Bug when featureType == 1.. Use -1 as invalid value.