HERE Android SDK Developer's Guide

GeoMesh

The class GeoMesh is a member of com.here.android.mpa.mapping .

Class Summary

public final class GeoMesh

extends com.here.android.mpa.mapping.Mesh, java.lang.Object

Represents the mesh data for a MapGeoModel.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in GeoMesh
Constructors

GeoMesh ()

Creates a GeoMesh .

Method Summary

Table 2. Methods in GeoMesh
Methods

public GeoMesh setVertices (java.util.List <GeoCoordinate> vertices)

Sets a List of GeoCoordinate objects representing the vertices associated with the GeoMesh .

public GeoMesh setVertices (DoubleBuffer vertices)

Sets a DoubleBuffer representing a list of vertices associated with the GeoMesh .

Class Details

Represents the mesh data for a MapGeoModel.

The properties of a GeoMesh include vertices, specified as either GeoCoordinate objects or an array of double values representing the latitude, longitude and altitude of each vertex sequentially.

Constructor Details

GeoMesh ()

Creates a GeoMesh .

Method Details

public GeoMesh setVertices (java.util.List <GeoCoordinate> vertices)

Sets a List of GeoCoordinate objects representing the vertices associated with the GeoMesh .

Parameters:

  • vertices

    A List of GeoCoordinate representing the vertices used to form the GeoMesh.

Returns:

The updated GeoMesh.

Throws:

  • IllegalArgumentException

    if vertices is empty.

  • IllegalArgumentException

    if vertices contains more than 65536 GeoCoordinate.

public GeoMesh setVertices (DoubleBuffer vertices)

Sets a DoubleBuffer representing a list of vertices associated with the GeoMesh .

Each vertex is specified as triplets of latitude, longitude and altitude. All triplets are then placed into a DoubleBuffer sequentially to represent the list of vertices.

Parameters:

  • vertices

    Desired DoubleBuffer list of GeoCoordinate, i.e. vertex, in multiples of three.

Returns:

The updated GeoMesh.

Throws:

  • IllegalArgumentException

    if vertices is empty.

  • IllegalArgumentException

    if vertices does not contain triplets of double, representing the latitude, longitude and altitude values of a vertex.

  • IllegalArgumentException

    if vertices contains more than 65536 triplets, each representing a GeoCoordinate.

See also:

java.nio.DoubleBuffer

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.