-
Type: Task
-
Resolution: Done
-
Priority: 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.