File tree Expand file tree Collapse file tree 2 files changed +54
-3
lines changed
java/net/buildtheearth/terraplusplus/generator
resources/net/buildtheearth/terraplusplus/dataset/scalar Expand file tree Collapse file tree 2 files changed +54
-3
lines changed Original file line number Diff line number Diff line change @@ -203,9 +203,9 @@ public void dispose() {
203203 State state = new State (EarthGeneratorSettings .parseUncached (EarthGeneratorSettings .BTE_DEFAULT_SETTINGS ));
204204 state .initSettings ();
205205
206- double [] proj = state .projection .fromGeo (8.57696d , 47.21763d );
207- proj = state .projection .fromGeo (12.58589 , 55.68841 );
208- //proj = new double[] {0,0};
206+ double [] proj = state .projection .fromGeo (8.57696d , 47.21763d ); //switzerland
207+ proj = state .projection .fromGeo (12.58589 , 55.68841 ); //copenhagen
208+ //proj = state.projection.fromGeo(24.7535, 59.4435); //tallinn
209209 state .setView (floorI (proj [0 ]) >> 4 , floorI (proj [1 ]) >> 4 , 0 );
210210
211211 state .update ();
Original file line number Diff line number Diff line change 108108 "condition" : {
109109 "less_than" : 1.0
110110 }
111+ } ,
112+
113+ //
114+ // Estonia
115+ // https://geoportaal.maaamet.ee/eng/Maps-and-Data/Elevation-data/Download-Elevation-Data-p664.html
116+ //
117+ {
118+ "dataset" : {
119+ "urls" : [
120+ "https://cloud.daporkchop.net/gis/elevation/ee/14/${x}/${z}.png"
121+ ] ,
122+ "projection" : {
123+ "web_mercator" : {
124+ "zoom" : 14
125+ }
126+ } ,
127+ "resolution" : 256 ,
128+ "blend" : "CUBIC" ,
129+ "parse" : {
130+ "divide" : {
131+ "delegate" : {
132+ "add" : {
133+ "delegate" : {
134+ "from_int" : {
135+ "delegate" : {
136+ "rgb_extract" : {
137+ "delegate" : {
138+ "parse_png" : { } ,
139+ }
140+ }
141+ }
142+ }
143+ } ,
144+ "value" : - 8388608
145+ }
146+ } ,
147+ "value" : 256.0
148+ }
149+ }
150+ } ,
151+ "bounds" : { // https://github.com/azurro/country-bounding-boxes/blob/master/dataset/ee.json
152+ "minX" : 21.3826069 ,
153+ "maxX" : 28.2100175 ,
154+ "minZ" : 57.5093124 ,
155+ "maxZ" : 59.9383754
156+ } ,
157+ "zooms" : {
158+ "min" : 0 ,
159+ "max" : 1
160+ } ,
161+ "priority" : 100.0
111162 }
112163]
You can’t perform that action at this time.
0 commit comments