• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java SpatialReferenceSystem类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中mil.nga.geopackage.core.srs.SpatialReferenceSystem的典型用法代码示例。如果您正苦于以下问题:Java SpatialReferenceSystem类的具体用法?Java SpatialReferenceSystem怎么用?Java SpatialReferenceSystem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

SpatialReferenceSystem类属于mil.nga.geopackage.core.srs包,在下文中一共展示了SpatialReferenceSystem类的35个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: FeatureDao

点赞 3

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Constructor
 *
 * @param database
 * @param db
 * @param featureDb
 * @param geometryColumns
 * @param table
 */
public FeatureDao(String database, GeoPackageConnection db, FeatureConnection featureDb, GeometryColumns geometryColumns,
                  FeatureTable table) {
    super(database, db, featureDb, table);

    this.featureDb = featureDb;
    this.geometryColumns = geometryColumns;
    if (geometryColumns.getContents() == null) {
        throw new GeoPackageException(GeometryColumns.class.getSimpleName()
                + " " + geometryColumns.getId() + " has null "
                + Contents.class.getSimpleName());
    }
    if (geometryColumns.getSrs() == null) {
        throw new GeoPackageException(GeometryColumns.class.getSimpleName()
                + " " + geometryColumns.getId() + " has null "
                + SpatialReferenceSystem.class.getSimpleName());
    }

    projection = ProjectionFactory.getProjection(geometryColumns.getSrs());
}
 

开发者ID:ngageoint,
项目名称:geopackage-android,
代码行数:29,
代码来源:FeatureDao.java

示例2: testCreateFeatureTableWithMetadata

点赞 3

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Test create feature table with metadata
 * 
 * @param geoPackage
 * @throws SQLException
 */
public static void testCreateFeatureTableWithMetadata(GeoPackage geoPackage)
		throws SQLException {

	GeometryColumns geometryColumns = new GeometryColumns();
	geometryColumns.setId(new TableColumnKey("feature_metadata", "geom"));
	geometryColumns.setGeometryType(GeometryType.POINT);
	geometryColumns.setZ((byte) 1);
	geometryColumns.setM((byte) 0);

	BoundingBox boundingBox = new BoundingBox(-90, -45, 90, 45);

	SpatialReferenceSystem srs = geoPackage.getSpatialReferenceSystemDao()
			.createWebMercator();
	geometryColumns = geoPackage.createFeatureTableWithMetadata(
			geometryColumns, boundingBox, srs.getId());

	validateFeatureTableWithMetadata(geoPackage, geometryColumns, null,
			null);
}
 

开发者ID:ngageoint,
项目名称:geopackage-android,
代码行数:26,
代码来源:GeoPackageTestUtils.java

示例3: testCreateFeatureTableWithMetadataIdColumn

点赞 3

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Test create feature table with metadata and id column
 * 
 * @param geoPackage
 * @throws SQLException
 */
public static void testCreateFeatureTableWithMetadataIdColumn(
		GeoPackage geoPackage) throws SQLException {

	GeometryColumns geometryColumns = new GeometryColumns();
	geometryColumns.setId(new TableColumnKey("feature_metadata2", "geom2"));
	geometryColumns.setGeometryType(GeometryType.POINT);
	geometryColumns.setZ((byte) 1);
	geometryColumns.setM((byte) 0);

	BoundingBox boundingBox = new BoundingBox(-90, -45, 90, 45);

	SpatialReferenceSystem srs = geoPackage.getSpatialReferenceSystemDao()
			.createWebMercator();
	String idColumn = "my_id";
	geometryColumns = geoPackage.createFeatureTableWithMetadata(
			geometryColumns, idColumn, boundingBox, srs.getId());

	validateFeatureTableWithMetadata(geoPackage, geometryColumns, idColumn,
			null);
}
 

开发者ID:ngageoint,
项目名称:geopackage-android,
代码行数:27,
代码来源:GeoPackageTestUtils.java

示例4: testCreateFeatureTableWithMetadataAdditionalColumns

点赞 3

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Test create feature table with metadata and additional columns
 * 
 * @param geoPackage
 * @throws SQLException
 */
public static void testCreateFeatureTableWithMetadataAdditionalColumns(
		GeoPackage geoPackage) throws SQLException {

	GeometryColumns geometryColumns = new GeometryColumns();
	geometryColumns.setId(new TableColumnKey("feature_metadata3", "geom3"));
	geometryColumns.setGeometryType(GeometryType.POINT);
	geometryColumns.setZ((byte) 1);
	geometryColumns.setM((byte) 0);

	BoundingBox boundingBox = new BoundingBox(-90, -45, 90, 45);

	List<FeatureColumn> additionalColumns = getFeatureColumns();

	SpatialReferenceSystem srs = geoPackage.getSpatialReferenceSystemDao()
			.createWebMercator();
	geometryColumns = geoPackage.createFeatureTableWithMetadata(
			geometryColumns, additionalColumns, boundingBox, srs.getId());

	validateFeatureTableWithMetadata(geoPackage, geometryColumns, null,
			additionalColumns);
}
 

开发者ID:ngageoint,
项目名称:geopackage-android,
代码行数:28,
代码来源:GeoPackageTestUtils.java

示例5: testCreateFeatureTableWithMetadataIdColumnAdditionalColumns

点赞 3

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Test create feature table with metadata, id column, and additional
 * columns
 * 
 * @param geoPackage
 * @throws SQLException
 */
