I face an issue with the Raster tool. I have Polylines that I want to convert to Raster. The spatial reference coordinate system is World Mercator (WGS 84).

I used the "Convert Polyline to Raster" tool. But the problem is that I expected to get an attribute table with all the cells (I defined the cell size as 1000) with values corresponding to the ID of the line crossing the cell... However, I get an attribute table with all values greater than zero and therefore not all the cells.

Is this was linked to the Coordinate System, and if so, do I need to re-define the project and use a system like Lambert Conic (Projection System)?

enter image description here

  • 1
    What software are you using?
    – Maxima
    Aug 22, 2018 at 1:48
  • 1
    Could you add to the question, perhaps expand on what you were expecting as the output? Just a table or a raster of 1s and 0s? What are you trying to accomplish? Do you need to work solely with Raster data? Aug 22, 2018 at 2:18
  • Thanks a lot for your comments. I am using ArcGis. As output I am expecting a raster of 1s and 0s. I actually need to build a measure for a research project and the Raster data appeared to be the best method.
    – Rororo
    Aug 22, 2018 at 3:34
  • Try creating a fishnet for the extent of the line layer. Set your raster cell size as the fishnet grid size. Then select by location and assign a value of 1 to the grids that are selected. Convert the fishnet to raster using polygon to raster tool. That should give you what you want. Aug 22, 2018 at 4:48
  • Thanks a lot. That's actually what I tried to do, but the problem is that I keep getting the Error 001018: the number of output features exceeds OID limits, etc. I don't understand why. Basically what I did is projecting the initial WGS 84 polyline to Lambert Conic and then try to get a fishnet 50 by 50
    – Rororo
    Aug 22, 2018 at 5:02


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.