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

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

java 2次浏览

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

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

示例1: create

点赞 3

import com.esri.arcgis.geometry.ISpatialReference; //导入依赖的package包/类
public ISpatialReference create(int factoryCode) {
	try {
		SpatialReferenceEnvironment spatialReferenceEnvironment = new SpatialReferenceEnvironment();
		ISpatialReference sr = spatialReferenceEnvironment
				.createSpatialReference(factoryCode);
		ISpatialReferenceResolution resolution = (ISpatialReferenceResolution)sr;
		resolution.constructFromHorizon();
		ISpatialReferenceTolerance tolerance = (ISpatialReferenceTolerance)sr;
		tolerance.setDefaultXYTolerance();
		// SpatialReferenceEnvironment is a singleton.
		// It is a good practice to release the singletons
		// using com.esri.system.Cleaner.release()
		Cleaner.release(spatialReferenceEnvironment);
		return sr;
	} catch (IOException e) {
		throw new ArcObjectsInteropException(
				String.format(
						"Cannot create spatial reference from factory code '%1$d'.",
						factoryCode), e);
	}
}
 

开发者ID:Esri,
项目名称:server-extension-java
代码行数:22,
代码来源:SpatialReferenceFactory.java

示例2: getWkid

点赞 3

import com.esri.arcgis.geometry.ISpatialReference; //导入依赖的package包/类
protected int getWkid(final FeatureClass featureClass) throws IOException
{
    final int wkid;
    final ISpatialReference spatialReference = featureClass.getSpatialReference();
    try
    {
        if (spatialReference instanceof ISpatialReferenceAuthority)
        {
            final ISpatialReferenceAuthority spatialReferenceAuthority = (ISpatialReferenceAuthority) spatialReference;
            final int code = spatialReferenceAuthority.getCode();
            wkid = code == 0 ? esriSRGeoCSType.esriSRGeoCS_WGS1984 : code;
        }
        else
        {
            wkid = esriSRGeoCSType.esriSRGeoCS_WGS1984;
        }
    }
    finally
    {
        Cleaner.release(spatialReference);
    }
    return wkid;
}
 

开发者ID:mraad,
项目名称:AvroToolbox,
代码行数:24,
代码来源:AbstractTool.java

示例3: serialize

点赞 2

import com.esri.arcgis.geometry.ISpatialReference; //导入依赖的package包/类
@Override
public String serialize(ISpatialReference value) throws IOException,
        JsonGenerationException {

    String json = this.geometryMapper.writeSpatialReference(value);
    return json;
}
 

开发者ID:Esri,
项目名称:server-extension-java
代码行数:8,
代码来源:SpatialReferenceSerializer.java

示例4: deserialize

点赞 2

import com.esri.arcgis.geometry.ISpatialReference; //导入依赖的package包/类
@Override
protected ISpatialReference deserialize(String json) throws IOException,
        JsonProcessingException {
    ISpatialReference spatialReference = this.geometryMapper
            .readSpatialReference(json);
    return spatialReference;
}
 

开发者ID:Esri,
项目名称:server-extension-java
代码行数:8,
代码来源:SpatialReferenceDeserializer.java

示例5: createSpatialReference

点赞 2

import com.esri.arcgis.geometry.ISpatialReference; //导入依赖的package包/类
public static ISpatialReference createSpatialReference(int factoryCode)
        throws UnknownHostException, IOException {
    SpatialReferenceEnvironment spatialReferenceEnvironment = new SpatialReferenceEnvironment();
    ISpatialReference spatialReference = spatialReferenceEnvironment
            .createSpatialReference(factoryCode);
    // SpatialReferenceEnvironment is a singleton.
    // It is a good practice to release the singletons
    // using com.esri.system.Cleaner.release()
    Cleaner.release(spatialReferenceEnvironment);
    return spatialReference;
}
 

开发者ID:Esri,
项目名称:server-extension-java
代码行数:12,
代码来源:ArcObjectsUtilities.java

示例6: getInSR

点赞 2

import com.esri.arcgis.geometry.ISpatialReference; //导入依赖的package包/类
public ISpatialReference getInSR() {
  return inSR;
}
 

