/[schmitzm]/trunk/src/gtmig/org/geotools/gce
ViewVC logotype

Log of /trunk/src/gtmig/org/geotools/gce

View Directory Listing Directory Listing


Sticky Revision:
(Current path doesn't exist after revision 1383)

Revision 935 - Directory Listing
Modified Thu Jul 8 10:45:08 2010 UTC (14 years, 7 months ago) by mojays
Comments about changes added to ArcGridRaster.

Revision 933 - Directory Listing
Modified Thu Jul 8 09:37:25 2010 UTC (14 years, 7 months ago) by alfonx
Comitted a patch as discussed with Martin in that email:

Hallo Stefan,

ich denke, das sollte man so machen... könnte auch die Ursache sein,
dass die Visualisierung mit negativen Werten bisher glaube ich nicht so
richtig geklappt hat.

Darüberhinaus ist mir ist in der Klasse noch eine Sache aufgefallen:

public void writeRaster(Raster raster, double xl, double yl,
  ...
  // reset min and max
  minValue = Double.MIN_VALUE;
  maxValue = Double.MAX_VALUE;
  ...
}

Anschliessend wird Min/Max gar nicht weiter verwendet. Für mich machen
diese Zeilen auch gar keinen Sinn... wieso muss man Min/Max vor dem
Schreiben die Werte zurücksetzen?
Hast Du eine Idee wozu das gemacht wird?
Selbst, wenn in der folgenden Schleife Min/Max neu berechnet würden,
wäre die Initialisierung falsch, da minValue ja mit Double.MAX_VALUE
(bzw. POSITIVE_INFINITY) und maxValue mit Double.MIN_VALUE (bzw.
NEGATIVE_INFINITY) initialisiert werden müssten!

Mein Vorschlag deshalb:
a) die Änderung so machen, wie Du vorschlägst
b) die beiden Zeilen oben einfach auskommentieren

Gruss

Martin


Am 07.07.2010 18:06, schrieb Stefan A. Tzeggai:
> > Hi martin
> > 
> > Ich bin eben selber drüber gestolpert, dass Fload.MIN_VALUE und
> > Double.MIN_VALUE nur positive! Werte zurücklifert. Somit kann ein
> > maxValue nicht kleiner 0 werden, wenn man das als Startwert benutzt und
> > mit Math.max vergleicht.
> > 
> > Ich hab dann mal nach Verwendung gesucht, und schlage dir folgende
> > Änderung in schmitzm vor. Aber da ich nicht ganz drinstecke überlasse
> > ich dir das zu ändern. Ist völlig unwichtig für GP, nur so aus prinzip.
> > 
> > Ist vielleicht auch nicht wichtig..
> > Gruß
> >  und CU Samstag!
> > 
> > 
> > Index: ArcGridRaster.java
> > ===================================================================
> > --- ArcGridRaster.java	(revision 930)
> > +++ ArcGridRaster.java	(working copy)
> > @@ -85,10 +85,10 @@
> >      private URL srcURL;
> > 
> >      /** max value found in the file */
> > -    protected double maxValue = Float.MIN_VALUE;
> > +    protected double maxValue = Double.NEGATIVE_INFINITY;
> > 
> >      /** min value found in the file */
> > -    protected double minValue = Float.MAX_VALUE;
> > +    protected double minValue = Double.POSITIVE_INFINITY;
> > 
> >      protected double xllCorner = Double.NaN;
> > 
> > 
> > 
> > 


Revision 685 - Directory Listing
Modified Wed Feb 10 15:04:02 2010 UTC (15 years ago) by alfonx
copy RC2 to trunk

Revision 621 - Directory Listing
Modified Thu Jan 28 10:06:05 2010 UTC (15 years, 1 month ago) by alfonx
Original Path: branches/2.0-RC2/src/gtmig/org/geotools/gce
2.0-RC2 ist für die weiterentwicklung und soll bald in den trunk mergen

Revision 604 - Directory Listing
Modified Wed Dec 9 14:15:53 2009 UTC (15 years, 2 months ago) by alfonx
Original Path: branches/2.0-RC1/src/gtmig/org/geotools/gce
2.0-RC1 branch ist für GP1.3 bugfixes...  1.0-gt2-2.6  ist der entwicklungs brnach 

Revision 372 - Directory Listing
Modified Thu Sep 3 18:41:50 2009 UTC (15 years, 5 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools/gce
* Renamed the folder with the GT JARs from 'gt-2.6' to 'gt'
* Extended the build.xml to write the correct version into the .jnlp files
* Many many small adaptations to GT2.6 .. AtlasStyler is working again.
* Changed all the clone?() methods in StylingUtil to use the DuplicatingStyleVisitor


Revision 363 - Directory Listing
Added Wed Sep 2 20:28:57 2009 UTC (15 years, 5 months ago) by mojays
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools/gce
ArcGridRaster from gt2-2.3.0-M0 integrated in SCHMITZM
Geo-Import via ArcGridRaster and ArcGridReader
new FilterParser and CQLFilterParser
FeatureOperationTreeParser implements FilterParser
FeatureOperationTreeFilter, FeatureFilterPanel converted to OpenGIS-Filter
FeatureFilterPanel, FeatureCollectionFilterPanel parameterized with FilterParser


[email protected]
ViewVC Help
Powered by ViewVC 1.1.26