public static void testCreateFeatureTableWithMetadataIdColumnAdditionalColumns(
		GeoPackage geoPackage) throws SQLException {

	GeometryColumns geometryColumns = new GeometryColumns();
	geometryColumns.setId(new TableColumnKey("feature_metadata4", "geom4"));
	geometryColumns.setGeometryType(GeometryType.POINT);
	geometryColumns.setZ((byte) 1);
	geometryColumns.setM((byte) 0);

	BoundingBox boundingBox = new BoundingBox(-90, -45, 90, 45);

	List<FeatureColumn> additionalColumns = getFeatureColumns();

	SpatialReferenceSystem srs = geoPackage.getSpatialReferenceSystemDao()
			.createWebMercator();
	String idColumn = "my_other_id";
	geometryColumns = geoPackage.createFeatureTableWithMetadata(
			geometryColumns, idColumn, additionalColumns, boundingBox,
			srs.getId());

	validateFeatureTableWithMetadata(geoPackage, geometryColumns, idColumn,
			additionalColumns);
}
 

开发者ID:ngageoint,
项目名称:geopackage-android,
代码行数:31,
代码来源:GeoPackageTestUtils.java

示例6: getSrs

点赞 3

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Get the Spatial Reference System by id
 *
 * @param srsId
 * @return
 */
private SpatialReferenceSystem getSrs(long srsId) {
	SpatialReferenceSystem srs;
	try {
		srs = getSpatialReferenceSystemDao().queryForId(srsId);
	} catch (SQLException e1) {
		throw new GeoPackageException(
				"Failed to retrieve Spatial Reference System. SRS ID: "
						+ srsId);
	}
	if (srs == null) {
		throw new GeoPackageException(
				"Spatial Reference System could not be found. SRS ID: "
						+ srsId);
	}
	return srs;
}
 

开发者ID:ngageoint,
项目名称:geopackage-core-java
代码行数:23,
代码来源:GeoPackageCoreImpl.java

示例7: createRequired

点赞 3

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Create the minimum required GeoPackage tables
 */
public void createRequired() {

	// Create the Spatial Reference System table (spec Requirement 10)
	createSpatialReferenceSystem();

	// Create the Contents table (spec Requirement 13)
	createContents();

	// Create the required Spatial Reference Systems (spec Requirement
	// 11)
	try {
		SpatialReferenceSystemDao dao = DaoManager.createDao(
				db.getConnectionSource(), SpatialReferenceSystem.class);
		dao.createWgs84();
		dao.createUndefinedCartesian();
		dao.createUndefinedGeographic();
	} catch (SQLException e) {
		throw new GeoPackageException(
				"Error creating default required Spatial Reference Systems",
				e);
	}
}
 

开发者ID:ngageoint,
项目名称:geopackage-core-java
代码行数:26,
代码来源:GeoPackageTableCreator.java

示例8: FeatureDao

点赞 3

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Constructor
 * 
 * @param database
 * @param db
 * @param featureDb
 * @param geometryColumns
 * @param table
 */
public FeatureDao(String database, GeoPackageConnection db,
		FeatureConnection featureDb, GeometryColumns geometryColumns,
		FeatureTable table) {
	super(database, db, featureDb, table);

	this.featureDb = featureDb;
	this.geometryColumns = geometryColumns;
	if (geometryColumns.getContents() == null) {
		throw new GeoPackageException(GeometryColumns.class.getSimpleName()
				+ " " + geometryColumns.getId() + " has null "
				+ Contents.class.getSimpleName());
	}
	if (geometryColumns.getSrs() == null) {
		throw new GeoPackageException(GeometryColumns.class.getSimpleName()
				+ " " + geometryColumns.getId() + " has null "
				+ SpatialReferenceSystem.class.getSimpleName());
	}

	projection = ProjectionFactory.getProjection(geometryColumns.getSrs());
}
 

开发者ID:ngageoint,
项目名称:geopackage-java
代码行数:30,
代码来源:FeatureDao.java

示例9: testCreateFeatureTableWithMetadata

点赞 3

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Test create feature table with metadata
 * 
 * @param geoPackage
 * @throws SQLException
 */
public static void testCreateFeatureTableWithMetadata(GeoPackage geoPackage)
		throws SQLException {

	GeometryColumns geometryColumns = new GeometryColumns();
	geometryColumns.setId(new TableColumnKey("feature_metadata", "geom"));
	geometryColumns.setGeometryType(GeometryType.POINT);
	geometryColumns.setZ((byte) 1);
	geometryColumns.setM((byte) 0);

	BoundingBox boundingBox = new BoundingBox(-90, 45, 90, 45);

	SpatialReferenceSystem srs = geoPackage.getSpatialReferenceSystemDao()
			.createWebMercator();
	geometryColumns = geoPackage.createFeatureTableWithMetadata(
			geometryColumns, boundingBox, srs.getId());

	validateFeatureTableWithMetadata(geoPackage, geometryColumns, null,
			null);
}
 

开发者ID:ngageoint,
项目名称:geopackage-java
代码行数:26,
代码来源:GeoPackageTestUtils.java

示例10: testCreateFeatureTableWithMetadataIdColumn

点赞 3

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Test create feature table with metadata and id column
 * 
 * @param geoPackage
 * @throws SQLException
 */
public static void testCreateFeatureTableWithMetadataIdColumn(
		GeoPackage geoPackage) throws SQLException {

	GeometryColumns geometryColumns = new GeometryColumns();
	geometryColumns.setId(new TableColumnKey("feature_metadata2", "geom2"));
	geometryColumns.setGeometryType(GeometryType.POINT);
	geometryColumns.setZ((byte) 1);
	geometryColumns.setM((byte) 0);

	BoundingBox boundingBox = new BoundingBox(-90, 45, 90, 45);

	SpatialReferenceSystem srs = geoPackage.getSpatialReferenceSystemDao()
			.createWebMercator();
	String idColumn = "my_id";
	geometryColumns = geoPackage.createFeatureTableWithMetadata(
			geometryColumns, idColumn, boundingBox, srs.getId());

	validateFeatureTableWithMetadata(geoPackage, geometryColumns, idColumn,
			null);
}
 

开发者ID:ngageoint,
项目名称:geopackage-java
代码行数:27,
代码来源:GeoPackageTestUtils.java

