The default coordinate system\spatial reference when clicking “enter custom coordinate”,
The default coordinate system\spatial reference when clicking “enter custom coordinate”,
I’m wondering if there is a way to have the “default 28191” as the default coordinate system when the “enter custom coordinate” is clicked.
/customer/servlet/servlet.FileDownload?file=00P6000000elthlEAA
/customer/servlet/servlet.FileDownload?file=00P6000000em1gHEAQ
Thank you
Best
Jamal
-
Hi Jamal,
If the "28191" coordinate system is defined in the <CoordinateSystem> section of the Viewer.xml you can add the attribute Default="true" to make it the default coordinate system.
0 -
Many thanks Nicholas for the help,
I couldn’t find the "28191" coordinate system neither on the Viewer.Defaults.xml or in the Viewer.xml while it appears on the prospective viewer:
what might be the issue here?
/customer/servlet/servlet.FileDownload?file=00P6000000elu3DEAQ
/customer/servlet/servlet.FileDownload?file=00P6000000elu2KEAQ
/customer/servlet/servlet.FileDownload?file=00P6000000eltp1EAA
0 -
You need to add that CoordinateSystem listing yourself for it to be used in your Viewer. Example:
<CoordinateSystem DisplayName="Palestine 1923" WKID="28191" NumDigits="4" DisplayAsDMS="false" DisplayAsLatLon="true" Default="true" />
0 -
Thanks John,
I couldn’t figure out where this setting is managed:
At the level of application?
C:\inetpub\wwwroot
At the level of site?
C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites
At the level of viewer (assuming A1 is the site and B1 is a viewer inside)?
C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\A1\Viewers\B1\VirtualDirectory
However, I managed to approach the Viewer.Defaults.xml which is located in and stick the palestine 1923 you have already provided:
C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\Templates\Temp\SilverlightViewer_1_10\VirtualDirectory
-----------------------
<CoordinateSystems>
<CoordinateSystem DisplayName="Palestine 1923" WKID="28191" NumDigits="4" DisplayAsDMS="false" DisplayAsLatLon="true" 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="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>
--------------
Nevertheless, the default coordinate when using “enter custom cooridnates” is not the Palestine 1923
What other issues should I consider?
0 -
It looks like you have two coordinate systems set to default.
----------------------
<CoordinateSystems>
<CoordinateSystem DisplayName="Palestine 1923" WKID="28191" NumDigits="4" DisplayAsDMS="false" DisplayAsLatLon="true" 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="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>
----------------------
I would try deleting Default="true" from the second one and see if that changes it. Also, you can change this at the Viewer.Defaults.xml level if you want it to apply to all Viewers. Otherwise you can also copy and paste it into your individual Viewer.xml if you want the changes to apply to a single Viewer.
0 -
Many thanks John for the massive help,
It works fine now with the settings below contained on the Viewer.Defaults.xml file saved on the location:
C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\Templates\Temp\SilverlightViewer_1_10\VirtualDirectory
---------
<CoordinateSystem DisplayName="Palestine_1923_Palestine_Grid" WKID="28191" 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="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>
--------------
/customer/servlet/servlet.FileDownload?file=00P6000000elzYTEAY
0 -
Hi Jamal
just need to be aware that that is a temp file that will get overwritten without warning. It is generated from the files in the Templates directory.
Regards
Ralph
0 -
Thanks Ralph,
Could you please provide the default location of Viewer.Defaults.xml and Viewer.xml on the hard drive such that this coordinate system is permanently kept?
0 -
Hi Jamal
have a look at this Knowledge Base article: https://support.geocortex.com/how-to-edit-your-viewerdefaultsxml
Regards
Ralph
0 -
Thanks Ralph. This is very useful.
Best
Jamal
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
10 Kommentare