You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stringthisField=fields[attributesBranch.IndexOf(item)];//fields are string
23
+
24
+
// ---------------------this is in order add the riight type?
25
+
26
+
if(itemisGrasshopper.Kernel.Types.GH_Integer)
27
+
{
28
+
stringthisAttribute=item.ToString();
29
+
Convert.ChangeType(thisAttribute,typeof(int));
30
+
thisAttribtues.Add(thisField,thisAttribute);
31
+
}
32
+
33
+
elseif(itemisGrasshopper.Kernel.Types.GH_Number)// else if (typeItem is long //|| typeItem is ulong //|| typeItem is float //|| typeItem is double //|| typeItem is decimal)
/// Initializes a new instance of the PolygonJSON class.
15
+
/// </summary>
16
+
publicPtLongLat()
17
+
:base("PtLongLat","XY-LL",
18
+
"This component provides the lat lon location of a given X Y coordinates given the X Y .Proj file of source coordinates. Lat Lon are in KnownCoordinateSystems.Geographic.World.WGS1984",
19
+
"BearGIS","projection")
20
+
{
21
+
}
22
+
23
+
/// <summary>
24
+
/// Registers all the input parameters for this component.
pManager.AddNumberParameter("X_Longatude","XLong","Longatude of desired xy point",GH_ParamAccess.item);
27
+
pManager.AddNumberParameter("Y_Latatude","YLat","Latatude of desired xy point",GH_ParamAccess.item);
28
+
pManager.AddTextParameter("SourcePrj","SPrj","File Path of the source projection '.Prj' File representing the source coordinate system",GH_ParamAccess.item);
29
+
pManager.AddTextParameter("targetPrj","TPprj","File Path of the target projection '.Prj' File representing the target output coordinate system",GH_ParamAccess.item);
30
+
}
31
+
32
+
/// <summary>
33
+
/// Registers all the output parameters for this component.
0 commit comments