> i had a look and saw that 
> NewLayerPropertiesPlugIn$InfoPanel.setInfoProjection()
tries to determine the projection, which is wrong! instead it should rely
on the (if) set SRIDStyle and read that.

I corrected that Ede. That was easy as we already have the code. Now
SRIDStyle should be read  on loading file (at least with Layer.class,
vector or image readers).
Let us wait for next real. to solve proj. source.

thanlks

Peppe

2017-03-27 20:06 GMT+02:00 <edgar.sol...@web.de>:

> Peppe,
>
> lets delay this bug for the next release. i had a look and saw that
> NewLayerPropertiesPlugIn$InfoPanel.setInfoProjection() tries to determine
> the projection, which is wrong! instead it should rely on the (if) set
> SRIDStyle and read that.
>
> the image readers obviously do not set it right now but that can be
> implemented later as well.
>
> so far.. ede
>
> On 27.03.2017 18:43, Giuseppe Aruta wrote:
> > OK, Thanks
> >
> > It looks more serious I thought
> >
> > a) Layer.class
> > if files are in  folder with a white space, like "c:\Documents\my
> file\etc
> > I get an error when I try to open Layer Properties plugin
> > "java.lang.StringIndexOutOfBoundsException: String index out of range:
> -1
> >     at java.lang.String.substring(Unknown Source)
> >     at
> > org.openjump.core.ccordsys.utils.ProjUtils.getSRSInfoFromAuxiliaryFile(
> ProjUtils.java:94)
> >     at
> > org.openjump.core.ccordsys.utils.ProjUtils.getSRSInfoFromLayerSource(
> ProjUtils.java:299)
> >     at
> > org.openjump.core.ui.plugin.layer.NewLayerPropertiesPlugIn$
> InfoPanel.setInfoProjection(NewLayerPropertiesPlugIn.java:710)
> >     at
> > org.openjump.core.ui.plugin.layer.NewLayerPropertiesPlugIn$
> InfoPanel.<init>(NewLayerPropertiesPlugIn.java:448)
> >     at
> > org.openjump.core.ui.plugin.layer.NewLayerPropertiesPlugIn$
> InfoPanel.<init>(NewLayerPropertiesPlugIn.java:350)"
> >
> > The error seems to start from SRSInfo.getSource method
> >
> > No problem if there is no white space
> >
> > b) Laye.class and RasterImage.class
> > if projection is written on an auxiliary file:
> > a) no problem if the auxiliary file is <file>.prj, like for SHP or ASC
> files
> > b) if the auxiliary file is <file>.png.aux.xml or <file>.png.prj, methods
> > report null for file source (even if they correctly read proj srid)
> >
> > Michael, do you have an idea?
> >
> > I attached to this mail some test files I used
> >
> > Peppe
> >
> >
> >
> > 2017-03-27 16:42 GMT+02:00 <edgar.sol...@web.de>:
> >
> >> go ahead.. i plan to release by the end of the week. ..ede
> >>
> >> On March 27, 2017 4:02:46 PM GMT+02:00, Giuseppe Aruta <
> >> giuseppe.ar...@gmail.com> wrote:
> >>> Hi Ede, Michael
> >>> I found a small bug on reading auxiliary raster files with projection
> >>> info.
> >>> I want to correct it before new OJ 1.11
> >>> Peppe
> >>
> >
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to