Hello,
we create a shapefile in MapSuite V10 from an FeatureLayer. To create the prj-file we use the following Code:
var cul = System.Threading.Thread.CurrentThread.CurrentCulture;
System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
string c = Proj4Projection.ConvertProj4ToPrj(p4.InternalProjectionParametersString);
string filename = Path.Combine(Path.GetDirectoryName(editShapefileFeatureLayer.ShapePathFilename), Path.GetFileNameWithoutExtension(editShapefileFeatureLayer.ShapePathFilename));
filename = filename + ".prj";
System.IO.File.WriteAllText(filename, c, System.Text.Encoding.UTF8);
System.Threading.Thread.CurrentThread.CurrentCulture = cul;
The variable “p4” is from type Proj4Projection and will create by a given ProjectionParametersString. For the ProjectionParametersString we use the static method “GetEpsgParametersString”. If we use WGS84 (4326) ther are no Problems, but if we use CRS with EPSG-Code 25832 or 25833 (often used in Germany) the prj-file will no accepted from ArcMap.
Any suggetions?
AlleStammdatenHarz25832.zip (6.3 KB)Regards Torsten