Esri ArcObjects Snippets - Series
Load Pre-Defined Projections
// print pre defined projections in arcobjects
static void printPreDefinedProjections() throws Exception {
ISpatialReferenceFactory spatialReferenceFactory = new SpatialReferenceEnvironment();
ISet projectionSet = spatialReferenceFactory
.createPredefinedProjections();
System.out.println("Number of predefined Projections = "
+ projectionSet.getCount());
projectionSet.reset();
for (int i = 0; i < projectionSet.getCount(); i++) {
IProjection projection = (IProjection) projectionSet.next();
System.out.println(projection.getName());
}
}
This code has been made using ESRI Resources and other Help Content and is provided here just for educational purpose.
// print pre defined projections in arcobjects
static void printPreDefinedProjections() throws Exception {
ISpatialReferenceFactory spatialReferenceFactory = new SpatialReferenceEnvironment();
ISet projectionSet = spatialReferenceFactory
.createPredefinedProjections();
System.out.println("Number of predefined Projections = "
+ projectionSet.getCount());
projectionSet.reset();
for (int i = 0; i < projectionSet.getCount(); i++) {
IProjection projection = (IProjection) projectionSet.next();
System.out.println(projection.getName());
}
}
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