2

I have many geographical objects described as polylines, polygons, multipolygons. All objects are in WGS84. Object could be: a building, stadium, park, street, highway, city, state, even country and continent

I need:

  1. calculate accurate area/length for each object.
  2. calculate intersection are for objects.

I've read some topics here: How to select projection

and there was a comment from @AndreJ:

You are right for the points, but the whole continent is just too large for UTM. For the intersection, try EPSG:3857 or 4326. – AndreJ Jan 29 '14 at 11:35

I don't understand it. 4326 is in degrees, I can't use it to measure area of smth, I need meter unit. 3857 is for "web", 3857 should give significant errors and distortions if used for computation...

I want to automate the process of course. I have billions of objects. Is there any java library for that? I used Geotool/JTS but it's only for planar geometry. I need to correctly project before using it :)

I see several approaches:

  1. Dirty: Get object bounding box and select proper UTM zone for projection and use geo-tools java lib to do it.
  2. If object is big enough (I have category for each object, I know if it's state/country/small lake in the forest)

2.1. Use some special projection for huge objects

2.2. Or split it (continent for example) by UTM zones, correctly project parts of object and them do calculation on top of these pieces.

I don't want to invent one more bicycle, probably we already have something ready for that?

EDIT: please see that I need to calc area and area of intersection. I need to preserve shape to calc correct in intersection area.

Coordinate system for accurately calculating areas of polygons that cross UTM Zones? is about area, but not intersections...

14
  • 1
    My earlier comment was just about the intersection problem. For area calculation, an equal area projection would be best.
    – AndreJ
    Aug 6, 2015 at 11:00
  • 1
    If you use a continent-wide aea or laea projection instead of UTM, it should go in one step.
    – AndreJ
    Aug 6, 2015 at 11:24
  • 1
    Albers Equal Area and Lambert Azimuthal Equal Area. Both should be best for area calculation.
    – AndreJ
    Aug 6, 2015 at 12:34
  • 1
    Apart from areas, the map designer might want to preserve shape, distance and angle as well. But no projection offers all together.
    – AndreJ
    Aug 6, 2015 at 12:57
  • 1
    remotesensing.org/geotiff/proj_list/cylindrical_equal_area.html would be the third alternative. They all promise equal-area, not sure which looks better.
    – AndreJ
    Aug 11, 2015 at 11:14

0

Your Answer

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

Browse other questions tagged or ask your own question.