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

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

View Directory Listing Directory Listing


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

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
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
2.0-RC1 branch ist für GP1.3 bugfixes...  1.0-gt2-2.6  ist der entwicklungs brnach 

Revision 531 - Directory Listing
Modified Thu Nov 19 09:42:59 2009 UTC (15 years, 3 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
Moved XMapPane from gtmig to skrueger.geotools

Revision 530 - Directory Listing
Modified Thu Nov 19 09:31:14 2009 UTC (15 years, 3 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
* More cleanup and documentation

Revision 529 - Directory Listing
Modified Wed Nov 18 20:47:00 2009 UTC (15 years, 3 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
XMapPane and RenderingExecutor now work together without leaking memory through their BufferedImages... 

Revision 524 - Directory Listing
Modified Wed Nov 18 09:56:47 2009 UTC (15 years, 3 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
* XMapPane is now only using one RenderingExecutor, and its now properly disposed, not leaving any threads in the ThreadPool
* Locks are not happening, memory leak still happens :-/
* Corrected isValid() against is WellDefined() in XMapPane

Revision 521 - Directory Listing
Modified Tue Nov 17 12:51:37 2009 UTC (15 years, 3 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
* Some cleanup in XMapPane

Revision 518 - Directory Listing
Modified Fri Nov 13 18:16:38 2009 UTC (15 years, 3 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
* CQLFilter.toString does not produce CQL! Useed CQL.toCQL( Filter ) instead in some places.
* Added paramter weight (for visualisation sorting) to attributeMetadata
* Added paramters X and A for Attributemetadata.. but not using it yet.. 

Revision 516 - Directory Listing
Modified Wed Nov 11 21:17:33 2009 UTC (15 years, 3 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
* Extended schmitzm.JPanel to generally set its background to white when printed, by overwriting the print() method.
* Simplified the creation and update logic of ((Design)Atlas)MapLegend and ((Design)Atlas)MapLayerLegend. Besides other things there now is a LegendHelper class in AtlasProject... 
* Orginized Imports
* Removed a lot of DEBUG messages...

Revision 515 - Directory Listing
Modified Mon Nov 9 18:51:54 2009 UTC (15 years, 3 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
Styles with wronlgy spelled property names are now automatically corrected when loaded. This helps when upgrading atlases that have been created with GeoPublisher/AtlasStyler 1.2



Revision 514 - Directory Listing
Modified Mon Nov 9 15:05:41 2009 UTC (15 years, 3 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
Enhanced the saveSLDToFile methods in StyleingUtil



Revision 513 - Directory Listing
Modified Mon Nov 9 11:17:34 2009 UTC (15 years, 3 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
Fixed an error in the zoom-out code of XMapPane


Revision 512 - Directory Listing
Modified Fri Nov 6 15:00:17 2009 UTC (15 years, 3 months ago) by mojays
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
until gt2-2.6.1 is released:
Import of gt-RenderingExecutor replaced by import of skrueger-RenderingExecutor in XMapPane

Revision 511 - Directory Listing
Modified Thu Nov 5 17:41:33 2009 UTC (15 years, 3 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
compile error free ... XMapPane migration complete...

Revision 509 - Directory Listing
Modified Thu Nov 5 08:51:33 2009 UTC (15 years, 3 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
new XMapPane and SelectableMapPane to replace and restructure JMapPanes

Revision 506 - Directory Listing
Modified Sat Oct 31 12:15:37 2009 UTC (15 years, 4 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
* Cleaned up the new methods for drawing preview image when zooming.

Revision 505 - Directory Listing
Modified Sat Oct 31 10:53:43 2009 UTC (15 years, 4 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
* Added fast scaled previews to JMapPane rendering. Works for ZoomIn and ZoomOut. 
* Added setMapbackground and getMapBackground to JMapPane


Revision 504 - Directory Listing
Modified Tue Oct 27 12:57:58 2009 UTC (15 years, 4 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
* Better documentation for methods setMaxZoomScale and setMinZoomScale

Revision 497 - Directory Listing
Modified Fri Oct 23 18:43:58 2009 UTC (15 years, 4 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
i8n fuer cancellableAtlasDialogdpter

Revision 495 - Directory Listing
Modified Fri Oct 23 14:19:46 2009 UTC (15 years, 4 months ago) by mojays
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
JMapPane#fixAspectRatio(.) moved to JTSUtil

Revision 494 - Directory Listing
Modified Fri Oct 23 14:16:17 2009 UTC (15 years, 4 months ago) by mojays
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
JMapPane#fixAspectRatio(.) moved to JTSUtil

Revision 493 - Directory Listing
Modified Fri Oct 23 14:09:27 2009 UTC (15 years, 4 months ago) by mojays
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
BugFix: Handle empty Rectangle in JMapPane#fixAspectRatio(..)
FeatureTablePane: check for "valueAdjusting" removed (because this must be done in event firing, not in event handling!)

Revision 485 - Directory Listing
Modified Tue Oct 20 16:22:47 2009 UTC (15 years, 4 months ago) by mojays
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools


Revision 478 - Directory Listing
Modified Tue Oct 20 10:37:01 2009 UTC (15 years, 4 months ago) by mojays
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
GT-JMapPane, GeoMapPane: "our" Reference to ShapefileRenderer removed
defaults/.classpath updated to gt2-2.6.0

Revision 452 - Directory Listing
Modified Fri Oct 9 19:16:27 2009 UTC (15 years, 4 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
* AS-Feature: The labeling tab now has a preview pane and can set the priority column. Both still has to be improved.

Revision 445 - Directory Listing
Modified Wed Oct 7 13:17:02 2009 UTC (15 years, 4 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
* GP: * Do not allow NaN values in zoom back/forward Envelopes
* Extra check against unlimited while loop in JMapPane.bestAllowedMapArea

Revision 438 - Directory Listing
Modified Mon Oct 5 13:04:01 2009 UTC (15 years, 4 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
* Using GTUtil.createGTRenderer wherever GP/AS/AV/SchmitzM needs a GTRenderer

Revision 436 - Directory Listing
Modified Mon Oct 5 11:54:12 2009 UTC (15 years, 4 months ago) by mojays
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
Removed some annoying debug messages in GT-JMapPane
New util method JTSUtil.expandEnvelope(..)
JMapPane.getMaxExtend(..) creates a 10% expanded envelope to show the complete map with "some" surrounding


Revision 431 - Directory Listing
Modified Sun Oct 4 16:55:52 2009 UTC (15 years, 4 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
added checks against NPEs if the context is empty

Revision 420 - Directory Listing
Modified Thu Oct 1 20:22:48 2009 UTC (15 years, 5 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
* Lots of changes in this big commit for GP 1.3 
* New Interfaces: Checkable, Copyable, Cancellable, CancellableDialogAdapter to improve the GUI
* New DialogManager to unify the handling of all dialogs.
* GP-Feature: The dialog for editing/translating a DpEntry has been "enriched".

Revision 418 - Directory Listing
Modified Mon Sep 28 15:36:11 2009 UTC (15 years, 5 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
* AV-Feature: The Search button only appears if there is anything to search
* GP-Features: Layers that will not show in the atlas legend are marked in the GP MapComposer in gray.


Revision 415 - Directory Listing
Modified Thu Sep 24 17:58:32 2009 UTC (15 years, 5 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
* GP-Feature: In the MapComposer it is now BASICALLY possible to change the CRS and format of the Grid/Ruler on the left/bottom. At the moment only two formatters are available, one for DHDN in Germany, and one for lat/lon. 

Revision 414 - Directory Listing
Modified Thu Sep 24 13:23:08 2009 UTC (15 years, 5 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
JMapPane can optionally be given an envelope. When zooming/panning it will never show anything outside this envelope.


Revision 388 - Directory Listing
Modified Fri Sep 11 19:06:17 2009 UTC (15 years, 5 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
* Moving JMapPane out of org.geotools.swing allows me to start the application in debug mode, without haveing a libUnsigned dir...

Revision 384 - Directory Listing
Modified Fri Sep 11 16:16:38 2009 UTC (15 years, 5 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
Wow.. this now compiles and works with GT2.6 TRUNK! I will check-in the tunrk libs in AtlasFramework/lib/gt tonight. One big difference between M2 and trunk is that they moved the package
org.geotools.gui.swing to 
org.geotools.swing
So i did the same in schmitzm, especially with the JMapPane

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
* 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
Modified 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
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


Revision 325 - Directory Listing
Modified Wed Aug 26 15:32:54 2009 UTC (15 years, 6 months ago) by mojays
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
imports organized
SCHMITZM-JMapPane converted

Revision 320 - Directory Listing
Added Wed Aug 26 13:49:19 2009 UTC (15 years, 6 months ago) by mojays
Original Path: branches/1.0-gt2-2.6/src/gtmig/org/geotools
imports organized
migration package gtmig.* for classes no longer included in gt2-2.6
MouseSelectionTracker taken from gt 2.4.5

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26