-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Question
On the whole, I’m unsure as to why there are so many options, or when to use one over the other, or why add_sids doesn’t give the same results as calling a_sdf.make_sids() or starepandas.tools.sids_from_polygon. It seems to me given the title STAREPandas that I should prefer dataframe operations like add_sids or a_sdf.make_sids over calling extra-df methods like
starepandas.tools.sids_from_polygon.
Answer
STAREDataFrame.make_sids()will return a series of SIDs computed from the geometry column of the STAREDataFrame object.- The STAREDataFrame constructor has an option to
add_sidswhen bootstrapping an SDF from a GDF. Unfortunately, the constructor does not allow settingforce_ccwandconvex. It setsforce_ccw=Trueandconvex=False. If you have a CW polygon, the constructor will force it to be CCW, whilemake_sidsallows you to keep it CW. - starepandas.tools.sids_from* are indeed internal methods that
make_sidsutilizes. Users are not expected to interact with them, though they can be useful to access directly in certain situations.
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation