01-23-2017 09:28 PM - last edited on 01-24-2017 08:50 AM by rlutz
I have a webmap publisher project i've added to my GeoSpatial Portal SDK project as a service source. I would like the area icon to display areas in acres and projection coordinates in survey feet. I have the imperial units of ac and survey_ft added to my web.config file as suggested by support:
<ui dblClickTimeout="400" settingsRequireConfirmation="false" systemOfMeasurement="imperial" enabledUnits="m, km, ft, survey_ft, yd, mi, m2, km2, yd2, ft2, mi2, are, ha, ac">
The workspace projection of the publisher project has the correct units set and i have a csf file in my Webmap Publisher Projects Connection folder with the same settings. Right now, areas are being displayed in miles and coordinates in meters.
The Settings panel shows that Imperial is the System of Measurement.
All of the products being used are the first service pack of 2016 - GeoMedia 2016 ep01, Web Map Essentials 2016 ep01 and SDK 2016 ep01.
Solved! Go to Solution.
01-24-2017 08:57 AM
First off, I'm not sure that survey_ft is supported yet for measurements in a Portal Application. A CR-Ehancement could be logged to add support for that unit type. The supported units are (from the fluidtopics online documentation):
Available units are:
For linear measurements:
For areal measurements:
This is what worked for me. Created a new v 2016, EP01, Publisher Portal application so now I have a Portal application and a WMPS application. Edited the Web.Config of the Portal application and set the enabledunits element tag as so:
<ui dblClickTimeout="400" settingsRequireConfirmation="true" systemOfMeasurement="imperial" enabledUnits="ft, ft2, acre">
Then I went to IIS Manager and restarted IIS. When a change is made in a Web.Config file, IIS must be reset in order to "see" the change. You can also open a command prompt window and key-in the command of: iisreset. There probably is another, easier way to do this, but this workflow does work successfully.
Then I opened the portal application and displayed the WMPS MapWindow1. I then did an Area measurement creating a rectangular area with 4 points and the distance on the lines is show in ft, and the area of the rectangle is shown in acres.
In your case, be sure you have lower case for the word "imperial" and then try with just the units you want omitting survey_ft. I also set the settingsRequireConfirmation parameter to "true" because in my intial testing on version 2015, the desired units were not displayed until I changed that value from "false" to "true".
Please try these changes on your end in the Web.Config file of the Portal application, reset IIS, and then retest the measurements to see if the values of ft and acres are displaying.
Hope this helps.
01-24-2017 09:43 AM - last edited on 01-25-2017 02:31 AM by jan.neumann
Thank you so much Carolyn! I tried it and it worked immediately for "Measure area" - i get measurements in ft as I placed the polygon and then the area is displayed in acres. When i do a "Show Coordinates" though, i am still getting meters. I did remove survey_ft from my list of units - i had thought i would try augmenting the list and see if it worked. I am using EPSG 3436
PROJCS["NAD83 / Illinois West (ftUS)",
01-25-2017 09:13 AM
I do not have enough information nor documentation to know what to expect with the units for Show Coordinate readouts. In the online documentation, it states:
"Use this command to display the coordinates of a pointed location on the map. The coordinates are displayed next to the selected point on the map and are displayed in the specified projection units if you use a projected coordinate system, or in geographic units if you use a geographic coordinate system."
So, I am not sure what this means exactly for a projected coordinate system. Is the Portal application defined to always output Meters for Easting/Northings or is it configurable somewhere or is it dependent on the .csf units defined for Projection readouts, or is it dependent on the Portal CRS Config xml file unit for the specific projection? So far, I have not found anything definite. I am continuing testing to see if I can get the output coordinate units displayed as you need.
Development needs to provide a reply as to exactly what to expect; otherwise, I suggest you do go ahead and log a Service Request on the Show Coordinates command.
01-26-2017 12:58 AM - edited 01-26-2017 02:13 AM
I believe that this should be logged as possible bug. The Show Coordinates command clearly declares that "the coordinates are displayed next to the selected point on the map and are displayed in the specified projection units if you use a projected coordinate system".
But this is not true from my tests. No matter which type of projection I select this command will always show results in metres.
For example I tried those two CRSes:
<code name="NAD83(NSRS2007) / Illinois East" value="EPSG:3528"> ...some definition... <isGeographic>false</isGeographic> <unit> <name>metre</name> <value>1</value> </unit> </code> <code name="NAD83 / Illinois West (ftUS)" value="EPSG:3436"> ...some definition... <isGeographic>false</isGeographic> <unit> <name>US survey foot</name> <value>0.304800609601219</value> </unit> </code>
Please fill an SR.
01-26-2017 01:13 AM
I've also tried playing around with the Proj4 attributes in the CRSConfig file but no luck, Portal still uses metres.
<!-- Original --> <attributes>+proj=tmerc +lat_0=36.66666666666666 +lon_0=-90.16666666666667 +k=0.999941177 +x_0=699999.9999898402 +y_0=0 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192 +no_defs</attributes> <!-- vs. --> <attributes>+proj=tmerc +lat_0=36.66666666666666 +lon_0=-90.16666666666667 +k=0.999941177 +x_0=699999.9999898402 +y_0=0 +ellps=GRS80 +datum=NAD83 +no_defs +units=us-ft</attributes> <!-- vs. --> <attributes>+proj=tmerc +lat_0=36.66666666666666 +lon_0=-90.16666666666667 +k=0.999941177 +x_0=699999.9999898402 +y_0=0 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192 +no_defs +units=us-ft</attributes>