Creating an switch statement for geometry

Help
2012-09-18
2013-05-30
  • Hank Finley
    Hank Finley
    2012-09-18

    Hi All,
    I am new to JTS so forgive the simple question.
    How can I create a switch statement for geometry types in Java, is it possible?

    e.g.

    Switch (Geometry){
        Case (Point){
            break;
        }
        Case (Linestring){
            break;
        }
        Case (Polyline){
            break;
        }
    }
    

    Regards Hank