Changeset 34115 in osm
- Timestamp:
- 2018-03-25T17:12:24+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/cadastre-fr
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/.settings/org.eclipse.jdt.core.prefs
r32699 r34115 37 37 org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning 38 38 org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore 39 org.eclipse.jdt.core.compiler.problem.invalidJavadoc= ignore40 org.eclipse.jdt.core.compiler.problem.invalidJavadocTags= disabled41 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef= disabled42 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef= disabled39 org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning 40 org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled 41 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled 42 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled 43 43 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public 44 44 org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore -
applications/editors/josm/plugins/cadastre-fr/build.xml
r34098 r34115 20 20 <import file="../build-common.xml"/> 21 21 22 <property name="jts" location="${plugin.dist.dir}/jts.jar"/> 23 <property name="geotools" location="${plugin.dist.dir}/geotools.jar"/> 24 <property name="apache-commons" location="${plugin.dist.dir}/apache-commons.jar"/> 25 26 <!-- 27 ********************************************************** 28 ** compile - compiles the source tree 29 ********************************************************** 30 --> 31 <target name="compile" depends="init"> 32 <echo message="compiling sources for ${plugin.jar} ... "/> 33 <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8"> 34 <classpath> 35 <pathelement path="${plugin.build.dir}"/> 36 <pathelement location="${josm}"/> 37 <pathelement location="${jts}"/> 38 <pathelement location="${geotools}"/> 39 <pathelement location="${apache-commons}"/> 40 </classpath> 41 <compilerarg value="-Xlint:deprecation"/> 42 <compilerarg value="-Xlint:unchecked"/> 43 </javac> 44 </target> 22 <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}"> 23 <include name="apache-commons.jar"/> 24 <include name="ejml.jar"/> 25 <include name="jts.jar"/> 26 <include name="geotools.jar"/> 27 </fileset> 45 28 </project> -
applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/CadastrePlugin.java
r33922 r34115 482 482 483 483 /** 484 * Adds the WMSLayer following this rule:<br/> 485 * - if a WMSLayer exists place this new layer just before this layer<br/> 486 * - Otherwise place it at the bottom 484 * Adds the WMSLayer following this rule:<ul> 485 * <li>if a WMSLayer exists place this new layer just before this layer</li> 486 * <li>Otherwise place it at the bottom</li> 487 * </ul> 487 488 * @param wmsLayer the wmsLayer to add 488 489 */ -
applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/actions/MenuActionSaveRasterAs.java
r33640 r34115 38 38 private WMSLayer wmsLayer; 39 39 40 public class FiltrePng extends FileFilter {40 public static class FiltrePng extends FileFilter { 41 41 @Override 42 42 public boolean accept(File file) { … … 53 53 } 54 54 55 public class FiltreTiff extends FileFilter {55 public static class FiltreTiff extends FileFilter { 56 56 @Override 57 57 public boolean accept(File file) { -
applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/edigeo/EdigeoFileVEC.java
r34114 r34115 186 186 ISOLATED(2); 187 187 188 int code;188 final int code; 189 189 NodeType(int code) { 190 190 this.code = code; -
applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/edigeo/EdigeoLotFile.java
r34114 r34115 63 63 /** 64 64 * Finds a descriptor by its identifier. 65 * @param values 4 values obtained from a {@ linkEdigeoRecord}:<ol>65 * @param values 4 values obtained from a {@code EdigeoRecord}:<ol> 66 66 * <li>Lot identifier</li> 67 67 * <li>subset identifier</li> … … 77 77 /** 78 78 * Finds a descriptor by its identifier. 79 * @param values 4 values obtained from a {@ linkEdigeoRecord}:<ol>79 * @param values 4 values obtained from a {@code EdigeoRecord}:<ol> 80 80 * <li>Lot identifier</li> 81 81 * <li>subset identifier</li> -
applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/edigeo/pci/EdigeoPciReader.java
r34098 r34115 23 23 import org.apache.commons.text.WordUtils; 24 24 import org.openstreetmap.josm.data.osm.DataSet; 25 import org.openstreetmap.josm.data.osm.OsmPrimitive; 25 26 import org.openstreetmap.josm.data.osm.UploadPolicy; 26 import org.openstreetmap.josm.data.osm.OsmPrimitive;27 27 import org.openstreetmap.josm.data.osm.Way; 28 28 import org.openstreetmap.josm.gui.progress.ProgressMonitor; … … 257 257 try (FileOutputStream out = new FileOutputStream(file)) { 258 258 if (IOUtils.copy(tar, out) < entry.getSize()) { 259 throw new IOException(String.format("Unable to write '' {0}'' entirely", file));259 throw new IOException(String.format("Unable to write ''%s'' entirely", file)); 260 260 } else if (file.toString().endsWith(".THF")) { 261 261 thfPath = file.toPath(); -
applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/wms/CadastreInterface.java
r34114 r34115 267 267 * Two possibilities : 268 268 * - either the commune name matches and we receive an URL starting with "afficherCarteCommune.do" or 269 * - we don't receive a single answer but a list of possible values. This answer looks like: 270 * 269 * - we don't receive a single answer but a list of possible values. This answer looks like:<pre>{@code 270 * <select name="codeCommune" class="long erreur" id="codeCommune"> 271 271 * <option value="">Choisir</option> 272 272 * <option value="50061" >COLMARS - 04370</option> 273 273 * <option value="QK066" >COLMAR - 68000</option> 274 * </select>274 * </select>}</pre> 275 275 * The returned string is the interface name used in further requests, e.g. "afficherCarteCommune.do?c=QP224" 276 276 * where QP224 is the code commune known by the WMS (or "afficherCarteTa.do?c=..." for raster images). -
applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/wms/RasterImageModifier.java
r33638 r34115 53 53 int b = col.getBlue(); 54 54 if ((b == r) && (b == g)) { 55 pixel = (0x00 << 32) + ((byte) (255 - r) << 16) + ((byte) (255 - r) << 8) + ((byte) (255 - r));55 pixel = (0x00 << 24) + ((byte) (255 - r) << 16) + ((byte) (255 - r) << 8) + ((byte) (255 - r)); 56 56 } 57 57 return pixel; -
applications/editors/josm/plugins/cadastre-fr/src/org/openstreetmap/josm/plugins/fr/cadastre/wms/WMSLayer.java
r33640 r34115 143 143 144 144 @Override 145 public void destroy() {145 public synchronized void destroy() { 146 146 // if the layer is currently saving the images in the cache, wait until it's finished 147 147 if (grabThread != null)
Note:
See TracChangeset
for help on using the changeset viewer.