[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[IDV #MLH-678803]: Issue with getLatLonBox in MapProjectionDisplay
- Subject: [IDV #MLH-678803]: Issue with getLatLonBox in MapProjectionDisplay
- Date: Tue, 10 Jul 2012 08:59:09 -0600
> /**
> * Get the latlon box of the displayed area
> *
> * @param padSamples should we pad some
> * @param normalizeLon true to normalize longitudes to -180 to 180
> *
> * @return lat lon box or null if it can't be determined
> *
> * @throws RemoteException On badness
> * @throws VisADException On badness
> */
> public Rectangle2D.Double getLatLonBox(boolean padSamples, boolean
> normalizeLon)
> throws VisADException, RemoteException {
> Rectangle2D.Double rect = null;
> if (mapProjection instanceof ProjectionCoordinateSystem) {
> ucar.unidata.geoloc.LatLonRect ll_rect =
> ((ProjectionCoordinateSystem)mapProjection).getProjection().getDefaultMapAreaLL();
> LatLonPointImpl ul_llp = ll_rect.getUpperLeftPoint();
> double ul_lat = ul_llp.getLatitude();
> double ul_lon = ul_llp.getLongitude();
> rect = new Rectangle2D.Double(normalizeLon?
> LatLonPointImpl.lonNormal(ul_lon) : ul_lon, ul_lat, ll_rect.getWidth(),
> ll_rect.getHeight());
> } else {
> rect = super.getLatLonBox(padSamples, normalizeLon);
> }
> return rect;
>
> }
>
We are in the Unidata User Workshop this week, and I will be in the ESIP
workshop next week at the Madison. So, it will take a while for me to test and
check in your code.
Thanks for you contribution.
Yuan
> On 07/06/2012 07:47 AM, Unidata IDV Support wrote:
> >> On 07/02/2012 11:21 PM, Unidata IDV Support wrote:
> >>>> R/Sir
> >>>>
> >>>>
> >>>> The value returned by LatLonBox in case of MapProjected Products I mean
> >>>> e.g. a display Mercator Projection.
> >>>> The one returned by getLatLonBox method should be the same as the one
> >>>> returned by
> >>>> extracting projectionimpl from the projectioncoordinatesystem of the
> >>>> display. Just check this one.
> >>>>
> >>>> regards
> >>>> Ghansham
> >>>>
> >>>>
> >>>> R/Sir
> >>>>
> >>>>
> >>>> The value returned by LatLonBox in case of MapProjected Products I mean
> >>>> e.g. a display Mercator Projection.
> >>>> The one returned by getLatLonBox method should be the same as the one
> >>>> returned by
> >>>> extracting projectionimpl from the projectioncoordinatesystem of the
> >>>> display. Just check this one.
> >>>>
> >>>> regards
> >>>> Ghansham
> >>>>
> >>>>
> >>> I believe so.
> >>>
> >>>
> >>> yuan
> >> But it isnt so.
> > Then, go fix it and send me your solution. ;)
> >
> > Yuan
> >> ghansham
> >>>> R/Sir
> >>>>
> >>>>
> >>>> The value returned by LatLonBox in case of MapProjected Products I mean
> >>>> e.g. a display Mercator Projection.
> >>>> The one returned by getLatLonBox method should be the same as the one
> >>>> returned by
> >>>> extracting projectionimpl from the projectioncoordinatesystem of the
> >>>> display. Just check this one.
> >>>>
> >>>> regards
> >>>> Ghansham
> >>>>
> >>>>
> >>>> R/Sir
> >>>>
> >>>>
> >>>> The value returned by LatLonBox in case of MapProjected Products I mean
> >>>> e.g. a display Mercator Projection.
> >>>> The one returned by getLatLonBox method should be the same as the one
> >>>> returned by
> >>>> extracting projectionimpl from the projectioncoordinatesystem of the
> >>>> display. Just check this one.
> >>>>
> >>>> regards
> >>>> Ghansham
> >>>>
> >>>>
> >>>> R/Sir
> >>>>
> >>>>
> >>>> The value returned by LatLonBox in case of MapProjected Products I mean
> >>>> e.g. a display Mercator Projection.
> >>>> The one returned by getLatLonBox method should be the same as the one
> >>>> returned by
> >>>> extracting projectionimpl from the projectioncoordinatesystem of the
> >>>> display. Just check this one.
> >>>>
> >>>> regards
> >>>> Ghansham
> >>>>
> >>>>
> >>>> R/Sir
> >>>>
> >>>>
> >>>> The value returned by LatLonBox in case of MapProjected Products I mean
> >>>> e.g. a display Mercator Projection.
> >>>> The one returned by getLatLonBox method should be the same as the one
> >>>> returned by
> >>>> extracting projectionimpl from the projectioncoordinatesystem of the
> >>>> display. Just check this one.
> >>>>
> >>>> regards
> >>>> Ghansham
> >>>>
> >>>>
> >>>> R/Sir
> >>>>
> >>>>
> >>>> The value returned by LatLonBox in case of MapProjected Products I mean
> >>>> e.g. a display Mercator Projection.
> >>>> The one returned by getLatLonBox method should be the same as the one
> >>>> returned by
> >>>> extracting projectionimpl from the projectioncoordinatesystem of the
> >>>> display. Just check this one.
> >>>>
> >>>> regards
> >>>> Ghansham
> >>>>
> >>>>
> >>> Ticket Details
> >>> ===================
> >>> Ticket ID: MLH-678803
> >>> Department: Support IDV
> >>> Priority: Normal
> >>> Status: Closed
> >>>
> >>
> >
> > Ticket Details
> > ===================
> > Ticket ID: MLH-678803
> > Department: Support IDV
> > Priority: Normal
> > Status: Open
> >
>
>
Ticket Details
===================
Ticket ID: MLH-678803
Department: Support IDV
Priority: Normal
Status: Open