Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3074

Can't extract geo keys - Reason: can't project geometry into spherical CRS

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Write Operations
    • None
    • Environment:
      JBOSS WildFly 13 + Springboot 2.0.3.Release

      I'm using java code to insert a new record to DB document which is worker (user) and has its location's address defined with text fields and location field contains lat/_lng _coordinates.

      Worker result = this.workerRepository.insert(worker);

       

      Involved fields and their definitions:

      public interface WorkerRepository extends MongoRepository<Worker, String>

      worker's location field:

      /** The location. */
      @NotNull
      @GeoSpatialIndexed(type = GeoSpatialIndexType.GEO_2DSPHERE)
      private PlacePoint location;

       

      Getting the exception for SPECIFIC CITY (despite all, I saw this exception with other addresses, but currently don't have logs): Krasnoyarsk or Красноярск (lat/lng coordinates have been provided by Google geoCode API): 

      can't project geometry into spherical CRS: { lat: 56.0126925, lng: 92.922417 }

       

      The full exception will attach to the ticket. Please ignore ??? in some fields, it is deal only of printing.

       

       

        1. exception 3.txt
          4 kB
        2. exception2.txt
          2 kB
        3. exception.txt
          17 kB

            Assignee:
            Unassigned Unassigned
            Reporter:
            walkmypet Vladimir B
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: