コード例 #1
0
 private static void WriteProjectedCoordinateSystem(IProjectedCoordinateSystem projectedCoordinateSystem, XmlTextWriter writer)
 {
     writer.WriteStartElement("CS_ProjectedCoordinateSystem");
     WriteCSInfo(projectedCoordinateSystem, writer);
     for (int i = 0; i < projectedCoordinateSystem.Dimension; i++)
     {
         WriteAxis(projectedCoordinateSystem.GetAxis(i), writer);
     }
     WriteCoordinateSystem(projectedCoordinateSystem.GeographicCoordinateSystem, writer);
     WriteLinearUnit(projectedCoordinateSystem.LinearUnit, writer);
     WriteProjection(projectedCoordinateSystem.Projection, writer);
     writer.WriteEndElement();
 }
コード例 #2
0
        private static void WriteProjectedCoordinateSystem(IProjectedCoordinateSystem projectedCoordinateSystem, IndentedTextWriter writer)
        {
            writer.WriteLine("PROJCS[");
            writer.Indent = writer.Indent + 1;
            writer.WriteLine(String.Format("\"{0}\",", projectedCoordinateSystem.Name));
            WriteGeographicCoordinateSystem(projectedCoordinateSystem.GeographicCoordinateSystem, writer);
            writer.WriteLine(",");
            WriteProjection(projectedCoordinateSystem.Projection, writer);
            for (int dimension = 0; dimension < projectedCoordinateSystem.Dimension; dimension++)
            {
                WriteAxis(projectedCoordinateSystem.GetAxis(dimension), writer);
            }
            writer.WriteLine(String.Format("AUTHORITY[\"{0}\",\"{1}\"]", projectedCoordinateSystem.Authority, projectedCoordinateSystem.AuthorityCode));

            writer.Indent = writer.Indent - 1;
            writer.WriteLine("]");
        }
コード例 #3
0
        public static void WriteProjectedCoordinateSystem(IProjectedCoordinateSystem projectedCoordinateSystem, IndentedTextWriter writer)
        {
            writer.WriteLine("PROJCS[");
            writer.Indent=writer.Indent+1;
            writer.WriteLine(String.Format(System.Globalization.CultureInfo.InvariantCulture, "\"{0}\",",projectedCoordinateSystem.Name));
            WriteGeographicCoordinateSystem(projectedCoordinateSystem.GeographicCoordinateSystem, writer);
            writer.WriteLine(",");
            WriteProjection( projectedCoordinateSystem.Projection, writer);
            for(int dimension=0;  dimension<projectedCoordinateSystem.Dimension; dimension++)
            {
                WriteAxis( projectedCoordinateSystem.GetAxis(dimension), writer );
            }
            writer.WriteLine(String.Format(System.Globalization.CultureInfo.InvariantCulture, "AUTHORITY[\"{0}\",\"{1}\"]", projectedCoordinateSystem.Authority, projectedCoordinateSystem.AuthorityCode));

            writer.Indent=writer.Indent-1;
            writer.WriteLine("]");
        }