Java Code Examples for mil.nga.sf.Point#hasM()

The following examples show how to use mil.nga.sf.Point#hasM() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: geopackage-android   File: FeatureUtils.java    License: MIT License 5 votes vote down vote up
/**
 * Update a point
 *
 * @param point
 */
private static void updatePoint(Point point) {
    point.setX(POINT_UPDATED_X);
    point.setY(POINT_UPDATED_Y);
    if (point.hasZ()) {
        point.setZ(POINT_UPDATED_Z);
    }
    if (point.hasM()) {
        point.setM(POINT_UPDATED_M);
    }
}
 
Example 2
Source Project: geopackage-android   File: FeatureUtils.java    License: MIT License 5 votes vote down vote up
/**
 * Validate an updated point
 *
 * @param point
 */
private static void validateUpdatedPoint(Point point) {
    TestCase.assertEquals(POINT_UPDATED_X, point.getX());
    TestCase.assertEquals(POINT_UPDATED_Y, point.getY());
    if (point.hasZ()) {
        TestCase.assertEquals(POINT_UPDATED_Z, point.getZ());
    }
    if (point.hasM()) {
        TestCase.assertEquals(POINT_UPDATED_M, point.getM());
    }
}
 
Example 3
Source Project: geopackage-java   File: FeatureUtils.java    License: MIT License 5 votes vote down vote up
/**
 * Update a point
 * 
 * @param point
 */
private static void updatePoint(Point point) {
	point.setX(POINT_UPDATED_X);
	point.setY(POINT_UPDATED_Y);
	if (point.hasZ()) {
		point.setZ(POINT_UPDATED_Z);
	}
	if (point.hasM()) {
		point.setM(POINT_UPDATED_M);
	}
}
 
Example 4
Source Project: geopackage-java   File: FeatureUtils.java    License: MIT License 5 votes vote down vote up
/**
 * Validate an updated point
 * 
 * @param point
 */
private static void validateUpdatedPoint(Point point) {
	TestCase.assertEquals(POINT_UPDATED_X, point.getX());
	TestCase.assertEquals(POINT_UPDATED_Y, point.getY());
	if (point.hasZ()) {
		TestCase.assertEquals(POINT_UPDATED_Z, point.getZ());
	}
	if (point.hasM()) {
		TestCase.assertEquals(POINT_UPDATED_M, point.getM());
	}
}