示例11: testCreateFeatureTableWithMetadataAdditionalColumns

点赞 3

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Test create feature table with metadata and additional columns
 * 
 * @param geoPackage
 * @throws SQLException
 */
public static void testCreateFeatureTableWithMetadataAdditionalColumns(
		GeoPackage geoPackage) throws SQLException {

	GeometryColumns geometryColumns = new GeometryColumns();
	geometryColumns.setId(new TableColumnKey("feature_metadata", "geom"));
	geometryColumns.setGeometryType(GeometryType.POINT);
	geometryColumns.setZ((byte) 1);
	geometryColumns.setM((byte) 0);

	BoundingBox boundingBox = new BoundingBox(-90, 45, 90, 45);

	List<FeatureColumn> additionalColumns = getFeatureColumns();

	SpatialReferenceSystem srs = geoPackage.getSpatialReferenceSystemDao()
			.createWebMercator();
	geometryColumns = geoPackage.createFeatureTableWithMetadata(
			geometryColumns, additionalColumns, boundingBox, srs.getId());

	validateFeatureTableWithMetadata(geoPackage, geometryColumns, null,
			additionalColumns);
}
 

开发者ID:ngageoint,
项目名称:geopackage-java
代码行数:28,
代码来源:GeoPackageTestUtils.java

示例12: testCreateFeatureTableWithMetadataIdColumnAdditionalColumns

点赞 3

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Test create feature table with metadata, id column, and additional
 * columns
 * 
 * @param geoPackage
 * @throws SQLException
 */
public static void testCreateFeatureTableWithMetadataIdColumnAdditionalColumns(
		GeoPackage geoPackage) throws SQLException {

	GeometryColumns geometryColumns = new GeometryColumns();
	geometryColumns.setId(new TableColumnKey("feature_metadata", "geom"));
	geometryColumns.setGeometryType(GeometryType.POINT);
	geometryColumns.setZ((byte) 1);
	geometryColumns.setM((byte) 0);

	BoundingBox boundingBox = new BoundingBox(-90, 45, 90, 45);

	List<FeatureColumn> additionalColumns = getFeatureColumns();

	SpatialReferenceSystem srs = geoPackage.getSpatialReferenceSystemDao()
			.createWebMercator();
	String idColumn = "my_other_id";
	geometryColumns = geoPackage.createFeatureTableWithMetadata(
			geometryColumns, idColumn, additionalColumns, boundingBox,
			srs.getId());

	validateFeatureTableWithMetadata(geoPackage, geometryColumns, idColumn,
			additionalColumns);
}
 

开发者ID:ngageoint,
项目名称:geopackage-java,
代码行数:31,
代码来源:GeoPackageTestUtils.java

示例13: projectGeometry

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Project the geometry into the provided projection
 *
 * @param geometryData geometry data
 * @param projection   projection
 */
public void projectGeometry(GeoPackageGeometryData geometryData, Projection projection) {

    if (geometryData.getGeometry() != null) {

        try {
            SpatialReferenceSystemDao srsDao = DaoManager.createDao(featureDao.getDb().getConnectionSource(), SpatialReferenceSystem.class);
            int srsId = geometryData.getSrsId();
            SpatialReferenceSystem srs = srsDao.queryForId((long) srsId);

            if (!projection.equals(srs.getOrganization(), srs.getOrganizationCoordsysId())) {

                Projection geomProjection = ProjectionFactory.getProjection(srs);
                ProjectionTransform transform = geomProjection.getTransformation(projection);

                Geometry projectedGeometry = transform.transform(geometryData.getGeometry());
                geometryData.setGeometry(projectedGeometry);
                SpatialReferenceSystem projectionSrs = srsDao.getOrCreateCode(projection.getAuthority(), Long.parseLong(projection.getCode()));
                geometryData.setSrsId((int) projectionSrs.getSrsId());
            }
        } catch (SQLException e) {
            throw new GeoPackageException("Failed to project geometry to projection with Authority: "
                    + projection.getAuthority() + ", Code: " + projection.getCode(), e);
        }
    }

}
 

开发者ID:ngageoint,
项目名称:geopackage-android-map,
代码行数:33,
代码来源:FeatureInfoBuilder.java

示例14: getProjection

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Get the projection for the Spatial Reference System
 * 
 * @param srs
 *            spatial reference system
 * @return projection
 * @since 1.1.8
 */
public static Projection getProjection(SpatialReferenceSystem srs) {

	String authority = srs.getOrganization();
	long code = srs.getOrganizationCoordsysId();
	String definition = srs.getDefinition_12_063();
	if (definition == null) {
		definition = srs.getDefinition();
	}

	Projection projection = getProjection(authority, code, null, definition);

	return projection;
}
 

开发者ID:ngageoint,
项目名称:geopackage-core-java,
代码行数:22,
代码来源:ProjectionFactory.java

示例15: getDefinition

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Get the extension definition
 * 
 * @return definition
 */
public String getDefinition(long srsId) {
	String definition = connection.querySingleStringResult("SELECT "
			+ COLUMN_NAME + " FROM " + SpatialReferenceSystem.TABLE_NAME
			+ " WHERE " + SpatialReferenceSystem.COLUMN_SRS_ID + " = ?",
			new String[] { String.valueOf(srsId) });
	return definition;
}
 

开发者ID:ngageoint,
项目名称:geopackage-core-java,
代码行数:13,
代码来源:CrsWktExtension.java

示例16: createColumn

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Create the extension column
 */
