[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] How to get vector data in udig
|
There should be examples of how to add your database to the uDig catalog.
- http://udig.refractions.net/confluence/display/DEV/2+Catalog
The example for PostGIS as as follows:
Map<String,Serializable> params = new HashMap<String,Serializable>();
params.put("dbtype", "postgis"); params.put("host", "www.refractions.net"); params.put("port", new Integer(5432)); params.put("database", "demo-bc"); params.put("user", "demo"); params.put("passwd", "demo");
IRepository local = CatalogPlugin.getDefault().getLocal();
IService service = local.acquire( params, new NullProgressMonitor() );
Or you may wish to try using the GeoTools classes directly? Notice this page also has the connection parameters to use with the uDig catalog above.
- http://docs.geotools.org/latest/userguide/library/jdbc/mysql.html
On Friday, 4 May 2012 at 9:10 PM, alessandra.baccari@xxxxxxxxxxx wrote:
Hi!
After i have choose mySql database and table, what is the block of code (in java) that gets the geographical information(vector data)?
Thanks to much!
_______________________________________________
User-friendly Desktop Internet GIS (uDig)