Coordinate Display Decimal Places
Is there a way to display DD units to 6 decimal places instead of 4? I have some users that have a legal mandate to report to 6 decimal places
Thanks
Jason
-
Jason,
Yes there is a way to display more decimal places. You have to alter the defaultviewer.html.
check out this forum: https://support.geocortex.com/SupportForums/Thread.aspx?pageid=0&mid=2&ItemID=7&thread=45729
You are going to need 7-zip File Manager, to open the .vte file.
Hope that helps.
Tim0 -
Thank you for your reply. I administer multiple sites. Not all sites require the 6 decimal places over the default 4. My understanding is that changing the default settings will apply to all sites. Is there a way to change just for one site?
Thanks again
Jason
0 -
You can add the same value to the specific viewer.xml instead of the default which will overide the default values. The viewer.xml config takes precedence over the default config.
0 -
Thanks for your quick reply. My understanding is that I am trying to find a portion of the code that looks like this:
<Configuration GeometryServiceUri="{GeometryServiceUri}">
<CoordinateSystems>
<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="GDA94 MGA Zone 54" WKID="28354" NumDigits="2" DisplayAsDMS="false" DisplayAsLatLon="false" />
<CoordinateSystem DisplayName="GDA94 MGA Zone 55" WKID="28355" NumDigits="2" DisplayAsDMS="false" DisplayAsLatLon="false" />
</CoordinateSystems>
</Configuration>There I can change the NumDigits variable. However, I cannot find this. I have looked in the viewer.xml of the particular site where I want this changed. I also looked in the numerous files in the default configurations (.vte).
This is probably simple and I am overlooking it.
Thanks!
Jason
0 -
Jason,
I didn't think you could, but after playing around in the viewer.html I found if you change the path of your External Configuration to a different default.xml it would look at the changed xml. (example below)
<ExternalConfigs>
<ExternalConfig Uri="../../../../../../Templates/SilverlightViewer_1_6/VirtualDirectory/Viewer.Defaultsa .xml" />
</ExternalConfigs>What i did was change the viewer.default.xml to the different setting i wanted, then did a save as and named it Viewer.defaulta.xml. Once that was done changed the particular site's viewer.xml to the above path. And it worked to extend the decimal places on the one viewer.
Then you can set it up to where you have different set ups for each site, or group certain ones to look at certain viewer defaults. I could not find a place to set the coordinate systems or the decimal places in the site viewer, you might have to add certain code to change it in each viewer.
That helped me figure out how to change things on one site but not all, thanks.
Tim
0 -
You will need to add that xml code to your viewer.xml file in the same place it is in the default. Here is a sample of what you need to add to your globals tag in your viewer.xml. The viewer will then use this config instead of the settings in the viewer defaults.
<CoordinateSystems>
<CoordinateSystem DisplayName="WA State Plane North" WKID="2285" NumDigits="4" DisplayAsDMS="false" DisplayAsLatLon="false" Default="true" />
<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="Web Mercator" WKID="102100" NumDigits="6" DisplayAsDMS="false" DisplayAsLatLon="false"/>
</CoordinateSystems>0 -
I wouldn't recommend running multiple viewer defaults. I don't think it was designed to work that way and its really not needed since your viewer.xml can overide any defaults settings.
0 -
That worked. Thank you all for your responses and help.
0
Please sign in to leave a comment.
Comments
8 comments