Skip to main content

Coordinate Tools

Comments

19 comments

  • Permanently deleted user

    Hi Monica,

    This can be done by editing your Viewer.xml file to override the default configuration for the CoordinateTool.

    Your Viewer.Defaults.xml file will contain the default setup for the tool, which will look like this:

     

         <CoordinateTool>

     

          <Views>

     

            <View Region="CoordinateToolsRegion" Type="Geocortex.EssentialsSilverlightViewer.CoreModules.CoordinateTool.CoordinateToolView" />

     

            <View Id="CustomCoordinateView" Region="ModalWindowRegion" Type="Geocortex.EssentialsSilverlightViewer.CoreModules.CoordinateTool.CustomCoordinateView" Visible="false" />

     

            <View Id="MouseCoordinatesView" Region="CoordinatesRegion" Type="Geocortex.EssentialsSilverlightViewer.CoreModules.CoordinateTool.CoordinatesView" Visible="true" />

     

          </Views>

     

          <Configuration GeometryServiceUri="{GeometryServiceUri}">

     

            <CoordinateSystems>

     

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

     

            </CoordinateSystems>

     

          </Configuration>

     

        </CoordinateTool>

     

    If you copy this text configuration into the Modules element for your Viewer.xml, you can add your coordinate system to the CoordinateSystems element and it will show up in the coordinate systems drop down. Example:

    <CoordinateSystem DisplayName="Ohio North" WKID="3734" DisplayAsDMS="false" DisplayAsLatLon="false" />

    0
  • Permanently deleted user

    Hi Jason

    I would have also thought that this would apply if the other coordinate systems were added to the viewer.defaults.xml so that I only needed to make the change once.

    Unfortunately the change that I have made to the viewer.defaults.xml is not flowing though to the viewer

    The question is should it? This is using GE3.10 and SL16

    Thanks

    Ralph

    0
  • Permanently deleted user

    Hi to all

    after reviewing this it is likely that there is more than one viewer.defaults.xml present, the one in c:\inetpub\wwwroot\viewerVersion\config and another in a location with a confusing path/URI.

      <ExternalConfigs>

     

        <ExternalConfig Uri="../../../../../../Templates/SilverlightViewer_1_6/VirtualDirectory/Viewer.Defaults.xml" />

     

      </ExternalConfigs>

    In all likelihood my changes have been ignored due to changing the wrong file.

    Such a path is decidedly awkward to figure  out its location so does anyone know any reason not to point the uri at http://server/viewerVersion/config/viewer.defaults.xml?

    Thanks

    Ralph

    0
  • Permanently deleted user

    Hi to all

    Once I edited the file at:

    C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\Templates\Temp\SilverlightViewer_1_6\VirtualDirectory

    the CoordSystems showed up perfectly in the Viewer.  It would just have been nice if the file at c:\inetpub\wwwroot\viewerVersion\config was consistently read and copied to the above temp location

    Thanks

    Ralph

    0
  • Permanently deleted user

    Thank you everyone for the help.  We were able to find the correct configuration file but our coordinates are only reading Northing coordinates for both the x & Y instead of Northing and Easting.  Any ideas why this would be the case?

    Monica

    0
  • Permanently deleted user

    We ran into one more issue.  The viewer keeps reverting back to it's original state. Is there more than one configuration file we need to update to make sure the modification stays?

     

    0
  • Permanently deleted user

    Is your original config inheriting from the viewer.defaults.xml or is it a standalone config?

    0
  • Permanently deleted user

    Ralph you're a genius! Thanks

    0
  • Permanently deleted user

    Hi Justin

    While the genius tag would be great (and overly generous) it more comes down to a matter of reading the manual (or knowledge base).

    Check out  this: https://support.geocortex.com/how-to-edit-your-viewerdefaultsxml

    Regards

    Ralph

    0
  • Eric Kriener

    Monica,

    Did you figure out the northings only problem?

    thanks.

    0
  • Permanently deleted user

    Yes. Our programmer contacted the help desk and they walked her through how to fix it. She has since left our company so I'm not sure what she did.

    0
  • Eric Kriener

    Whelp....

    Thanks for the quick reply.

    Maybe someone from Geocortex can answer this for everyone...

    0
  • Permanently deleted user

    Hi Monica,

     we track all the cases in support, so you could create a new case and ask us to look at what was previously done in that old case.

    regards,

     

    Edmond
    0
  • Permanently deleted user

    This is what I found in an email chain between the programmer and myself...

    It looks like Edmond took care of the ticket.

    The follow up email to this explained that it was fixed so this is the last bread crumb that i have short of opening the ticket below.

    ~~~~~~~~~~~~~~~~~

    From: Edmond Duggan [mailto:support@latitudegeo.com]

     

    Sent: Wednesday, August 29, 2012 12:54 PM

     

    To:

     

    Subject: RE: Changes revert in Veiwer (Essesntials 3.8) [ ref:_00D30nQM._50060LId0s:ref ]

     

    Hi Rebecca,

     

     My apologies, based on the brief case notes I assumed that you were editing viewer.xml and not Viewer.defaults.xml.

     

     

     

     Editing the values in Viewer.defaults.xml does take a little work, as the changes must be incorporated into the VTE file.

     

    The original case description also notes that you followed a blog posting. Were you looking at the knowledge base article "How to edit your Viewer.Defaults.xml"? It can be found here: https://support.geocortex.com/how-to-edit-your-viewerdefaultsxml

     

    If so, the first section of last step in the article might lead you to believe that making the change is all that is required. Actually, if you read further there are a couple more steps to ensure the system deploys the changes immediately.

     

    However, if you are following these instructions and it's not working, please send me the VTE file and a good time to call. We can troubleshoot the system via a screen share.  

     

    regards,

     

    Edmond

     

    PS: The changes in the web.config should be left in your system, as they prevent updates in Manager not getting deployed in your system.

     

     

     

    0
  • Eric Kriener

    Thanks.

    Yeah, I got all that.

    My coordinate system is showing up in the list, but it is displaying only northing for both values ( and is actually not updating when I click).

    Can't believe we are the only two to have this problem....

    0
  • Permanently deleted user

    We upgraded our test environment to 4.0 and had to re-apply the same update.

    Our programmer provided the following information:

    From Jin Zhang:

    I have added Ohio State Plane Coordinate setting back to the viewer.

    To make the Viewer app read this Coordinate setting, the viewer.defaults.xml file(not the viewer.xml from the site) hiding inside of the Geocortex.Essentials.SilverlightViewer.Template.2.1.vte need to be modified (this file can be found on the server at \Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\Templates\).  Here is a Geocortex support document explaining how to do this.

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

     

    Hope this helps.

    Monica

    0
  • Permanently deleted user

    Put the following line of code inside of   <CoordinateSystems> tag. For example:

     

    <CoordinateSystems>

          <CoordinateSystem DisplayName="Ohio State Plane" WKID="3734" NumDigits="2" DisplayAsDMS="false" DisplayAsLatLon="true" />

       

       

    </CoordinateSystems>

    0
  • Dibya Pradhan
    I got the export coordinate working but when I export to CSV file format, it exports like this with 57° 0' 23.0" N with special character infront of degree. How can this be fixed?User-added image

     

     
    0
  • Tom Neer
    Welcome to the nightmare of character encoding. The degree symbol is "0xB0" in WIN-1252. When it is encoded in UTF-8 it becomes "0xC2 0xB0". "0xC2" is the "Â" character. You can double-check this in Notepad++ by changing the encoding. 

     

    It looks like Excel is reading this as "ANSI" by default. There is a way in the registry to alter this behavior but the easiest is to use the IMPORT command in Excel and set the File Origin as UTF-8.

     

    User-added image
    0

Please sign in to leave a comment.