コード例 #1
0
ファイル: GPXHelper.cs プロジェクト: OliveiraThales/GeoCache
        public static MapPoint LoadWayPointGeometry( wptType wpt )
        {
            wpt.RequireArgument<wptType>( "wpt" ).NotNull<wptType>();

            return new MapPoint( ( double ) wpt.lon, ( double ) wpt.lat );
        }
コード例 #2
0
ファイル: GPXHelper.cs プロジェクト: OliveiraThales/GeoCache
        public static IDictionary<string, object> LoadWayPointAttributes( wptType wpt, IDictionary<string, object> attributes )
        {
            wpt.RequireArgument<wptType>( "wpt" ).NotNull<wptType>();
            attributes.RequireArgument<IDictionary<string, object>>( "attributes" ).NotNull<IDictionary<string, object>>();

            attributes.Add( "ele", wpt.ele );
            attributes.Add( "time", wpt.time );
            attributes.Add( "magvar", wpt.magvar );
            attributes.Add( "geoidheight", wpt.geoidheight );
            attributes.Add( "name", wpt.name );
            attributes.Add( "cmt", wpt.cmt );
            attributes.Add( "desc", wpt.desc );
            attributes.Add( "src", wpt.src );
            attributes.Add( "link", wpt.link );
            attributes.Add( "sym", wpt.sym );
            attributes.Add( "type", wpt.type );
            attributes.Add( "fix", wpt.fix );
            attributes.Add( "sat", wpt.sat );
            attributes.Add( "hdop", wpt.hdop );
            attributes.Add( "vdop", wpt.vdop );
            attributes.Add( "pdop", wpt.pdop );
            attributes.Add( "ageofdgpsdata", wpt.ageofdgpsdata );
            attributes.Add( "dgpsid", wpt.dgpsid );

            return attributes;
        }