Revision 846
org.gvsig.projection.jcrs/trunk/org.gvsig.projection.jcrs/org.gvsig.projection.jcrs.lib/src/main/java/org/gvsig/crs/spatialReferenceIdentifyStrategies/AbstractIdentifyStrategy.java | ||
---|---|---|
89 | 89 |
SpatialReference sr2 = new SpatialReference(); |
90 | 90 |
try { |
91 | 91 |
sr2.ImportFromEPSG(code); |
92 |
if (sr2.IsGeographic() == 1) { |
|
93 |
sr2.SetAuthority("GEOGCS","ESRI",code); |
|
94 |
} else { |
|
95 |
sr2.SetAuthority("PROJCS","ESRI",code); |
|
92 |
if( code > 33000 ) { |
|
93 |
if (sr2.IsGeographic() == 1) { |
|
94 |
sr2.SetAuthority("GEOGCS","ESRI",code); |
|
95 |
} else { |
|
96 |
sr2.SetAuthority("PROJCS","ESRI",code); |
|
97 |
} |
|
96 | 98 |
} |
97 | 99 |
return sr2; |
98 | 100 |
} catch (Exception e4) { |
Also available in: Unified diff