title: identicalCRS(x, y) is not TRUE error in R for individual tree detection using chm
body: <p>I have a LiDAR point cloud data for a dimension of 250*250 m^2 area (a forest region). I need to separate out individual trees using that data. </p>
  
  <p>I created Canopy Height Model(CHM) using LASTools and used that CHM for tree delineation. I'm attaching that <a href="https://www.dropbox.com/s/5tmoxgs465398os/dem_test.tif?dl=0" rel="nofollow">chm file</a> (this raster will give the height information)</p>
  
  <p>I tried to use <code>rLiDAR</code> package available in R.  </p>
  
  <p>I coded like this</p>
  
  <pre><code>library(rLiDAR)
  schm &lt;- CHMsmoothing(chm, "mean", 5)
  
  # Setting the fws:
  fws &lt;- 5 # dimention 5x5
  
  # Setting the specified height above ground for detectionbreak
  minht &lt;- 8.0
  
  # Getting the individual tree detection list 
  treeList &lt;- FindTreesCHM(schm, fws, minht)
  </code></pre>
  
  <p>But it's giving an error</p>
  
  <blockquote>
    <p>Error: identicalCRS(x, y) is not TRUE</p>
  </blockquote>
  
  <p>How can I overcome this?</p>