question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Thank you so much for the awesome library.

I was toying with the idea of adding geometries, e.g.: a point.

var dotGeometry = new THREE.Geometry();
dotGeometry.vertices.push(new THREE.Vector3( longitude, elevation, latitude));
var dotMaterial = new THREE.PointsMaterial( { size: 1, sizeAttenuation: false } );
var dot = new THREE.Points( dotGeometry, dotMaterial );
scene.add( dot );

However doing the above places the points way off, I assume there is some rescaling done internally but looking through the source code I cannot find out where or how.

How should I go about doing this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
j-develcommented, Oct 16, 2019

Being able to just get the elevation (not in meters but as on the projection) would make it much easier

I really agree with this insight.

At this moment, I am 🚧 overhauling/refining the internal implementation of this projection stuff (and officially documenting it for the next point release). I will plan to ‘upgrade’ the proj() function so it can also resolve the elevation on demand.

1reaction
j-develcommented, Oct 12, 2019

For the moment, here’s a quick demo. Basically, we are using the getProjection() API, where

  • proj() is for geo-to-WebGL coordinate mapping, and
  • unitsPerMeter for scaling (e.g. of elevations).

Screen Shot 2019-10-12 at 17 40 17

Read more comments on GitHub >

github_iconTop Results From Across the Web

The cartopy Feature interface - SciTools
Returns an iterator of shapely geometries that intersect with the given extent. The extent is assumed to be in the CRS of the...
Read more >
Add Geometry Attributes (Data Management)—ArcGIS Pro
Adds new attribute fields to the input features representing the spatial or geometric characteristics and location of each feature, such as length or...
Read more >
Add multiple geometries from one GeoJSON source
This example uses addSource to add one GeoJSON source to a map. The source contains both polygon and point features. Then it uses...
Read more >
9. Geometries — Introduction to PostGIS
CREATE TABLE geometries (name varchar, geom geometry); INSERT INTO geometries VALUES ... The above example CREATEs a table (geometries) then INSERTs five ...
Read more >
Adding Geometry — Blender Manual
Adding Geometry ¶. In Blender, for modeling, you have several ways of adding mesh elements. Duplicate or Extrude to Cursor ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found