private void createColumn() {
	connection.addColumn(SpatialReferenceSystem.TABLE_NAME, COLUMN_NAME,
			COLUMN_DEF);

	// Update the existing known SRS values
	updateDefinition(GeoPackageProperties.getIntegerProperty(
			PropertyConstants.WGS_84, PropertyConstants.SRS_ID),
			GeoPackageProperties.getProperty(PropertyConstants.WGS_84,
					PropertyConstants.DEFINITION_12_063));
	updateDefinition(
			GeoPackageProperties.getIntegerProperty(
					PropertyConstants.UNDEFINED_CARTESIAN,
					PropertyConstants.SRS_ID),
			GeoPackageProperties.getProperty(
					PropertyConstants.UNDEFINED_CARTESIAN,
					PropertyConstants.DEFINITION_12_063));
	updateDefinition(GeoPackageProperties.getIntegerProperty(
			PropertyConstants.UNDEFINED_GEOGRAPHIC,
			PropertyConstants.SRS_ID), GeoPackageProperties.getProperty(
			PropertyConstants.UNDEFINED_GEOGRAPHIC,
			PropertyConstants.DEFINITION_12_063));
	updateDefinition(GeoPackageProperties.getIntegerProperty(
			PropertyConstants.WEB_MERCATOR, PropertyConstants.SRS_ID),
			GeoPackageProperties.getProperty(
					PropertyConstants.WEB_MERCATOR,
					PropertyConstants.DEFINITION_12_063));
}
 

开发者ID:ngageoint,
项目名称:geopackage-core-java,
代码行数:31,
代码来源:CrsWktExtension.java

示例17: setSrs

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
public void setSrs(SpatialReferenceSystem srs) {
	this.srs = srs;
	if (srs != null) {
		srsId = srs.getId();
		srsName = srs.getSrsName();
	}
}
 

开发者ID:ngageoint,
项目名称:geopackage-core-java,
代码行数:8,
代码来源:GeometryColumnsSqlMm.java

示例18: getSpatialReferenceSystemDao

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public SpatialReferenceSystemDao getSpatialReferenceSystemDao() {
	SpatialReferenceSystemDao dao = createDao(SpatialReferenceSystem.class);
	dao.setCrsWktExtension(new CrsWktExtension(this));
	return dao;
}
 

开发者ID:ngageoint,
项目名称:geopackage-core-java,
代码行数:10,
代码来源:GeoPackageCoreImpl.java

示例19: validateMinimumTables

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Validate the GeoPackage has the minimum required tables
 * 
 * @param geoPackage
 */
public static void validateMinimumTables(GeoPackageCore geoPackage) {
	if (!hasMinimumTables(geoPackage)) {
		throw new GeoPackageException(
				"Invalid GeoPackage. Does not contain required tables: "
						+ SpatialReferenceSystem.TABLE_NAME + " & "
						+ Contents.TABLE_NAME + ", GeoPackage Name: "
						+ geoPackage.getName());
	}
}
 

开发者ID:ngageoint,
项目名称:geopackage-core-java,
代码行数:15,
代码来源:GeoPackageValidate.java

示例20: addSrs

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Add Spatial Reference System to the info
 *
 * @param info
 * @param srs
 */
private void addSrs(StringBuilder info, SpatialReferenceSystem srs) {
    info.append("\nSRS Name: ").append(srs.getSrsName());
    info.append("\nSRS ID: ").append(srs.getSrsId());
    info.append("\nOrganization: ").append(srs.getOrganization());
    info.append("\nCoordsys ID: ").append(srs.getOrganizationCoordsysId());
    info.append("\nDefinition: ").append(srs.getDefinition());
    info.append("\nDescription: ").append(srs.getDescription());
}
 

开发者ID:ngageoint,
项目名称:geopackage-mapcache-android,
代码行数:15,
代码来源:GeoPackageManagerFragment.java

示例21: textOutput

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Text output from a SRS
 * 
 * @param srs
 *            spatial reference system
 * @return text
 */
public String textOutput(SpatialReferenceSystem srs) {
	StringBuilder output = new StringBuilder();
	output.append("\tSRS " + SpatialReferenceSystem.COLUMN_ORGANIZATION
			+ ": " + srs.getOrganization());
	output.append("\n\tSRS "
			+ SpatialReferenceSystem.COLUMN_ORGANIZATION_COORDSYS_ID + ": "
			+ srs.getOrganizationCoordsysId());
	output.append("\n\tSRS " + SpatialReferenceSystem.COLUMN_DEFINITION
			+ ": " + srs.getDefinition());
	return output.toString();
}
 

开发者ID:ngageoint,
项目名称:geopackage-java,
代码行数:19,
代码来源:GeoPackageTextOutput.java

示例22: TileDao

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Constructor
 *
 * @param database
 * @param db
 * @param tileDb
 * @param tileMatrixSet
 * @param tileMatrices
 * @param table
 */
public TileDao(String database, GeoPackageConnection db, TileConnection tileDb, TileMatrixSet tileMatrixSet,
               List<TileMatrix> tileMatrices, TileTable table) {
    super(database, db, tileDb, table);

    this.tileDb = tileDb;
    this.tileMatrixSet = tileMatrixSet;
    this.tileMatrices = tileMatrices;
    this.widths = new double[tileMatrices.size()];
    this.heights = new double[tileMatrices.size()];

    projection = ProjectionFactory.getProjection(tileMatrixSet.getSrs());

    // Set the min and max zoom levels
    if (!tileMatrices.isEmpty()) {
        minZoom = tileMatrices.get(0).getZoomLevel();
        maxZoom = tileMatrices.get(tileMatrices.size() - 1).getZoomLevel();
    } else {
        minZoom = 0;
        maxZoom = 0;
    }

    // Populate the zoom level to tile matrix and the sorted tile widths and
    // heights
    for (int i = 0; i < tileMatrices.size(); i++) {
        TileMatrix tileMatrix = tileMatrices.get(i);
        zoomLevelToTileMatrix.put(tileMatrix.getZoomLevel(), tileMatrix);
        widths[tileMatrices.size() - i - 1] = tileMatrix.getPixelXSize()
                * tileMatrix.getTileWidth();
        heights[tileMatrices.size() - i - 1] = tileMatrix.getPixelYSize()
                * tileMatrix.getTileHeight();
    }

    if (tileMatrixSet.getContents() == null) {
        throw new GeoPackageException(TileMatrixSet.class.getSimpleName()
                + " " + tileMatrixSet.getId() + " has null "
                + Contents.class.getSimpleName());
    }
    if (tileMatrixSet.getSrs() == null) {
        throw new GeoPackageException(TileMatrixSet.class.getSimpleName()
                + " " + tileMatrixSet.getId() + " has null "
                + SpatialReferenceSystem.class.getSimpleName());
    }

}
 

