Hallo,
in my Map I use GoogleMapsLayer as Backgroundlayer. I try to display a Shapefile (EPSG 5650) over the googlelayer - with no results. Is this a bug of Pro4Projection-Class? There are no problems with other prj-Files (EPSG 31468, 31469...)
any help would be appreciated
Regards Torsten
I use the code below...
void demo(ShapeFileFeatureLayer ly, string filename_)string filename = Path.Combine(Path.GetDirectoryName(filename_), Path.GetFileNameWithoutExtension(filename_));if (string.IsNullOrEmpty(filename)) return; else filename = filename + ".prj";if (File.Exists(filename) == false) return;var cul = System.Threading.Thread.CurrentThread.CurrentCulture;Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;string prjFileText = System.IO.File.ReadAllText(filename); //get the text of the .prj file.
proj4.InternalProjectionParametersString =
proj4.ExternalProjectionParametersString =
System.Threading.
ly.FeatureSource.Projection= proj4;
}
ManagedProj4Projection proj4 = new ManagedProj4Projection();Proj4Projection.ConvertPrjToProj4(prjFileText);Proj4Projection.GetGoogleMapParametersString();Thread.CurrentThread.CurrentCulture = cul;
{
System.Threading.
EPSG_5650.ZIP (23.5 KB)