Add geometries
See original GitHub issueThank 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:
 - Created 4 years ago
 - Comments:6 (6 by maintainers)
 
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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.For the moment, here’s a quick demo. Basically, we are using the
getProjection()API, whereproj()is for geo-to-WebGL coordinate mapping, andunitsPerMeterfor scaling (e.g. of elevations).