[udig-devel] Re: udig-devel Digest, Vol 34, Issue 19
Nick Robinson
nickrobinson at videotron.ca
Sun Feb 11 10:18:34 PST 2007
Hello everyone,
I tried to use uDig as I am interested in using it as a platform.
However, I find it very very slow to draw and in the debug window it
throws memory errors when trying to load up standard Canadian NTDB shape
files.
Is anyone interested in trying to fix this? I haven't programed JAVA in
over 5 years and my only reason for getting back into it would be to
build on uDig so am in a bit of a self-imposed catch 22. You can
download demo files from the NTDB from here
http://ftp2.cits.rncan.gc.ca/pub/demo/english/ntdb/dos_platform/utm/shape/
or here
http://www.cits.rncan.gc.ca/cit/servlet/CIT/site_id=01&page_id=1-005-002-001-008-001.html
Please let me know if anyone is working on this and I will happily help
them reproduce the problem.
Cheers,
Nick
p.s. there does not appear to be a way to assign a projection to all of
the layers at once. Am I missing something or is this a feature request? :)
udig-devel-request at lists.refractions.net wrote:
> Send udig-devel mailing list submissions to
> udig-devel at lists.refractions.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.refractions.net/mailman/listinfo/udig-devel
> or, via email, send a message with subject or body 'help' to
> udig-devel-request at lists.refractions.net
>
> You can reach the person managing the list at
> udig-devel-owner at lists.refractions.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of udig-devel digest..."
>
>
> Today's Topics:
>
> 1. More question about "Adding images" (Schmitt, Magna (CIP))
> 2. Re: jgrass2udig some questions (Andrea Antonello)
> 3. asking for svn write access (Andrea Antonello)
> 4. second level in resources tree (Andrea Antonello)
> 5. Re: asking for svn write access (Paul Ramsey)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 9 Feb 2007 14:07:12 -0500
> From: "Schmitt, Magna (CIP)" <M.SCHMITT at CGIAR.ORG>
> Subject: [udig-devel] More question about "Adding images"
> To: "uDig-devel (E-mail)" <udig-devel at lists.refractions.net>
> Message-ID:
> <B7B34444ECA41A41AC47DABA057CE7A2F073E4 at webmail.cip.cgiar.org>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello:
> I had read the answer of the mail "Adding images" where there were a few steps to add images (could be used to show the .png file from a "gridfile")
> The point is that i was trying to implement it but without success.
>
> The steps and examples in the mail were the following:
> - Create an IGeoResource from your image
> - Create a Layer from your IGeoResource
> - Add the Layer to the Map
>
> As for the last steps:
> Create a layer from the IGeoResource:
> IGeoResource pngGeoResource;
> ILayer layer = pngGeoResource.resolve(ILayer.class, null);
>
> Obtain the map:
> ApplicationGIS.getProjects().get(0).getElements(IMap.class).get(0)
>
> To add the layer to the map:
> map.sendCommandASync(new AddLayerCommand(layer) );
>
>
> I have this method that was working well with former versions of uDig (addToMap) and i changed some lines (in addToMap_1) to get my image but i do not know how can I create my IGeoResource from a FileStringPath and show it in the map editor:
>
> This is the former method:
> public static void addToMap(String strOutputFilePath){
> File file = new File(strOutputFilePath);
> List<IService> imagePng;
> try {
> imagePng = new ServiceFactoryImpl().aquire(file.toURL());
> for( IService service : imagePng ) {
> if (service != null) {
> if (service.members(null) != null) {
> try {
> MapFactory.instance().process(null, service.members(null),false);
> break;
> } catch (Exception e1) {
> System.err.println(e1.getMessage());
> }
> }
> }
> }
> } catch (MalformedURLException e2) {
> e2.printStackTrace();
> } catch (IOException e3) {
> e3.printStackTrace();
> }
> }
>
> This is my failed shot:
> public static void addToMap_1(String strOutputFilePath){
> File file = new File(strOutputFilePah);
> List<IService> imagePng = null;
> try {
> imagePng = new ServiceFactoryImpl().aquire(file.toURL());
> IGeoResource pngGeoResource = null;
> ILayer layer = pngGeoResource.resolve(ILayer.class, null);
> ApplicationGIS.getActiveMap().sendCommandASync(new AddLayerCommand((Layer) layer));
> } catch (MalformedURLException e2) {
> e2.printStackTrace();
> } catch (IOException e3) {
> e3.printStackTrace();
> }
> }
>
> Why I should do?
> Thank you,
> Magna
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 09 Feb 2007 20:11:59 +0100
> From: Andrea Antonello <andrea.antonello at gmail.com>
> Subject: Re: [udig-devel] jgrass2udig some questions
> To: User-friendly Desktop Internet GIS
> <udig-devel at lists.refractions.net>
> Message-ID: <45CCC77F.4020000 at gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Jody, Richard,
> thanks for your replies. I merged them together.
>
> [...]
>
>
>> As you have figured out there is more then one extension point (for
>> different things). The extension points you have just implemented let
>> uDig "hold" your resources in the catalog. The next step is to supply a
>> fancy wizard or DnD support. I am going to ask Richard to look up the
>> details for you (since my machine being worked over by an oracle install
>> right now).
>>
>
> Wizard will be next, I just wanted to be able to see if the service was
> set up correctly, which would be nice to see in the catalog as a structure.
> Another thing that comes to my mind. I would need to supply also the
> possibility to create a new JGrass database from udig and work inside
> that. But were whould that be done? Not at a level of udig project,
> since it will live somehow inside that...
>
>
>> Are you just dragging and dropping a file right now?
>>
>
> In fact I have to drag a folder, not just a file.
>
>
>> Do you mean that you are trying to drag and drop from the Catalog to
>> the Map Editor? There shouldn't be much work required there. The
>> catalog.wms plug-in would be a good example to look at, as would the
>> other database catalog plug-ins. Shapefile is probably a special case
>> because it is file based.
>>
>> I can't quite remember clearly, but in the case of catalog.wms, I
>> think the drag and drop framework queries the WMSConnectionFactory, so
>> you may want to look there first.
>>
>> If you are trying to drag from something outside of uDig, that is a
>> different problem and involves more setup. If it is file-based, you
>> may be able to get away with using the extension point
>> "net.refractions.udig.catalog.ui.fileFormat". See catalog.gml for an
>> example.
>>
>
> By now I'm trying to drag from outside into the catalog view. For the
> dragging to a map I would already need a renderer, right?
> However I don't know how to do with the fileformat, since it takes a
> filetype defined by extention, and I have a folder. I tried to put *,
> but that was just like climbing on mirrors...
>
> However I will have to look at the wms plugin and the factory and wizard.
>
>
>> Let me know if I can provide more info. Feel free to get on IRC as
>> well.
>>
>
> Thanks, I will do it in a couple of hours. Hope I find you there later.
>
>
>>> A question not directly related. I'm starting to get together some
>>> code
>>> also for a jgrass.lib plugin (slowly, slowly). Can I have a small SVN
>>> playground were to have my stuff secured?
>>>
>>>
>>>
>> Sure - there is a "spike" section for just this kind of stuff (ie RnD
>> experiments). Make a directory and go nuts (do you have svn access
>> yet?).
>>
>
> No, can I register somewhere or do I have to ask some administrator?
>
> Andrea
>
>
>
> ------------------------------
>
> Message: 3
> Date: Sat, 10 Feb 2007 09:37:10 +0100
> From: Andrea Antonello <andrea.antonello at gmail.com>
> Subject: [udig-devel] asking for svn write access
> To: User-friendly Desktop Internet GIS
> <udig-devel at lists.refractions.net>
> Message-ID: <45CD8436.9040600 at gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi developer list,
> I would like to start to add some of the JGrass stuff to the svn space,
> starting from the "spikes" space, were they told me I could start with
> some tests.
>
> As the wiki states: "Join the developer list and ask for svn access",
> here I am. Who should I ask?
>
> Thanks,
> Andrea
>
>
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Sat, 10 Feb 2007 10:17:11 +0100
> From: Andrea Antonello <andrea.antonello at gmail.com>
> Subject: [udig-devel] second level in resources tree
> To: User-friendly Desktop Internet GIS
> <udig-devel at lists.refractions.net>
> Message-ID: <45CD8D97.6030804 at gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> The first step to JGrass catalog support seems to work (thanks to those
> who helped!!):
>
> http://udig.refractions.net/confluence/display/JGRASS/grasscatalogsupport
>
> One problem remains. A debug showed me that the members method of the
> IGeoresource created by the service is never called. As a result (I just
> guess) the second level of the resources tree is not displayed. Again as
> a result I miss the leafs, i.e. the maps, which makes the thing pretty
> useless.
>
> Any idea about what could be the problem?
>
> Also I need to add folder DnD support, which they told me to be in the
> fileformat extention. (even if it is not sooooo important, it is tooooo
> cool :))
>
> Andrea
>
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Sat, 10 Feb 2007 10:40:05 -0800
> From: Paul Ramsey <pramsey at refractions.net>
> Subject: Re: [udig-devel] asking for svn write access
> To: andrea.antonello at gmail.com, User-friendly Desktop Internet GIS
> <udig-devel at lists.refractions.net>
> Message-ID: <236CF920-C0C7-4850-A0B0-1847727AB627 at refractions.net>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> I'll do for now. I'll send your login/passwd separately. Please
> confirm w/ Jesse and Jody what part of the tree is the best place to
> put your work.
>
> P.
>
> On 10-Feb-07, at 12:37 AM, Andrea Antonello wrote:
>
>
>> Hi developer list,
>> I would like to start to add some of the JGrass stuff to the svn
>> space,
>> starting from the "spikes" space, were they told me I could start with
>> some tests.
>>
>> As the wiki states: "Join the developer list and ask for svn access",
>> here I am. Who should I ask?
>>
>> Thanks,
>> Andrea
>>
>>
>>
>>
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
>>
>
>
>
> ------------------------------
>
> _______________________________________________
> udig-devel mailing list
> udig-devel at lists.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
> End of udig-devel Digest, Vol 34, Issue 19
> ******************************************
>
>
More information about the udig-devel
mailing list