Page 1 of 1

Positions for Geothermal Plants

Posted: 21 Sep 2009, 01:16
by abma
Hi!

How can i get locations for Geothermal plants through the Java-Interface?
Map.getResourceMapSpotsPositions(Resource=energy) doesn't work...

The only idea i had, was try and error...

Re: Positions for Geothermal Plants

Posted: 21 Sep 2009, 01:57
by abma
Found it myself:



(Pseudo-Code:)

Code: Select all

List<Feature> f=OOAICallback.getFeatures()
for (int i=0; i<f.size(); i++){ 
	if (f.get(i).getDef().isGeoThermal()){
            ...
	}
}

Re: Positions for Geothermal Plants

Posted: 23 Sep 2009, 19:08
by LoidThanead
Thanks for posting the solution. I can use this. :)