Skip to content

MapToXXXConverter in GeoConverters [DATAES-1002] #1574

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

Closed
spring-projects-issues opened this issue Dec 15, 2020 · 5 comments
Closed

MapToXXXConverter in GeoConverters [DATAES-1002] #1574

spring-projects-issues opened this issue Dec 15, 2020 · 5 comments

Comments

@spring-projects-issues
Copy link

pcspapa opened DATAES-1002 and commented

GeoJson Type & Elasticsearch Type

https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-shape.html#input-structure

type.equalsIgnoreCase()

 

 


No further details from DATAES-1002

@spring-projects-issues
Copy link
Author

sothawo commented

what's the problem?

@spring-projects-issues spring-projects-issues added status: waiting-for-feedback We need additional information before we can continue type: bug A general bug labels Dec 31, 2020
@sothawo sothawo added status: waiting-for-triage An issue we've not yet triaged and removed type: bug A general bug labels Dec 31, 2020
@spring-projects-issues
Copy link
Author

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@spring-projects-issues spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label Jan 7, 2021
@spring-projects-issues
Copy link
Author

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

@spring-projects-issues spring-projects-issues removed status: waiting-for-feedback We need additional information before we can continue status: feedback-reminder We've sent a reminder that we need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged labels Jan 14, 2021
@pcspapa
Copy link

pcspapa commented Jan 19, 2021

Sorry for being very late.

  • GeoJsonMultiPolygon.TYPE = "MultiPolygon";

  • Elasticsearch type = "multipolygon"

 "hits" : [
      {
        "_index" : "boundary",
        "_type" : "_doc",
        "_id" : "3nn....",
        "_score" : 1.0,
        "_source" : {
          ...
          "coordinates" : {
            "coordinates" : [
              ....
            ],
            "type" : "multipolygon"
          }
          ...
        }
      },

So, Assert.isTrue(type.equalsIgnoreCase(GeoJsonMultiPolygon.TYPE), "does not contain a type 'MultiPolygon'");

Same for other types.

@sothawo
Copy link
Collaborator

sothawo commented Jan 19, 2021

done with #1655

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

No branches or pull requests

3 participants