Esri ArcObjects Snippets - Series
Load Geographic Coordinate System from file
// load Geographic cordinate system from file
static IGeographicCoordinateSystem loadGeographicCoordinateSystem()
throws Exception {
ISpatialReferenceFactory spatialReferenceFactory = new SpatialReferenceEnvironment();
IGeographicCoordinateSystem geographicCoordinateSystem = (IGeographicCoordinateSystem) spatialReferenceFactory
.createESRISpatialReferenceFromPRJFile("D:/work/WGS1984.prj");
return geographicCoordinateSystem;
}
This code has been made using ESRI Resources and other Help Content and is provided here just for educational purpose.
// load Geographic cordinate system from file
static IGeographicCoordinateSystem loadGeographicCoordinateSystem()
throws Exception {
ISpatialReferenceFactory spatialReferenceFactory = new SpatialReferenceEnvironment();
IGeographicCoordinateSystem geographicCoordinateSystem = (IGeographicCoordinateSystem) spatialReferenceFactory
.createESRISpatialReferenceFromPRJFile("D:/work/WGS1984.prj");
return geographicCoordinateSystem;
}
This code has been made using ESRI Resources and other Help Content and is provided here just for educational purpose.
No comments:
Post a Comment