public Projection.Projection GetProjection(String name, IDictionary <string, string> parameters) { Type cls; if (_projRegistry == null) { Initialize(); } if (_projRegistry.TryGetValue(name, out cls)) { try { Projection.Projection projection = Activator.CreateInstance(cls) as Projection.Projection;//, parameters) as Projection.Projection; if (projection != null) { projection.Name = name; } return(projection); } catch (Exception e) { Console.WriteLine(e.StackTrace); } //catch (IllegalAccessException e) //{ // //e.printStackTrace(); //} //catch (InstantiationException e) //{ // //e.printStackTrace(); //} } return(null); }
public CoordinateReferenceSystem(String name, String[] parameters, Datum.Datum datum, Projection.Projection proj) { _name = name; _parameters = parameters; _datum = datum; _proj = proj; if (name == null) { String projName = "null-proj"; if (proj != null) { projName = proj.Name; } _name = projName + "-CS"; } }
public ProjectionException(Projection.Projection proj, String message) : this(proj + ": " + message) { }