Skip to content

Instantly share code, notes, and snippets.

@henningjensen
Created November 12, 2015 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henningjensen/b6e38ab9d27a9db3f3c9 to your computer and use it in GitHub Desktop.
Save henningjensen/b6e38ab9d27a9db3f3c9 to your computer and use it in GitHub Desktop.
Geonorge - CSW search filter organisation and type
var searchFilter = new object[]
{
new BinaryLogicOpType()
{
Items = new object[]
{
new PropertyIsLikeType
{
PropertyName = new PropertyNameType {Text = new[] {"OrganisationName"}},
Literal = new LiteralType {Text = new[] { "Kartverket" }}
},
new PropertyIsLikeType
{
PropertyName = new PropertyNameType {Text = new[] {"Type"}},
Literal = new LiteralType {Text = new[] { "service" }}
}
},
ItemsElementName = new ItemsChoiceType22[]
{
ItemsChoiceType22.PropertyIsLike, ItemsChoiceType22.PropertyIsLike,
}
},
};
var searchFilterNames = new ItemsChoiceType23[]
{
ItemsChoiceType23.And
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment