Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing black column problem in kriging #15

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions hortonmachine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
<version>0.7.9-SNAPSHOT</version>
</parent>

<groupId>org.jgrasstools</groupId>
<artifactId>jgt-hortonmachine</artifactId>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you remove the org.jgrasstools because of your custom build?
I assume this might be a problem when building. Didn't notice that before.

<version>0.7.9-SNAPSHOT</version>
<version>0.7.9-SNAPSHOT</version>
<packaging>jar</packaging>
<name>The Horton Machine</name>

Expand Down Expand Up @@ -88,4 +87,9 @@
</plugins>
</build>
-->

<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ public class HortonMessages {
public static final String OMSKRIGING_pA_DESCRIPTION = "The range if the models runs with the gaussian variogram.";
public static final String OMSKRIGING_pS_DESCRIPTION = "The sill if the models runs with the gaussian variogram.";
public static final String OMSKRIGING_pNug_DESCRIPTION = "Is the nugget if the models runs with the gaussian variogram.";
public static final String OMSKRIGING_outGrid_DESCRIPTION = "The interpolated gridded data (for mode 2 and 3.";
public static final String OMSKRIGING_outData_DESCRIPTION = "The interpolated data (for mode 0 and 1).";
public static final String OMSKRIGING_outGrid_DESCRIPTION = "The interpolated gridded data (for pMode == 1).";
public static final String OMSKRIGING_outData_DESCRIPTION = "The interpolated data (for pMode == 0).";

public static final String OMSNETNUMBERING_DESCRIPTION = "Assigns the numbers to the network's links.";
public static final String OMSNETNUMBERING_DOCUMENTATION = "OmsNetNumbering.html";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
package org.jgrasstools.hortonmachine.modules.statistics.kriging;

import org.geotools.coverage.grid.GridCoordinates2D;
import org.geotools.coverage.grid.GridGeometry2D;

import com.vividsolutions.jts.geom.Coordinate;

/**
* A world coordinate associated with its respective grid point in the context
* of a certain grid geometry.
*
* <p>
* This is useful so that there's no need to convert the world point into the
* grid point by using the mathematical transform, which can lead to rounding
* errors which in turn invite all kinds of trouble (see
* https://github.com/moovida/jgrasstools/issues/12, for example)
*
* @author Rafael Almeida (@rafaelalmeida)
* @since 0.7.9
*
*/
public class OmsGridPoint {
private GridGeometry2D gridGeometry;
private GridCoordinates2D gridCoordinates;
private Coordinate worldCoordinates;

public GridCoordinates2D getGridCoordinates() {
return gridCoordinates;
}

public void setGridCoordinates(GridCoordinates2D gridCoordinates) {
this.gridCoordinates = gridCoordinates;
}

public Coordinate getWorldCoordinates() {
return worldCoordinates;
}

public void setWorldCoordinates(Coordinate worldCoordinates) {
this.worldCoordinates = worldCoordinates;
}

public GridGeometry2D getGridGeometry() {
return gridGeometry;
}

public void setGridGeometry(GridGeometry2D gridGeometry) {
this.gridGeometry = gridGeometry;
}

@Override
public String toString() {
return "OmsGridPoint [gridCoordinates=" + gridCoordinates
+ ", worldCoordinates=" + worldCoordinates + "]";
}

}
Loading