Hello, I continue to have this problem. When I lunch a command, for example:
grass r.slope.aspect.exe elevation=inputMap slope=outputMap prec=float zfactor=1.0 without problem. Then I add to map from database JGrass outputMap. The outputMap isn't visible and there is this comment: "Sistema di coordinate di dati sconosciuto. Se non viene definito si può avere un comportamento inaspettato dell'applicazione." My os is Windows xp. I tested with the today latest JGrass src and also with jgrass-1.1.x-build20081112015624-win32.win32.x86.zip. I solve programmatically with the code to add a layer to current map: public void addResourceFromLocation(String locationPath, String mapsetName, String mapName, IProgressMonitor progressMonitor) throws MalformedURLException, UnsupportedEncodingException { if (JGrassPlugin.getDefault() != null) { // refresh the location JGrassCatalogUtilities.refreshJGrassService(locationPath, progressMonitor); File locationFile = new File(locationPath); IMap activeMap = ApplicationGIS.getActiveMap(); URL mapurl = null; String locationFileURIURL = locationFile.toURI().toURL().toString(); if (locationFileURIURL.lastIndexOf(ConstantUtil.slash) == (locationFileURIURL .length() - 1)) { locationFileURIURL = locationFileURIURL.substring(0, locationFileURIURL.length() - 1); } mapurl = new URL(locationFileURIURL + ConstantUtil.numberSign + ConstantUtil.slash + mapsetName + ConstantUtil.slash + JGrassConstans.CELL + ConstantUtil.slash + mapName); Activator.log("mapurl to add current map: " + mapurl.toString(), null); JGrassCatalogUtilities.addResourceFromUrlToMap(mapurl, progressMonitor, -1, activeMap); } } Some idea? Thank you, Giuseppe >A quick thought. >I think you loaded the map layer after another layer, which had a >different projection system? > >If that applies, JGrass doesn't support reprojection on the fly. That >is why the first layer you load should be a JGrass layer. > >In fact the jGrass trunk version now supports also reprojection and >will support also lat/long. We are working on it and results already >look more than good. > >Let me know if the above problem applies. > >Ciao >Andrea > > >On Tue, Oct 28, 2008 at 6:49 PM, Giuseppe Cinque <gfcinque at gmail.com> wrote: >> Hi Andrea, >> thank you for response, now it's ok, but I have another problem. >> I download the today jgrass src from: >> >> https://svn.dev.cocos.bz//svnroot/jgrass/jgrass3.0/branches/jgrass4udig1.1.x/trunk/ >> >> and use: >> >> udig_1_1_0 sdk >> >> when I lunch a command, for example: >> >> grass r.slope.aspect.exe elevation=inputMap slope=outputMap prec=float >> zfactor=1.0 --overwrite >> >> without problem. Then I add to map from database JGrass outputMap. >> The outputMap isn't visible and there is this comment: >> >> "Sistema di coordinate di dati sconosciuto. Se non viene definito si >> può avere un comportamento inaspettato dell'applicazione." >> >> My os is Windows xp. >> >> Some idea? >> >> Thank you, >> Giuseppe _______________________________________________ JGrass-devel mailing list JGrass-devel@dev.fsc.bz.it https://dev.fsc.bz.it/cgi-bin/mailman/listinfo/jgrass-devel