Hi,
I am creating grid files in WGS-84 Lat/Long and then attempting to load them into winformsMap using meters for the map unit and a spherical mercator projection.
At first, the GridFeatureLayer and GridIsolineLayer were showing up tiny as the lat/long coordinates were being used rather than the spherical mercator meter units.
My first attempt to solve this problem was to write out the grid file into Spherical Mercator units. This unfortunately failed because the GenerateGrid method of GridFeatureSource refused to output any valid Z values (all -9999). For whatever reason, if I leave the input points in WGS-84 Lat/Long, the method works.
My second attempt was to modify the Projection property of the GridFeatureLayer so that the external projection was set to Spherical Mercator. This worked nicely. However, I have since been trying to get Isolines to display in the same manner. Unfortunately, there is no FeatureSource of GridIsolineLayer and hence I can't respecify it's projection.
What do you recommend to get both Grids and Isolines to display on spherical mercator projection? Also, why does the GenerateGrid method return -9999 for all Z values when spherical mercator coordinates are supplied.
Thanks,
Damian