开发者ID:ngageoint,
项目名称:geopackage-android,
代码行数:55,
代码来源:TileDao.java

示例23: testRandomLocations

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Test 10 random locations and optionally print
 *
 * @throws Exception
 */
public void testRandomLocations() throws Exception {

    BoundingBox projectedBoundingBox = null;

    List<String> elevationTables = ElevationTilesTiff.getTables(geoPackage);
    TileMatrixSetDao dao = geoPackage.getTileMatrixSetDao();

    for (String elevationTable : elevationTables) {

        TileMatrixSet tileMatrixSet = dao.queryForId(elevationTable);

        BoundingBox boundingBox = tileMatrixSet.getBoundingBox();
        if (PRINT) {
            System.out.println("Min Latitude: "
                    + boundingBox.getMinLatitude());
            System.out.println("Max Latitude: "
                    + boundingBox.getMaxLatitude());
            System.out.println("Min Longitude: "
                    + boundingBox.getMinLongitude());
            System.out.println("Max Longitude: "
                    + boundingBox.getMaxLongitude());
            System.out.println();
        }
        SpatialReferenceSystemDao srsDao = geoPackage
                .getSpatialReferenceSystemDao();
        long srsId = tileMatrixSet.getSrsId();
        SpatialReferenceSystem srs = srsDao.queryForId(srsId);
        Projection projection = ProjectionFactory.getProjection(srs);
        Projection requestProjection = ProjectionFactory
                .getProjection(ProjectionConstants.EPSG_WORLD_GEODETIC_SYSTEM);
        ProjectionTransform elevationToRequest = projection
                .getTransformation(requestProjection);
        projectedBoundingBox = elevationToRequest.transform(boundingBox);

    }
    if (PRINT) {
        System.out.println("Min Latitude: "
                + projectedBoundingBox.getMinLatitude());
        System.out.println("Max Latitude: "
                + projectedBoundingBox.getMaxLatitude());
        System.out.println("Min Longitude: "
                + projectedBoundingBox.getMinLongitude());
        System.out.println("Max Longitude: "
                + projectedBoundingBox.getMaxLongitude());
        System.out.println();
    }

    double latDistance = projectedBoundingBox.getMaxLatitude()
            - projectedBoundingBox.getMinLatitude();
    double lonDistance = projectedBoundingBox.getMaxLongitude()
            - projectedBoundingBox.getMinLongitude();

    for (int i = 0; i < 10; i++) {

        // Get a random coordinate
        double latitude = latDistance * .9 * Math.random()
                + projectedBoundingBox.getMinLatitude()
                + (.05 * latDistance);
        double longitude = lonDistance * .9 * Math.random()
                + projectedBoundingBox.getMinLongitude()
                + (.05 * lonDistance);
        testLocation(latitude, longitude);
        if (PRINT) {
            System.out.println();
        }
    }
}
 

开发者ID:ngageoint,
项目名称:geopackage-android,
代码行数:73,
代码来源:ElevationTilesTiffImportTest.java

示例24: testRandomLocations

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Test 10 random locations and optionally print
 *
 * @throws Exception
 */
public void testRandomLocations() throws Exception {

    BoundingBox projectedBoundingBox = null;

    List<String> elevationTables = ElevationTilesPng.getTables(geoPackage);
    TileMatrixSetDao dao = geoPackage.getTileMatrixSetDao();

    for (String elevationTable : elevationTables) {

        TileMatrixSet tileMatrixSet = dao.queryForId(elevationTable);

        BoundingBox boundingBox = tileMatrixSet.getBoundingBox();
        if (PRINT) {
            System.out.println("Min Latitude: "
                    + boundingBox.getMinLatitude());
            System.out.println("Max Latitude: "
                    + boundingBox.getMaxLatitude());
            System.out.println("Min Longitude: "
                    + boundingBox.getMinLongitude());
            System.out.println("Max Longitude: "
                    + boundingBox.getMaxLongitude());
            System.out.println();
        }
        SpatialReferenceSystemDao srsDao = geoPackage
                .getSpatialReferenceSystemDao();
        long srsId = tileMatrixSet.getSrsId();
        SpatialReferenceSystem srs = srsDao.queryForId(srsId);
        Projection projection = ProjectionFactory.getProjection(srs);
        Projection requestProjection = ProjectionFactory
                .getProjection(ProjectionConstants.EPSG_WORLD_GEODETIC_SYSTEM);
        ProjectionTransform elevationToRequest = projection
                .getTransformation(requestProjection);
        projectedBoundingBox = elevationToRequest.transform(boundingBox);

    }
    if (PRINT) {
        System.out.println("Min Latitude: "
                + projectedBoundingBox.getMinLatitude());
        System.out.println("Max Latitude: "
                + projectedBoundingBox.getMaxLatitude());
        System.out.println("Min Longitude: "
                + projectedBoundingBox.getMinLongitude());
        System.out.println("Max Longitude: "
                + projectedBoundingBox.getMaxLongitude());
        System.out.println();
    }

    double latDistance = projectedBoundingBox.getMaxLatitude()
            - projectedBoundingBox.getMinLatitude();
    double lonDistance = projectedBoundingBox.getMaxLongitude()
            - projectedBoundingBox.getMinLongitude();

    for (int i = 0; i < 10; i++) {

        // Get a random coordinate
        double latitude = latDistance * .9 * Math.random()
                + projectedBoundingBox.getMinLatitude()
                + (.05 * latDistance);
        double longitude = lonDistance * .9 * Math.random()
                + projectedBoundingBox.getMinLongitude()
                + (.05 * lonDistance);
        testLocation(latitude, longitude);
        if (PRINT) {
            System.out.println();
        }
    }
}
 

