JDBC read MULTIPOLYGON data from MapD


#1

Hi,

I’m trying to read MULTIPOLYGON data from MapD. I’m using JDBC. But I couldn’t read data like below.

                    String sql = "select mapd_geo from mapd_states";
		ResultSet rs = stmt.executeQuery(sql);			
		while (rs.next()) {
			rs.getObject("mapd_geo");
		}

Thanks


#2

Hi @Kayhan,

Querying mapd_geo columns using JDBC is not currently supported, this issue will be fixed in an upcoming release. In the meantime, you can access the mapd_geo data (point, linestring, and multi polygon) using Javascript library. Refer to the documentation 1 for the explanation on the sample code.

Regards,
Veda