Skip to content

Commit

Permalink
fix crs comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Oct 18, 2019
1 parent 66f40ef commit abc49ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/geoflow_entity.R
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ geoflow_entity <- R6Class("geoflow_entity",
sf.crs <- sf::st_crs(sf.data)
if(!is.na(sf.crs)){
srid <- if(!is.null(self$srid)) self$srid else ""
if(srid != sf.crs){
config$logger.info("Overwriting entity srid [%s] with shapefile srid [%s]")
if(srid != sf.crs$epsg){
config$logger.info(sprintf("Overwriting entity srid [%s] with shapefile srid [%s]", srid, sf.crs$epsg))
self$setSrid(sf.crs$epsg)
}
}
Expand Down

0 comments on commit abc49ed

Please sign in to comment.