开发者ID:ngageoint,
项目名称:geopackage-android,
代码行数:73,
代码来源:ElevationTilesPngImportTest.java

示例25: testGeometryProjectionTransform

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Test transforming geometries between projections
 *
 * @param geoPackage
 * @throws SQLException
 * @throws IOException
 */
public static void testGeometryProjectionTransform(GeoPackage geoPackage)
		throws SQLException, IOException {

	GeometryColumnsDao geometryColumnsDao = geoPackage
			.getGeometryColumnsDao();

	if (geometryColumnsDao.isTableExists()) {
		List<GeometryColumns> results = geometryColumnsDao.queryForAll();

		for (GeometryColumns geometryColumns : results) {

			FeatureDao dao = geoPackage.getFeatureDao(geometryColumns);
			TestCase.assertNotNull(dao);

			FeatureCursor cursor = dao.queryForAll();

			while (cursor.moveToNext()) {

				GeoPackageGeometryData geometryData = cursor.getGeometry();
				if (geometryData != null) {

					Geometry geometry = geometryData.getGeometry();

					if (geometry != null) {

						SpatialReferenceSystemDao srsDao = geoPackage
								.getSpatialReferenceSystemDao();
						long srsId = geometryData.getSrsId();
						SpatialReferenceSystem srs = srsDao
								.queryForId(srsId);

						long epsg = srs.getOrganizationCoordsysId();
						Projection projection = ProjectionFactory
								.getProjection(srs);
						long toEpsg = -1;
						if (epsg == ProjectionConstants.EPSG_WORLD_GEODETIC_SYSTEM) {
							toEpsg = ProjectionConstants.EPSG_WEB_MERCATOR;
						} else {
							toEpsg = ProjectionConstants.EPSG_WORLD_GEODETIC_SYSTEM;
						}
						ProjectionTransform transformTo = projection
								.getTransformation(toEpsg);
						ProjectionTransform transformFrom = transformTo
								.getToProjection().getTransformation(srs);

						byte[] bytes = geometryData.getWkbBytes();

						Geometry projectedGeometry = transformTo
								.transform(geometry);
						GeoPackageGeometryData projectedGeometryData = new GeoPackageGeometryData(
								-1);
						projectedGeometryData
								.setGeometry(projectedGeometry);
						projectedGeometryData.toBytes();
						byte[] projectedBytes = projectedGeometryData
								.getWkbBytes();

						if (epsg > 0) {
							TestCase.assertFalse(equalByteArrays(bytes,
									projectedBytes));
						}

						Geometry restoredGeometry = transformFrom
								.transform(projectedGeometry);

						compareGeometries(geometry, restoredGeometry, .001);
					}
				}

			}
			cursor.close();
		}
	}
}
 

开发者ID:ngageoint,
项目名称:geopackage-android,
代码行数:82,
代码来源:GeoPackageGeometryDataUtils.java

示例26: hasColumn

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Determine if the GeoPackage SRS table has the extension column
 * 
 * @return
 */
private boolean hasColumn() {
	boolean exists = connection.columnExists(
			SpatialReferenceSystem.TABLE_NAME, COLUMN_NAME);
	return exists;
}
 

开发者ID:ngageoint,
项目名称:geopackage-core-java,
代码行数:11,
代码来源:CrsWktExtension.java

示例27: getSrs

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
public SpatialReferenceSystem getSrs() {
	return srs;
}
 

开发者ID:ngageoint,
项目名称:geopackage-core-java,
代码行数:4,
代码来源:GeometryColumns.java

示例28: setSrs

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
public void setSrs(SpatialReferenceSystem srs) {
	this.srs = srs;
	srsId = srs != null ? srs.getId() : -1;
}
 

开发者ID:ngageoint,
项目名称:geopackage-core-java,
代码行数:5,
代码来源:GeometryColumns.java

示例29: setSrs

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
public void setSrs(SpatialReferenceSystem srs) {
	this.srs = srs;
	if (srs != null) {
		srid = srs.getId();
	}
}
 

开发者ID:ngageoint,
项目名称:geopackage-core-java,
代码行数:7,
代码来源:GeometryColumnsSfSql.java

示例30: setSrs

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
public void setSrs(SpatialReferenceSystem srs) {
	this.srs = srs;
	srsId = srs != null ? srs.getId() : null;
}
 

开发者ID:ngageoint,
项目名称:geopackage-core-java,
代码行数:5,
代码来源:Contents.java

示例31: viewDatabaseOption

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * View database information
 *
 * @param database
 */
private void viewDatabaseOption(final String database) {
    StringBuilder databaseInfo = new StringBuilder();
    GeoPackage geoPackage = manager.open(database);
    try {
        SpatialReferenceSystemDao srsDao = geoPackage
                .getSpatialReferenceSystemDao();

        List<SpatialReferenceSystem> srsList = srsDao.queryForAll();
        databaseInfo.append("Size: ")
                .append(manager.readableSize(database));
        databaseInfo.append("\n\nLocation: ").append(
                manager.isExternal(database) ? "External" : "Local");
        databaseInfo.append("\nPath: ").append(manager.getPath(database));
        databaseInfo.append("\n\nFeature Tables: ").append(
                geoPackage.getFeatureTables().size());
        databaseInfo.append("\nTile Tables: ").append(
                geoPackage.getTileTables().size());
        databaseInfo.append("\n\nSpatial Reference Systems: ").append(
                srsList.size());
        for (SpatialReferenceSystem srs : srsList) {
            databaseInfo.append("\n");
            addSrs(databaseInfo, srs);
        }

    } catch (Exception e) {
        databaseInfo.append(e.getMessage());
    } finally {
        geoPackage.close();
    }
    AlertDialog viewDialog = new AlertDialog.Builder(getActivity(), R.style.AppCompatAlertDialogStyle)
            .setTitle(database)
            .setPositiveButton(getString(R.string.button_ok_label),

                    new DialogInterface.OnClickListener() {
                        @Override
                        public void onClick(DialogInterface dialog, int which) {
                            dialog.dismiss();
                        }
                    }).setMessage(databaseInfo.toString()).create();
    viewDialog.show();
}
 

