Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gis objects cleaning #181

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from
Open

Gis objects cleaning #181

wants to merge 10 commits into from

Conversation

KatKatKateryna
Copy link

@KatKatKateryna KatKatKateryna commented Nov 28, 2024

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (dev@650fad3). Learn more about missing BASE report.

Additional details and impacted files
@@          Coverage Diff           @@
##             dev     #181   +/-   ##
======================================
  Coverage       ?   66.53%           
======================================
  Files          ?      245           
  Lines          ?     9975           
  Branches       ?     1065           
======================================
  Hits           ?     6637           
  Misses         ?     2993           
  Partials       ?      345           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

adamhathcock
adamhathcock previously approved these changes Nov 28, 2024
Copy link
Member

@adamhathcock adamhathcock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -5,9 +5,9 @@ namespace Speckle.Objects.GIS;
[SpeckleType("Objects.GIS.CRS")]
public class CRS : Base
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wondering if we need a specific class for this, or if it would make more sense to attach these properties to the layer collection if that's the only place CRS is used.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the plan is to move this to root eventually, and it needs required properties that we cannot enforce on Layer (or anywhere else)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does wkt mean? is it necessary for data extraction workflows? (not interop?)
the other props are all nullable, so this is not following our best practices class design
(if a class has mostly nullable props, should it be a class? )

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WKT (Well Known Text) gives all the information about the coordinate reference system (which is required). Name is also required, and Authority ID is useful, but not always available (e.g. for custom coordinate systems, there are no authority ID). UnitsNative are helpful if some of the properties on the features are stored in the original layer units (before reprojecting and sending to Speckle).

Let me think about offsets and rotation. These are the arguments supported in QGIS with custom functionality we added, but not yet implemented in ArcGIS

@@ -0,0 +1,12 @@
using Speckle.Sdk.Models;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if we need this extra class - you could use the layer:collection class and just add the missing props from crs dynamically

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be hard to enforce required properties, without which GisLayers don't make sense

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is CRS required for data extraction? it seems like it's only used on send, not receive

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, for GIS data, the data must have the georeference


[SpeckleType("Objects.Geometry.Polygon")]
public class Polygon : Base
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's add a required keyword to the boundary, and reconsider the proeprty names based off of other apps that may use polygons


namespace Speckle.Objects.Data;

/// <summary>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment should be updated - I will add this class in another pr, so no need to fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants