private int getXIndex(GeoParams geoParams, STTPoint sttPoint) {

		double delta_x;
		if (geoParams.geoBoundNW.longitude > geoParams.geoBoundSE.longitude && 
				geoParams.geoBoundNW.longitude > sttPoint.getLatLong().longitude) {
			//Our point is wrapped around 180/-180
			if (geoParams.geoBoundSE.longitude > sttPoint.getLatLong().longitude) {
				delta_x =  360 - geoParams.geoBoundNW.longitude + sttPoint.getLatLong().longitude;
			} else {
				//Outside of the bounding box
				return -1;
			}
		} else {
			if (geoParams.geoBoundNW.longitude > geoParams.geoBoundSE.longitude || 
					geoParams.geoBoundSE.longitude < sttPoint.getLatLong().longitude) {
				//Outside of the bounding box
				return -1;
			} else {
			delta_x = geoParams.geoBoundNW.longitude - sttPoint.getLatLong().longitude;
			}
		}
		return (int) Math.round(Math.abs((delta_x/geoParams.geoResolutionX) +.5));
	}