开发者ID:ngageoint,
项目名称:geopackage-mapcache-android,
代码行数:47,
代码来源:GeoPackageManagerFragment.java

示例32: TileDao

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Constructor
 * 
 * @param database
 * @param db
 * @param tileDb
 * @param tileMatrixSet
 * @param tileMatrices
 * @param table
 */
public TileDao(String database, GeoPackageConnection db,
		TileConnection tileDb, TileMatrixSet tileMatrixSet,
		List<TileMatrix> tileMatrices, TileTable table) {
	super(database, db, tileDb, table);

	this.tileDb = tileDb;
	this.tileMatrixSet = tileMatrixSet;
	this.tileMatrices = tileMatrices;
	this.widths = new double[tileMatrices.size()];
	this.heights = new double[tileMatrices.size()];

	projection = ProjectionFactory.getProjection(tileMatrixSet.getSrs());

	// Set the min and max zoom levels
	if (!tileMatrices.isEmpty()) {
		minZoom = tileMatrices.get(0).getZoomLevel();
		maxZoom = tileMatrices.get(tileMatrices.size() - 1).getZoomLevel();
	} else {
		minZoom = 0;
		maxZoom = 0;
	}

	// Populate the zoom level to tile matrix and the sorted tile widths and
	// heights
	for (int i = 0; i < tileMatrices.size(); i++) {
		TileMatrix tileMatrix = tileMatrices.get(i);
		zoomLevelToTileMatrix.put(tileMatrix.getZoomLevel(), tileMatrix);
		widths[tileMatrices.size() - i - 1] = tileMatrix.getPixelXSize()
				* tileMatrix.getTileWidth();
		heights[tileMatrices.size() - i - 1] = tileMatrix.getPixelYSize()
				* tileMatrix.getTileHeight();
	}

	if (tileMatrixSet.getContents() == null) {
		throw new GeoPackageException(TileMatrixSet.class.getSimpleName()
				+ " " + tileMatrixSet.getId() + " has null "
				+ Contents.class.getSimpleName());
	}
	if (tileMatrixSet.getSrs() == null) {
		throw new GeoPackageException(TileMatrixSet.class.getSimpleName()
				+ " " + tileMatrixSet.getId() + " has null "
				+ SpatialReferenceSystem.class.getSimpleName());
	}

}
 

开发者ID:ngageoint,
项目名称:geopackage-java,
代码行数:56,
代码来源:TileDao.java

示例33: testRandomLocations

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Test 10 random locations and optionally print
 * 
 * @throws Exception
 */
@Test
public void testRandomLocations() throws Exception {

	BoundingBox projectedBoundingBox = null;

	List<String> elevationTables = ElevationTilesTiff.getTables(geoPackage);
	TileMatrixSetDao dao = geoPackage.getTileMatrixSetDao();

	for (String elevationTable : elevationTables) {

		TileMatrixSet tileMatrixSet = dao.queryForId(elevationTable);

		BoundingBox boundingBox = tileMatrixSet.getBoundingBox();
		if (PRINT) {
			System.out.println("Min Latitude: "
					+ boundingBox.getMinLatitude());
			System.out.println("Max Latitude: "
					+ boundingBox.getMaxLatitude());
			System.out.println("Min Longitude: "
					+ boundingBox.getMinLongitude());
			System.out.println("Max Longitude: "
					+ boundingBox.getMaxLongitude());
			System.out.println();
		}
		SpatialReferenceSystemDao srsDao = geoPackage
				.getSpatialReferenceSystemDao();
		long srsId = tileMatrixSet.getSrsId();
		SpatialReferenceSystem srs = srsDao.queryForId(srsId);
		Projection projection = ProjectionFactory.getProjection(srs);
		Projection requestProjection = ProjectionFactory
				.getProjection(ProjectionConstants.EPSG_WORLD_GEODETIC_SYSTEM);
		ProjectionTransform elevationToRequest = projection
				.getTransformation(requestProjection);
		projectedBoundingBox = elevationToRequest.transform(boundingBox);

	}
	if (PRINT) {
		System.out.println("Min Latitude: "
				+ projectedBoundingBox.getMinLatitude());
		System.out.println("Max Latitude: "
				+ projectedBoundingBox.getMaxLatitude());
		System.out.println("Min Longitude: "
				+ projectedBoundingBox.getMinLongitude());
		System.out.println("Max Longitude: "
				+ projectedBoundingBox.getMaxLongitude());
		System.out.println();
	}

	double latDistance = projectedBoundingBox.getMaxLatitude()
			- projectedBoundingBox.getMinLatitude();
	double lonDistance = projectedBoundingBox.getMaxLongitude()
			- projectedBoundingBox.getMinLongitude();

	for (int i = 0; i < 10; i++) {

		// Get a random coordinate
		double latitude = latDistance * .9 * Math.random()
				+ projectedBoundingBox.getMinLatitude()
				+ (.05 * latDistance);
		double longitude = lonDistance * .9 * Math.random()
				+ projectedBoundingBox.getMinLongitude()
				+ (.05 * lonDistance);
		testLocation(latitude, longitude);
		if (PRINT) {
			System.out.println();
		}
	}
}
 