开发者ID:Esri,
项目名称:server-extension-java
代码行数:4,
代码来源:QueryImageServiceOperationInput.java

示例7: setInSR

点赞 2

import com.esri.arcgis.geometry.ISpatialReference; //导入依赖的package包/类
public void setInSR(ISpatialReference inSR) {
  this.inSR = inSR;
}
 

开发者ID:Esri,
项目名称:server-extension-java
代码行数:4,
代码来源:QueryImageServiceOperationInput.java

示例8: getOutSR

点赞 2

import com.esri.arcgis.geometry.ISpatialReference; //导入依赖的package包/类
public ISpatialReference getOutSR() {
  return outSR;
}
 

开发者ID:Esri,
项目名称:server-extension-java,
代码行数:4,
代码来源:QueryImageServiceOperationInput.java

示例9: setOutSR

点赞 2

import com.esri.arcgis.geometry.ISpatialReference; //导入依赖的package包/类
public void setOutSR(ISpatialReference outSR) {
  this.outSR = outSR;
}
 

开发者ID:Esri,
项目名称:server-extension-java,
代码行数:4,
代码来源:QueryImageServiceOperationInput.java

示例10: getImageSR

点赞 2

import com.esri.arcgis.geometry.ISpatialReference; //导入依赖的package包/类
public ISpatialReference getImageSR() {
  return imageSR;
}
 

开发者ID:Esri,
项目名称:server-extension-java,
代码行数:4,
代码来源:ExportImageServiceOperationInput.java

示例11: setImageSR

点赞 2

import com.esri.arcgis.geometry.ISpatialReference; //导入依赖的package包/类
public void setImageSR(ISpatialReference imageSR) {
  this.imageSR = imageSR;
}
 

开发者ID:Esri,
项目名称:server-extension-java,
代码行数:4,
代码来源:ExportImageServiceOperationInput.java

示例12: getBboxSR

点赞 2

import com.esri.arcgis.geometry.ISpatialReference; //导入依赖的package包/类
public ISpatialReference getBboxSR() {
  return bboxSR;
}
 

开发者ID:Esri,
项目名称:server-extension-java,
代码行数:4,
代码来源:ExportImageServiceOperationInput.java

示例13: setBboxSR

点赞 2

import com.esri.arcgis.geometry.ISpatialReference; //导入依赖的package包/类
public void setBboxSR(ISpatialReference bboxSR) {
  this.bboxSR = bboxSR;
}
 

开发者ID:Esri,
项目名称:server-extension-java,
代码行数:4,
代码来源:ExportImageServiceOperationInput.java

示例14: SpatialReferenceSerializer

点赞 2

import com.esri.arcgis.geometry.ISpatialReference; //导入依赖的package包/类
public SpatialReferenceSerializer(ObjectMapper objectMapper) {
    super(objectMapper, ISpatialReference.class);
}
 

开发者ID:Esri,
项目名称:server-extension-java,
代码行数:4,
代码来源:SpatialReferenceSerializer.java

示例15: SpatialReferenceDeserializer

点赞 2

import com.esri.arcgis.geometry.ISpatialReference; //导入依赖的package包/类
protected SpatialReferenceDeserializer(ObjectMapper objectMapper) {
    super(ISpatialReference.class, objectMapper);
}
 

开发者ID:Esri,
项目名称:server-extension-java,
代码行数:4,
代码来源:SpatialReferenceDeserializer.java

示例16: getSpatailRef

点赞 1

import com.esri.arcgis.geometry.ISpatialReference; //导入依赖的package包/类
/**
 * 获取第一个底图的空间参考
 * 
 * @return
 * @throws IOException
 * @throws AutomationException
 */
public ISpatialReference getSpatailRef() throws AutomationException,
		IOException {
	if (getFeatureClass().length == 0)
		return null;

	IGeoDataset geoDataset;

	geoDataset = new IGeoDatasetProxy(getFeatureClass()[0]);
	
	return geoDataset.getSpatialReference();

}
 

开发者ID:vonpower,
项目名称:VonRep,
代码行数:20,
代码来源:BGCMap.java


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