本文整理了Java中org.geotools.referencing.CRS.getCoordinateOperationFactory()
方法的一些代码示例,展示了CRS.getCoordinateOperationFactory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CRS.getCoordinateOperationFactory()
方法的具体详情如下:
包路径:org.geotools.referencing.CRS
类名称:CRS
方法名:getCoordinateOperationFactory
[英]Returns the coordinate operation factory used by #findMathTransform(CoordinateReferenceSystem,CoordinateReferenceSystem)convenience methods.
[中]返回#findMathTransform(CoordinateReferenceSystem,CoordinateReferenceSystem)便利方法使用的坐标操作工厂。
代码示例来源:origin: geoserver/geoserver
/**
* Check we are actually using the EPSG database for anything not in override
*
* @throws TransformException
*/
@Test
public void testFallbackOnEPSGDatabaseStd() throws Exception {
// Test CRSs
CoordinateReferenceSystem source = CRS.decode("EPSG:3002");
CoordinateReferenceSystem target = CRS.decode("EPSG:4326");
CoordinateOperation co =
CRS.getCoordinateOperationFactory(true).createOperation(source, target);
ConcatenatedOperation cco = (ConcatenatedOperation) co;
// the EPSG one only has two steps, the non EPSG one 4
assertEquals(2, cco.getOperations().size());
}
代码示例来源:origin: geotools/geotools
CoordinateOperationFactory operationFactory = getCoordinateOperationFactory(lenient);
return operationFactory.createOperation(sourceCRS, targetCRS).getMathTransform();
代码示例来源:origin: geotools/geotools
if (envelopeCrs2D != null && !CRS.equalsIgnoreMetadata(crs, envelopeCrs2D)) {
CoordinateOperationFactory operationFactory =
CRS.getCoordinateOperationFactory(true);
CoordinateOperation op = operationFactory.createOperation(envelopeCrs2D, crs);
envelope = CRS.transform(op, envelope);
代码示例来源:origin: geotools/geotools
public void testOperationSourceTarget() throws Exception {
// flip one way
CoordinateReferenceSystem source = CRS.decode("EPSG:32638", true); // lon/lat
CoordinateReferenceSystem target = CRS.decode("EPSG:4326", false); // lat/lon
CoordinateOperationFactory coordinateOperationFactory =
CRS.getCoordinateOperationFactory(true);
CoordinateOperation co = coordinateOperationFactory.createOperation(source, target);
assertEquals(source, co.getSourceCRS());
assertEquals(target, co.getTargetCRS());
// flip the other
source = CRS.decode("EPSG:32638", false); // lat/lon
target = CRS.decode("EPSG:4326", true); // lon/lat
co = coordinateOperationFactory.createOperation(source, target);
assertEquals(source, co.getSourceCRS());
assertEquals(target, co.getTargetCRS());
}
代码示例来源:origin: geotools/geotools
rasterManager.spatialDomainManager.coverageGeographicCRS2D, requestCRS)) {
CoordinateOperationFactory factory = CRS.getCoordinateOperationFactory(true);
CoordinateOperation op =
factory.createOperation(
代码示例来源:origin: geotools/geotools
CRS.getCoordinateOperationFactory(lenient);
代码示例来源:origin: geotools/geotools
CRS.getCoordinateOperationFactory(true)
.createOperation(destinationCRS, targetCRS);
GeneralEnvelope output = CRS.transform(operation, inputEnvelope);
代码示例来源:origin: geotools/geotools
CRS.getCoordinateOperationFactory(lenient);
代码示例来源:origin: geotools/geotools
if (sourceCRS != null) {
if (!equalsIgnoreMetadata(sourceCRS, targetCRS)) {
final CoordinateOperationFactory factory = getCoordinateOperationFactory(true);
final CoordinateOperation operation;
try {
代码示例来源:origin: geotools/geotools
CRS.getCoordinateOperationFactory(lenient);
CoordinateReferenceSystem sourceCRS = sourceEnvelope.getCoordinateReferenceSystem();
CoordinateOperation operation1 =
代码示例来源:origin: geotools/geotools
CRS.getCoordinateOperationFactory(lenient);
CoordinateOperation operation1 =
coordinateOperationFactory.createOperation(
代码示例来源:origin: geotools/geotools
transformed =
CRS.transform(
CRS.getCoordinateOperationFactory(true)
.createOperation(targetCRS, reducedCRS),
target);
代码示例来源:origin: geotools/geotools
final CoordinateReferenceSystem WGS84 = DefaultGeographicCRS.WGS84;
final CoordinateOperation operation =
CRS.getCoordinateOperationFactory(false).createOperation(mapCRS, WGS84);
final MathTransform transform = operation.getMathTransform();
assertTrue(transform instanceof MathTransform2D);
代码示例来源:origin: org.geotools/gt2-api
final CoordinateOperation operation = CRS.getCoordinateOperationFactory(lenient)
.createOperation(crs, targetCRS);
final GeneralEnvelope transformed = CRS.transform(operation, this);
代码示例来源:origin: org.geoserver/wcs1_1
if (bboxCRs instanceof GeographicCRS) {
try {
CoordinateOperationFactory cof = CRS.getCoordinateOperationFactory(true);
代码示例来源:origin: org.geoserver/gs-wcs1_1
if (bboxCRs instanceof GeographicCRS) {
try {
CoordinateOperationFactory cof = CRS.getCoordinateOperationFactory(true);
代码示例来源:origin: locationtech/geogig
double maxy = geographicBoundingBox.getNorthBoundLatitude();
CoordinateOperationFactory coordOpFactory = CRS.getCoordinateOperationFactory(true);
CoordinateOperation op = coordOpFactory.createOperation(wgs84, crs);
代码示例来源:origin: org.locationtech.geogig/geogig-core
double maxy = geographicBoundingBox.getNorthBoundLatitude();
CoordinateOperationFactory coordOpFactory = CRS.getCoordinateOperationFactory(true);
CoordinateOperation op = coordOpFactory.createOperation(wgs84, crs);
代码示例来源:origin: org.geotools/gt2-shapefile-renderer
op = CRS.getCoordinateOperationFactory(true).createOperation(dataCRS, destinationCrs);
mt = op.getMathTransform();
bbox = bbox.transform(dataCRS, true, 10);
代码示例来源:origin: org.geotools/gt-coverage
try {
final GeneralEnvelope transformed;
transformed = CRS.transform(CRS.getCoordinateOperationFactory(true)
.createOperation(targetCRS, reducedCRS), target);
final Envelope reduced;
内容来源于网络,如有侵权,请联系作者删除!