开发者ID:ngageoint,
项目名称:geopackage-java,
代码行数:74,
代码来源:ElevationTilesTiffImportTest.java

示例34: testRandomLocations

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Test 10 random locations and optionally print
 * 
 * @throws Exception
 */
@Test
public void testRandomLocations() throws Exception {

	BoundingBox projectedBoundingBox = null;

	List<String> elevationTables = ElevationTilesPng.getTables(geoPackage);
	TileMatrixSetDao dao = geoPackage.getTileMatrixSetDao();

	for (String elevationTable : elevationTables) {

		TileMatrixSet tileMatrixSet = dao.queryForId(elevationTable);

		BoundingBox boundingBox = tileMatrixSet.getBoundingBox();
		if (PRINT) {
			System.out.println("Min Latitude: "
					+ boundingBox.getMinLatitude());
			System.out.println("Max Latitude: "
					+ boundingBox.getMaxLatitude());
			System.out.println("Min Longitude: "
					+ boundingBox.getMinLongitude());
			System.out.println("Max Longitude: "
					+ boundingBox.getMaxLongitude());
			System.out.println();
		}
		SpatialReferenceSystemDao srsDao = geoPackage
				.getSpatialReferenceSystemDao();
		long srsId = tileMatrixSet.getSrsId();
		SpatialReferenceSystem srs = srsDao.queryForId(srsId);
		Projection projection = ProjectionFactory.getProjection(srs);
		Projection requestProjection = ProjectionFactory
				.getProjection(ProjectionConstants.EPSG_WORLD_GEODETIC_SYSTEM);
		ProjectionTransform elevationToRequest = projection
				.getTransformation(requestProjection);
		projectedBoundingBox = elevationToRequest.transform(boundingBox);

	}
	if (PRINT) {
		System.out.println("Min Latitude: "
				+ projectedBoundingBox.getMinLatitude());
		System.out.println("Max Latitude: "
				+ projectedBoundingBox.getMaxLatitude());
		System.out.println("Min Longitude: "
				+ projectedBoundingBox.getMinLongitude());
		System.out.println("Max Longitude: "
				+ projectedBoundingBox.getMaxLongitude());
		System.out.println();
	}

	double latDistance = projectedBoundingBox.getMaxLatitude()
			- projectedBoundingBox.getMinLatitude();
	double lonDistance = projectedBoundingBox.getMaxLongitude()
			- projectedBoundingBox.getMinLongitude();

	for (int i = 0; i < 10; i++) {

		// Get a random coordinate
		double latitude = latDistance * .9 * Math.random()
				+ projectedBoundingBox.getMinLatitude()
				+ (.05 * latDistance);
		double longitude = lonDistance * .9 * Math.random()
				+ projectedBoundingBox.getMinLongitude()
				+ (.05 * lonDistance);
		testLocation(latitude, longitude);
		if (PRINT) {
			System.out.println();
		}
	}
}
 

开发者ID:ngageoint,
项目名称:geopackage-java,
代码行数:74,
代码来源:ElevationTilesPngImportTest.java

示例35: testGeometryProjectionTransform

点赞 2

import mil.nga.geopackage.core.srs.SpatialReferenceSystem; //导入依赖的package包/类
/**
 * Test transforming geometries between projections
 * 
 * @param geoPackage
 * @throws SQLException
 * @throws IOException
 */
public static void testGeometryProjectionTransform(GeoPackage geoPackage)
		throws SQLException, IOException {

	GeometryColumnsDao geometryColumnsDao = geoPackage
			.getGeometryColumnsDao();

	if (geometryColumnsDao.isTableExists()) {
		List<GeometryColumns> results = geometryColumnsDao.queryForAll();

		for (GeometryColumns geometryColumns : results) {

			FeatureDao dao = geoPackage.getFeatureDao(geometryColumns);
			TestCase.assertNotNull(dao);

			FeatureResultSet cursor = dao.queryForAll();

			while (cursor.moveToNext()) {

				GeoPackageGeometryData geometryData = cursor.getGeometry();
				if (geometryData != null) {

					Geometry geometry = geometryData.getGeometry();

					if (geometry != null) {

						SpatialReferenceSystemDao srsDao = geoPackage
								.getSpatialReferenceSystemDao();
						long srsId = geometryData.getSrsId();
						SpatialReferenceSystem srs = srsDao
								.queryForId(srsId);

						long epsg = srs.getOrganizationCoordsysId();
						Projection projection = ProjectionFactory
								.getProjection(srs);
						long toEpsg = -1;
						if (epsg == ProjectionConstants.EPSG_WORLD_GEODETIC_SYSTEM) {
							toEpsg = ProjectionConstants.EPSG_WEB_MERCATOR;
						} else {
							toEpsg = ProjectionConstants.EPSG_WORLD_GEODETIC_SYSTEM;
						}
						ProjectionTransform transformTo = projection
								.getTransformation(toEpsg);
						ProjectionTransform transformFrom = transformTo
								.getToProjection().getTransformation(srs);

						byte[] bytes = geometryData.getWkbBytes();

						Geometry projectedGeometry = transformTo
								.transform(geometry);
						GeoPackageGeometryData projectedGeometryData = new GeoPackageGeometryData(
								-1);
						projectedGeometryData
								.setGeometry(projectedGeometry);
						projectedGeometryData.toBytes();
						byte[] projectedBytes = projectedGeometryData
								.getWkbBytes();

						if (epsg > 0) {
							TestCase.assertFalse(equalByteArrays(bytes,
									projectedBytes));
						}

						Geometry restoredGeometry = transformFrom
								.transform(projectedGeometry);

						compareGeometries(geometry, restoredGeometry, .001);
					}
				}

			}
			cursor.close();
		}
	}
}
 

开发者ID:ngageoint,
项目名称:geopackage-java,
代码行数:82,
代码来源:GeoPackageGeometryDataUtils.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)