File:Jack the ripper rossmo 3.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(948 × 623 pixels, file size: 1.11 MB, MIME type: image/png)

Captions

Captions

Jack The Ripper canonical five, Rossmo analysis

Summary[edit]

Description
English: Jack The Ripper canonical five, Rossmo analysis
Date
Source Own work
Author Merikanto
Camera location51° 31′ 02.58″ N, 0° 04′ 13.27″ W  Heading=0° Kartographer map based on OpenStreetMap.View this and other nearby images on: OpenStreetMapinfo

Source of location data is

"Jack The Ripper significiant locations"

https://www.google.com/maps/d/viewer?mid=1nkmEUBhDk400CTeJwDwLkHAz6JA&ie=UTF8&hl=en&msa=0&z=15&ll=51.51856111815372%2C-0.06886693853310755

Map is Leaflet Openstreetmap (OSM)

"R" code to produce the map You must georeference this map with QGIS georeferencer and convert it to lonlat form (EPSG 4326). Convert RGB image to palette imege.

Source of old london map is

1894 Ordnance Survey Map of Whitechapel downloaded from http://www.casebook.org/official_documents/map/images/ord_map_full.jpg

Cropped and annotated with seven red dots to show the location of seven murders attributed to Jack the Ripper


Note: There seems to be errors in some murder site data!

    1. Jack the Ripper, locations
    1. "R" rgeoprofile
  1. leaflet openstreetmap
    1. 0000.0005 1.8.2021
    1. must do this on first time, if you dop not have Rcpp
  1. install.packages("Rcpp", repos ="https://ftp.acc.umu.se/mirror/CRAN/")


library(Rcpp)

library(raster) library(rgeoprofile) library(leaflet) library(htmltools) library(exportwidget) library(leaflet.minicharts) library(htmlwidgets) library(mapview) library(webshot)

library(magick)

library(knitr)


rina1<-raster("whitechapel_ref4.tif")

raster::crs(rina1) <- sp::CRS("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs")

    1. Originals
  1. names<-c("Nichols","Eddowes","Kelly","Chapman","Stride")
  2. lats<-c(51.520036,51.513728, 51.518679,51.520447,51.513729)
  3. lons<-c(-0.060401,-0.078042,-0.075092,-0.072564,-0.06559)
  4. ages<-c(43,46,35,47,44)
  5. dates<-as.Date(c('1888-08-31','1888-09-30','1888-11-09','1888-09-08','1888-09-30') )
    1. arrempt to correct coords

names<-c("A","B","C","D","E") lats<-c(51.5203785, 51.5186270, 51.5199207, 51.5137500,51.5137633) lons<-c(-0.0737000,-0.0752304,-0.0610239,-0.0779247,-0.0657004) ages<-c(1,2,3,4,5) dates<-as.Date(c('1888-01-01', '1888-01-01','1888-01-01','1888-01-01','1888-01-01') )


daata<-data.frame(names, ages,dates, lats, lons) names(daata)<-c("name","age","date","lat","lon")


cgt <- cgt_profile(daata$lat, daata$lon) ## rossmo


  1. cgt <- linear_profile(daata$lat, daata$lon) ## ok
  1. cgt <- neg_exp_profile(daata$lat, daata$lon ,method = "CrimeStat") ## ok
  1. cgt <- norm_profile(daata$lat, daata$lon) # negative
  1. cgt <- lognorm_profile(daata$lat, daata$lon ) ## nok, too flat


    1. cgt <- trun_neg_exp_profile(daata$lat, daata$lon ) ## nega, maximal distance


    1. ok
  1. cgt <- neg_exp_profile(daata$lat, daata$lon , method = "Dragnet")


  1. cgt <- neg_exp_profile(daata$lat, daata$lon , method = "Dragnet", buffer = TRUE) ## nega ympyrät



g_map = sp::SpatialPixelsDataFrame(points = cgt[c("lons", "lats")], data = cgt) g_map <- raster::raster(g_map)

raster::crs(g_map) <- sp::CRS("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs")

pal <- colorNumeric(pals::parula(200), raster::values(g_map),

                   na.color = "transparent")


pallete2<-rev(pals::kelly(2)) pal2 <- colorNumeric(pallete2, raster::values(rina1),

                   na.color = "transparent")                   
                   
  1. pal2 <- colorNumeric(pals::coolwarm(200), raster::values(rina1),
  2. na.color = "transparent")
  1. 51.517384, -0.0703541

cgt_map <- leaflet(options = leafletOptions(zoomControl = FALSE) ) %>% addTiles() %>% setView(lng = -0.0703541, lat = 51.517384, zoom = 16) %>% addRasterImage(rina1, colors = pal2, opacity = 0.8) %>% addRasterImage(g_map, colors = pal, opacity = 0.45) %>% #addLegend(pal = pal, values = raster::values(g_map), title = 'Score') %>% #addMarkers(lng=lons,lat=lats,popup=names) %>% addCircleMarkers(lng = daata$lon, lat = daata$lat, radius = 10, opacity = 1,

                 stroke = FALSE, fillOpacity = 0.75, weight = 2,
                 fillColor = "red")
                  

saveWidget(cgt_map , file = "rosmo.html", selfcontained = FALSE)

  1. saveWidget(cgt_map , file = "rosmo2.html", selfcontained = TRUE)

webshot("rosmo.html", file = "rosmo.png",

       cliprect = "viewport")

my_image <- image_read("rosmo.png") my_svg <- image_convert(my_image, format="svg") image_write(my_svg, "rosmo0.svg")


 mapshot(cgt_map, url = paste0(getwd(), "/map.html"))
 ## create standalone .png; temporary .html is removed automatically unless
 ## 'remove_url = FALSE' is specified
 mapshot(cgt_map, remove_url = FALSE, file = paste0(getwd(), "/map.pdf"))
 



Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current18:00, 1 August 2021Thumbnail for version as of 18:00, 1 August 2021948 × 623 (1.11 MB)Merikanto (talk | contribs)Update
15:17, 1 August 2021Thumbnail for version as of 15:17, 1 August 2021992 × 744 (1.51 MB)Merikanto (talk | contribs)Pallete
15:04, 1 August 2021Thumbnail for version as of 15:04, 1 August 2021992 × 744 (1.5 MB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata