Hoppa till huvudinnehållet

Change display name for Default Geographic Coordinate System Spatial Reference

Kommentarer

4 kommentarer

  • Permanently deleted user
    Hello Dibya!

     

    You can change the display name for the Coordinate System in your Viewer.Defaults.xml. Look for the tag <CoordinateSystems> just a short distance from the beginning of the file. Here you will see the following; simply change the DisplayName and change Default to "true" (if it isnt already):

     

    <CoordinateSystem DisplayName="NYS Plane Central" WKID="2261" NumDigits="4" DisplayAsDMS="false" DisplayAsLatLon="false" Default="true" />    

     

          <CoordinateSystem DisplayName="Web Mercator" WKID="102100" NumDigits="6" DisplayAsDMS="false" DisplayAsLatLon="false" />

     

          <CoordinateSystem DisplayName="Lat/Lon (DD)" WKID="4326" NumDigits="4" DisplayAsDMS="false" DisplayAsLatLon="true" Default="false" />

     

          <CoordinateSystem DisplayName="Lat/Lon (DMS)" WKID="4326" NumDigits="4" DisplayAsDMS="true" DisplayAsLatLon="false" />

     

          <CoordinateSystem DisplayName="Lat/Lon (DDM)" WKID="4326" NumDigits="4" DisplayAsDMS="false" DisplayAsDDM="true" DisplayAsLatLon="false" />

     

     
    0
  • Permanently deleted user
    Hi Clarence,

     

    Do you know how to achieve the same thing in HTML5 viewer?

     

    Thanks,

     

    Hery
    0
  • Chris Roberts
    Hi Hery

     

    Open and edit the deskop.json.js file under the GeocortexInstance\Sites\Site\Viewers\ViewerName\VitrualDirectory\Resources\Config\Default folder

     

    Find "id": "MapCoordinatesModel",

     

    And add your custom coordintate systems as follows:

     

    {

     

                "id": "MapCoordinatesModel",

     

                "type": "geocortex.essentialsHtmlViewer.mapping.infrastructure.coordinates.CoordinatesModel",

     

                "configuration": {

     

                  "defaultCoordinateDisplayTypes": [],

     

                  "customCoordinateSystems": [

     

                    {

     

                      "displayName": "Web Mercator",

     

                      "wkid": 102100,

     

                      "output": "xy"

     

                    },

     

                    {

     

                      "displayName": "MGA Zone 52",

     

                      "wkid": 28352,

     

                      "output": "xy"

     

                    },

     

                    {

     

                      "displayName": "MGA Zone 53",

     

                      "wkid": 28353,

     

                      "output": "xy"

     

                    },

     

                    {

     

                      "displayName": "MGA Zone 54",

     

                      "wkid": 28354,

     

                      "output": "xy"

     

                    },

     

                    {

     

                      "displayName": "Decimal Degrees",

     

                      "wkid": 4326,

     

                      "output": "dd"

     

                    },

     

                    {

     

                      "displayName": "Degrees-Decimal Minutes",

     

                      "wkid": 4326,

     

                      "output": "ddm"

     

                    },

     

                    {

     

                      "displayName": "Degrees Minutes Seconds",

     

                      "wkid": 4326,

     

                      "output": "dms"

     

                    },

     

                    {

     

                      "displayName": "MGRS",

     

                      "wkt": "",

     

                      "output": "mgrs"

     

                    }

     

                  ],

     

                  "fractionalDigits": 2,

     

                  "defaultGcsWkid": "4326"

     

                },

     

    do the same for the tablet and handheld json files if required.

     

    Hope that helps

     

    Cheers, Chris
    0
  • Permanently deleted user

    Thanks for this Chris,

    Anyone know if there's a way to separately control the number of decimal places shown for each custom coordinate system used? It seems whatever value is assigned to the coordinate decimal precision (fractionalDigits of the MapCoordinatesModel) is the only option for all coordinate systems used.

     

    It would be nice, for example, to show UTM with .01 and DD shown with .000001 to present appropriate precision.

     

    In Desktop.json.js I tried setting a different "fractionalDigits" value within the custom systems but that didn't work.

     

    Thanks,

    Jesse

    1

Du måste logga in om du vill lämna en kommentar.