Hoppa till huvudinnehållet

Can you add local cooridinate systems on the drop down for import data from csv?

Kommentarer

1 kommentar

  • Chris Roberts
    Hi Dibya

     

    This is what I did to add extra spatial reference options when importing data from a csv/xlsx

     

    Open the Desktop and Tablet .json files for the viewer in the viewers directory i.e.

     

     

     

    \\GeocortexInstance\Sites\SiteName\Viewers\ViewerName\VirtualDirectory\Resources\Config\Default

     

     

     

    Find the "sourceSpatialReferences": reference and add the following (obviously your spatial references will be different depending on your region)

     

     

     

    "sourceSpatialReferences": [

     

                    {

     

                      "label": "Geographic (Long/Lat)",

     

                      "spatialReference": {

     

                        "wkid": 4326

     

                      },

     

                      "preselected": true

     

                    },

     

                    {

     

                      "label": "Web Mercator",

     

                      "spatialReference": {

     

                        "wkid": 102100

     

                      }

     

                    },

     

    {

     

                      "label": "MGA Zone 52 (Easting/Northing)",

     

                      "spatialReference": {

     

      "wkid": 28352

     

                      }

     

                    },

     

    {

     

                      "label": "MGA Zone 53 (Easting/Northing)",

     

                      "spatialReference": {

     

      "wkid": 28353

     

                      }

     

                    },

     

    {

     

                      "label": "MGA Zone 54 (Easting/Northing)",

     

                      "spatialReference": {

     

      "wkid": 28354

     

                      }

     

                    },

     

                    {

     

                      "label": "Maps Current",

     

                      "map": true

     

                    },

     

                    {

     

                      "label": "Custom",

     

                      "custom": true

     

                    }

     

                  ]

     

    Hope that helps.

     

    Cheers

     

    Chris
    0

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