laptop and a wrench

Bogue

Unable to retrieve the EPSG code for the SpatialReference from the WebContext using WebContext.getSpatialReferenceId() or WebContext.getSpatialReference().getId(). The methods always return -1.

Dernière publication: August 25, 2014 ArcGIS Server (Java)
Numéro d’ID de bogue NIM040065
EnvoiNovember 12, 2008
Dernière modificationJune 5, 2024
S’applique àArcGIS Server (Java)
Version trouvée9.2
Langue du programmeJava
Système d’exploitationWindows OS
Version du système d’exploitation2003
StatutWill Not Be Addressed

Informations supplémentaires

No Public Explanation

Solution de contournement

Using the Spatial Reference Definition String, the PeCoordinateSystem, and PeFactory the EPSG code can be obtained.Sample code:String defString = context.getSpatialReferenceDefinitionString();PeCoordinateSystem pecoordinatesystem = PeCoordinateSystem.fromString(defString);int EPSG = PeFactory.getCode(pecoordinatesystem);

Étapes pour reproduire

ID de bogue: NIM040065

Logiciel:

  • ArcGIS Server (Java)

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement