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

Add proper handling of EXTENSION tag #111

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

FObermaier
Copy link
Member

@FObermaier FObermaier commented Dec 8, 2022

Kudos to @gktval

refers to #106

Copy link
Member Author

@FObermaier FObermaier left a comment

Choose a reason for hiding this comment

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

Thanks for the work done @gktval.

/// Adds a parameter to the parameter list
/// </summary>
/// <param name="name">The projection parameter name</param>
/// <param name="value">The value</param>
Copy link
Member Author

Choose a reason for hiding this comment

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

Use Projection.Parameters.Add(new ProjectionParameter(name, value)); and remove this method

/// <summary>
/// Adds a parameter to the parameter list
/// </summary>
internal void AddParameter(string name, double value)
Copy link
Member Author

@FObermaier FObermaier Dec 8, 2022

Choose a reason for hiding this comment

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

This is not needed to get the solution to compile. The parameters need to be present when the class is constructed anyway, so adding parameters afterwards will not do any good.

var projection = new Projection(projectionName, paramList, projectionName, authority, authorityCode, string.Empty, string.Empty, string.Empty);
return projection;
}

private static void ReadParamater(WktStreamTokenizer tokenizer, Projection projection)
Copy link
Member Author

Choose a reason for hiding this comment

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

Typo ReadParameter, argument projection could be of type ICollection<ProjectionParameter>

gktval pushed a commit to gktval/ProjNet4GeoAPI that referenced this pull request Dec 9, 2022
Removed the AddParameter method.
Added async search methods to the database.
@gktval
Copy link

gktval commented Dec 9, 2022

Thanks, I remember having problems with AppCompat on that. What you did works. I also made those fixes in #108. There should be a new, third commit to that branch. I am not sure what the conflict is with ProjNet.Test.csproj in that commit.

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.

2 participants