Skip to content

Commit

Permalink
update selectStructureAndFamilyWithinRadius query (#622)
Browse files Browse the repository at this point in the history
* update selectStructureAndFamilyWithinRadius query

* bump version
  • Loading branch information
bennsimon authored Mar 22, 2023
1 parent a67adbe commit 268cd45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<artifactId>opensrp-server-core</artifactId>
<packaging>jar</packaging>
<version>3.2.8-SNAPSHOT</version>
<version>3.2.9-SNAPSHOT</version>
<name>opensrp-server-core</name>
<description>OpenSRP Server Core module</description>
<url>https://github.com/OpenSRP/opensrp-server-core</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
,c.base_entity_id ,c.relational_id ,c.last_name
from core.structure s
left join core.client_metadata c on c.residence=json->>'id'
where ST_DistanceSpheroid(ST_GeomFromGeoJSON(json->>'geometry'), ST_MakePoint(#{longitude,jdbcType=DOUBLE}, #{latitude,jdbcType=DOUBLE}),
where ST_DistanceSpheroid(ST_SetSRID(ST_GeomFromGeoJSON(json->>'geometry'),4326), ST_SetSRID(ST_MakePoint(#{longitude,jdbcType=DOUBLE}, #{latitude,jdbcType=DOUBLE}),4326),
'SPHEROID["WGS 84",6378137,298.257223563]') &lt;= #{radius,jdbcType=DOUBLE}

</select>
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/opensrp/TestPostgresInstance.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public abstract class TestPostgresInstance {

protected static final String POSTGRES_DB_CONFIG = "POSTGRES_DB";
protected static final String POSTGRES_DB = "opensrp_test";
private static final String DOCKER_IMAGE_NAME = "postgis/postgis:12-2.5-alpine";
private static final String DOCKER_IMAGE_NAME = "postgis/postgis:14-3.3-alpine";

protected static final int DOCKER_EXPOSE_PORT = 5432;

Expand Down

0 comments on commit 268cd45

Please sign in to comment.