Skip to main content

Default="true" - Default Coordinate System Not Set

Comments

5 comments

  • Linda Koki

    Hi Walter,

    I am new to Geocortex app, can you please tell me where to find the code you post below?

    thanks,

    Linda

    0
  • Permanently deleted user

    Linda,

    The file is called Viewer.Defaults.xml and it can be found in the following directory: C:\inetpub\wwwroot\GSV\Config

    This is your base configuration file for your Silverlight viewer.

    Make a backup copy first before you change anything.

    Walter

     

     

    0
  • Permanently deleted user

    Hi Walter and Linda

    the more correct answer would be to follow the instructions found here:

    http://support.geocortex.com/how-to-edit-your-viewerdefaultsxml

    Editing using the instructions there will have a global effect on all viewers.

    You could also add in those CoordinateSystem tags to separate viewer.xml files if you did not want exactly the same settings to be applied to all viewers.

    Have a read of the SL Viewer Admin and Development Guide in the section About Viewer Configuration

    Thanks

    Ralph

    0
  • Linda Koki

    Thanks Ralph.

    Walter, I tried it, but it does not work. Did you ever figure it out?

     

    Thanks,

    Linda

    0
  • Permanently deleted user

    Linda,

    Ralph's instructions are the correct ones to follow. I did manage to get our proper settings set with the line entries below:

    <CoordinateSystems>

          <CoordinateSystem DisplayName="NAD83 UTM17" WKID="26917" NumDigits="2" 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" />

     

          <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" />

     

        </CoordinateSystems>

    Walter

     

     
    0

Please sign in to leave a comment.