Revision 7960
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.mac_10.5/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|
3 |
<modelVersion>4.0.0</modelVersion> |
|
4 |
<artifactId>org.gvsig.raster.app.mac_10.5</artifactId> |
|
5 |
<packaging>jar</packaging> |
|
6 |
|
|
7 |
<parent> |
|
8 |
<groupId>org.gvsig</groupId> |
|
9 |
<artifactId>org.gvsig.raster.app</artifactId> |
|
10 |
<version>2.2.4-SNAPSHOT</version> |
|
11 |
</parent> |
|
12 |
|
|
13 |
<properties> |
|
14 |
<gvsig.package.info.operatingSystem>mac_10.5</gvsig.package.info.operatingSystem> |
|
15 |
<gvsig.package.info.architecture>x86_64</gvsig.package.info.architecture> |
|
16 |
|
|
17 |
<jpotrace.classifier>mac-10.5-gcc4-universal-dynamic</jpotrace.classifier> |
|
18 |
<jpotrace.version>2.0.0</jpotrace.version> |
|
19 |
</properties> |
|
20 |
|
|
21 |
<dependencyManagement> |
|
22 |
<dependencies> |
|
23 |
<dependency> |
|
24 |
<groupId>org.gvsig</groupId> |
|
25 |
<artifactId>org.gvsig.jpotrace</artifactId> |
|
26 |
<classifier>${jpotrace.classifier}</classifier> |
|
27 |
<version>${jpotrace.version}</version> |
|
28 |
<type>tar.gz</type> |
|
29 |
</dependency> |
|
30 |
</dependencies> |
|
31 |
</dependencyManagement> |
|
32 |
|
|
33 |
<dependencies> |
|
34 |
<dependency> |
|
35 |
<groupId>org.gvsig</groupId> |
|
36 |
<artifactId>org.gvsig.raster.app.common</artifactId> |
|
37 |
<type>zip</type> |
|
38 |
</dependency> |
|
39 |
<dependency> |
|
40 |
<groupId>org.gvsig</groupId> |
|
41 |
<artifactId>org.gvsig.jpotrace</artifactId> |
|
42 |
<scope>compile</scope> |
|
43 |
</dependency> |
|
44 |
<dependency> |
|
45 |
<groupId>org.gvsig</groupId> |
|
46 |
<artifactId>org.gvsig.jpotrace</artifactId> |
|
47 |
<classifier>${jpotrace.classifier}</classifier> |
|
48 |
<version>${jpotrace.version}</version> |
|
49 |
<type>tar.gz</type> |
|
50 |
<scope>runtime</scope> |
|
51 |
</dependency> |
|
52 |
</dependencies> |
|
53 |
|
|
54 |
<build> |
|
55 |
<plugins> |
|
56 |
|
|
57 |
<plugin> |
|
58 |
<groupId>org.apache.maven.plugins</groupId> |
|
59 |
<artifactId>maven-dependency-plugin</artifactId> |
|
60 |
<executions> |
|
61 |
<execution> |
|
62 |
<id>unpack</id> |
|
63 |
<phase>process-sources</phase> |
|
64 |
<goals> |
|
65 |
<goal>unpack</goal> |
|
66 |
</goals> |
|
67 |
<configuration> |
|
68 |
<artifactItems> |
|
69 |
<artifactItem> |
|
70 |
<groupId>org.gvsig</groupId> |
|
71 |
<artifactId>org.gvsig.raster.app.common</artifactId> |
|
72 |
<type>zip</type> |
|
73 |
<overWrite>true</overWrite> |
|
74 |
<outputDirectory>target</outputDirectory> |
|
75 |
</artifactItem> |
|
76 |
<artifactItem> |
|
77 |
<groupId>org.gvsig</groupId> |
|
78 |
<artifactId>org.gvsig.jpotrace</artifactId> |
|
79 |
<classifier>${jpotrace.classifier}</classifier> |
|
80 |
<version>${jpotrace.version}</version> |
|
81 |
<type>tar.gz</type> |
|
82 |
<overWrite>true</overWrite> |
|
83 |
<outputDirectory>target/native</outputDirectory> |
|
84 |
</artifactItem> |
|
85 |
</artifactItems> |
|
86 |
</configuration> |
|
87 |
</execution> |
|
88 |
</executions> |
|
89 |
</plugin> |
|
90 |
|
|
91 |
|
|
92 |
</plugins> |
|
93 |
</build> |
|
94 |
|
|
95 |
|
|
96 |
</project> |
|
97 |
|
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.mac_10.5/buildNumber.properties | ||
---|---|---|
1 |
#Fri Mar 28 13:59:39 CET 2014 |
|
2 |
buildNumber=12 |
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.mac_10.5/src/main/assembly/gvsig-plugin-package.xml | ||
---|---|---|
1 |
<!-- |
|
2 |
|
|
3 |
gvSIG. Desktop Geographic Information System. |
|
4 |
|
|
5 |
Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
|
8 |
modify it under the terms of the GNU General Public License |
|
9 |
as published by the Free Software Foundation; either version 3 |
|
10 |
of the License, or (at your option) any later version. |
|
11 |
|
|
12 |
This program is distributed in the hope that it will be useful, |
|
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
GNU General Public License for more details. |
|
16 |
|
|
17 |
You should have received a copy of the GNU General Public License |
|
18 |
along with this program; if not, write to the Free Software |
|
19 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
MA 02110-1301, USA. |
|
21 |
|
|
22 |
For any additional information, do not hesitate to contact us |
|
23 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
|
|
25 |
--> |
|
26 |
<assembly> |
|
27 |
<id>gvsig-plugin-package</id> |
|
28 |
<formats> |
|
29 |
<format>zip</format> |
|
30 |
</formats> |
|
31 |
<baseDirectory>${gvsig.package.info.code}</baseDirectory> |
|
32 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
33 |
<files> |
|
34 |
<file> |
|
35 |
<source>target/package.info</source> |
|
36 |
</file> |
|
37 |
</files> |
|
38 |
|
|
39 |
<fileSets> |
|
40 |
<fileSet> |
|
41 |
<directory>target/org.gvsig.raster.app.common</directory> |
|
42 |
<outputDirectory>.</outputDirectory> |
|
43 |
<excludes> |
|
44 |
<exclude>package.info</exclude> |
|
45 |
</excludes> |
|
46 |
</fileSet> |
|
47 |
<fileSet> |
|
48 |
<directory>target/native/lib</directory> |
|
49 |
<outputDirectory>native</outputDirectory> |
|
50 |
</fileSet> |
|
51 |
<fileSet> |
|
52 |
<directory>src/main/resources-plugin</directory> |
|
53 |
<outputDirectory>.</outputDirectory> |
|
54 |
</fileSet> |
|
55 |
</fileSets> |
|
56 |
|
|
57 |
|
|
58 |
<dependencySets> |
|
59 |
<dependencySet> |
|
60 |
<useProjectArtifact>false</useProjectArtifact> |
|
61 |
<useTransitiveDependencies>false</useTransitiveDependencies> |
|
62 |
<outputDirectory>lib</outputDirectory> |
|
63 |
<includes> |
|
64 |
<include>org.gvsig:org.gvsig.jpotrace:jar</include> |
|
65 |
</includes> |
|
66 |
</dependencySet> |
|
67 |
</dependencySets> |
|
68 |
|
|
69 |
</assembly> |
|
70 |
|
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.mac_10.5/src/main/resources-plugin/autorun.sh | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
# |
|
3 |
# gvSIG. Desktop Geographic Information System. |
|
4 |
# |
|
5 |
# Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
# |
|
7 |
# This program is free software; you can redistribute it and/or |
|
8 |
# modify it under the terms of the GNU General Public License |
|
9 |
# as published by the Free Software Foundation; either version 3 |
|
10 |
# of the License, or (at your option) any later version. |
|
11 |
# |
|
12 |
# This program is distributed in the hope that it will be useful, |
|
13 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
# GNU General Public License for more details. |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License |
|
18 |
# along with this program; if not, write to the Free Software |
|
19 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
# MA 02110-1301, USA. |
|
21 |
# |
|
22 |
# For any additional information, do not hesitate to contact us |
|
23 |
# at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
# |
|
25 |
|
|
26 |
|
|
27 |
# |
|
28 |
# Plugin autorun |
|
29 |
# |
|
30 |
|
|
31 |
PLUGIN_NAME=$(basename "$PLUGIN_FOLDER") |
|
32 |
|
|
33 |
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PLUGIN_FOLDER/native" |
|
34 |
GVSIG_NATIVE_LIBS="$GVSIG_NATIVE_LIBS:$PLUGIN_FOLDER/native" |
|
35 |
|
|
36 |
|
|
37 |
|
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.mainplugin/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|
3 |
<modelVersion>4.0.0</modelVersion> |
|
4 |
<artifactId>org.gvsig.raster.app.mainplugin</artifactId> |
|
5 |
<packaging>jar</packaging> |
|
6 |
|
|
7 |
<parent> |
|
8 |
<groupId>org.gvsig</groupId> |
|
9 |
<artifactId>org.gvsig.raster.app</artifactId> |
|
10 |
<version>2.2.71</version> |
|
11 |
</parent> |
|
12 |
|
|
13 |
<dependencies> |
|
14 |
<dependency> |
|
15 |
<groupId>org.gvsig</groupId> |
|
16 |
<artifactId>org.gvsig.raster.app.common</artifactId> |
|
17 |
<type>zip</type> |
|
18 |
</dependency> |
|
19 |
|
|
20 |
</dependencies> |
|
21 |
|
|
22 |
<build> |
|
23 |
<plugins> |
|
24 |
|
|
25 |
<plugin> |
|
26 |
<groupId>org.apache.maven.plugins</groupId> |
|
27 |
<artifactId>maven-dependency-plugin</artifactId> |
|
28 |
<executions> |
|
29 |
<execution> |
|
30 |
<id>unpack</id> |
|
31 |
<phase>process-sources</phase> |
|
32 |
<goals> |
|
33 |
<goal>unpack</goal> |
|
34 |
</goals> |
|
35 |
<configuration> |
|
36 |
<artifactItems> |
|
37 |
<artifactItem> |
|
38 |
<groupId>org.gvsig</groupId> |
|
39 |
<artifactId>org.gvsig.raster.app.common</artifactId> |
|
40 |
<type>zip</type> |
|
41 |
<overWrite>true</overWrite> |
|
42 |
<outputDirectory>target</outputDirectory> |
|
43 |
</artifactItem> |
|
44 |
</artifactItems> |
|
45 |
</configuration> |
|
46 |
</execution> |
|
47 |
</executions> |
|
48 |
</plugin> |
|
49 |
|
|
50 |
|
|
51 |
</plugins> |
|
52 |
</build> |
|
53 |
|
|
54 |
<properties> |
|
55 |
<gvsig.install.plugin>true</gvsig.install.plugin> |
|
56 |
<gvsig.package.info.name>Raster base support</gvsig.package.info.name> |
|
57 |
</properties> |
|
58 |
|
|
59 |
</project> |
|
60 |
|
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.mainplugin/buildNumber.properties | ||
---|---|---|
1 |
#Fri Sep 22 00:49:23 CEST 2017 |
|
2 |
buildNumber=80 |
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.mainplugin/src/main/assembly/gvsig-plugin-package.xml | ||
---|---|---|
1 |
<!-- |
|
2 |
|
|
3 |
gvSIG. Desktop Geographic Information System. |
|
4 |
|
|
5 |
Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
|
8 |
modify it under the terms of the GNU General Public License |
|
9 |
as published by the Free Software Foundation; either version 3 |
|
10 |
of the License, or (at your option) any later version. |
|
11 |
|
|
12 |
This program is distributed in the hope that it will be useful, |
|
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
GNU General Public License for more details. |
|
16 |
|
|
17 |
You should have received a copy of the GNU General Public License |
|
18 |
along with this program; if not, write to the Free Software |
|
19 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
MA 02110-1301, USA. |
|
21 |
|
|
22 |
For any additional information, do not hesitate to contact us |
|
23 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
|
|
25 |
--> |
|
26 |
<assembly> |
|
27 |
<id>gvsig-plugin-package</id> |
|
28 |
<formats> |
|
29 |
<format>zip</format> |
|
30 |
</formats> |
|
31 |
<baseDirectory>${gvsig.package.info.code}</baseDirectory> |
|
32 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
33 |
<files> |
|
34 |
<file> |
|
35 |
<source>target/package.info</source> |
|
36 |
</file> |
|
37 |
</files> |
|
38 |
|
|
39 |
<fileSets> |
|
40 |
<fileSet> |
|
41 |
<directory>target/org.gvsig.raster.app.common</directory> |
|
42 |
<outputDirectory>.</outputDirectory> |
|
43 |
<excludes> |
|
44 |
<exclude>package.info</exclude> |
|
45 |
</excludes> |
|
46 |
</fileSet> |
|
47 |
<fileSet> |
|
48 |
<directory>src/main/resources-plugin</directory> |
|
49 |
<outputDirectory>.</outputDirectory> |
|
50 |
</fileSet> |
|
51 |
</fileSets> |
|
52 |
|
|
53 |
<!-- |
|
54 |
<dependencySets> |
|
55 |
<dependencySet> |
|
56 |
<useProjectArtifact>false</useProjectArtifact> |
|
57 |
<useTransitiveDependencies>false</useTransitiveDependencies> |
|
58 |
<outputDirectory>lib</outputDirectory> |
|
59 |
<includes> |
|
60 |
</includes> |
|
61 |
</dependencySet> |
|
62 |
</dependencySets> |
|
63 |
--> |
|
64 |
</assembly> |
|
65 |
|
|
0 | 66 |
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.fedora.x86/buildNumber.properties | ||
---|---|---|
1 |
#Fri Mar 28 13:59:39 CET 2014 |
|
2 |
buildNumber=12 |
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.fedora.x86/src/main/assembly/gvsig-plugin-package.xml | ||
---|---|---|
1 |
<!-- |
|
2 |
|
|
3 |
gvSIG. Desktop Geographic Information System. |
|
4 |
|
|
5 |
Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
|
8 |
modify it under the terms of the GNU General Public License |
|
9 |
as published by the Free Software Foundation; either version 3 |
|
10 |
of the License, or (at your option) any later version. |
|
11 |
|
|
12 |
This program is distributed in the hope that it will be useful, |
|
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
GNU General Public License for more details. |
|
16 |
|
|
17 |
You should have received a copy of the GNU General Public License |
|
18 |
along with this program; if not, write to the Free Software |
|
19 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
MA 02110-1301, USA. |
|
21 |
|
|
22 |
For any additional information, do not hesitate to contact us |
|
23 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
|
|
25 |
--> |
|
26 |
<assembly> |
|
27 |
<id>gvsig-plugin-package</id> |
|
28 |
<formats> |
|
29 |
<format>zip</format> |
|
30 |
</formats> |
|
31 |
<baseDirectory>${gvsig.package.info.code}</baseDirectory> |
|
32 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
33 |
<files> |
|
34 |
<file> |
|
35 |
<source>target/package.info</source> |
|
36 |
</file> |
|
37 |
</files> |
|
38 |
|
|
39 |
<fileSets> |
|
40 |
<fileSet> |
|
41 |
<directory>target/org.gvsig.raster.app.common</directory> |
|
42 |
<outputDirectory>.</outputDirectory> |
|
43 |
<excludes> |
|
44 |
<exclude>package.info</exclude> |
|
45 |
</excludes> |
|
46 |
</fileSet> |
|
47 |
<fileSet> |
|
48 |
<directory>target/native/lib</directory> |
|
49 |
<outputDirectory>native</outputDirectory> |
|
50 |
</fileSet> |
|
51 |
<fileSet> |
|
52 |
<directory>src/main/resources-plugin</directory> |
|
53 |
<outputDirectory>.</outputDirectory> |
|
54 |
</fileSet> |
|
55 |
</fileSets> |
|
56 |
|
|
57 |
|
|
58 |
<dependencySets> |
|
59 |
<dependencySet> |
|
60 |
<useProjectArtifact>false</useProjectArtifact> |
|
61 |
<useTransitiveDependencies>false</useTransitiveDependencies> |
|
62 |
<outputDirectory>lib</outputDirectory> |
|
63 |
<includes> |
|
64 |
<include>org.gvsig:org.gvsig.jpotrace:jar</include> |
|
65 |
</includes> |
|
66 |
</dependencySet> |
|
67 |
</dependencySets> |
|
68 |
|
|
69 |
</assembly> |
|
70 |
|
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.fedora.x86/src/main/resources-plugin/autorun.sh | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
# |
|
3 |
# gvSIG. Desktop Geographic Information System. |
|
4 |
# |
|
5 |
# Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
# |
|
7 |
# This program is free software; you can redistribute it and/or |
|
8 |
# modify it under the terms of the GNU General Public License |
|
9 |
# as published by the Free Software Foundation; either version 3 |
|
10 |
# of the License, or (at your option) any later version. |
|
11 |
# |
|
12 |
# This program is distributed in the hope that it will be useful, |
|
13 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
# GNU General Public License for more details. |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License |
|
18 |
# along with this program; if not, write to the Free Software |
|
19 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
# MA 02110-1301, USA. |
|
21 |
# |
|
22 |
# For any additional information, do not hesitate to contact us |
|
23 |
# at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
# |
|
25 |
|
|
26 |
|
|
27 |
# |
|
28 |
# Plugin autorun |
|
29 |
# |
|
30 |
|
|
31 |
PLUGIN_NAME=$(basename "$PLUGIN_FOLDER") |
|
32 |
|
|
33 |
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PLUGIN_FOLDER/native" |
|
34 |
GVSIG_NATIVE_LIBS="$GVSIG_NATIVE_LIBS:$PLUGIN_FOLDER/native" |
|
35 |
|
|
36 |
|
|
37 |
|
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.fedora.x86/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|
3 |
<modelVersion>4.0.0</modelVersion> |
|
4 |
<artifactId>org.gvsig.raster.app.fedora.x86</artifactId> |
|
5 |
<packaging>jar</packaging> |
|
6 |
|
|
7 |
<parent> |
|
8 |
<groupId>org.gvsig</groupId> |
|
9 |
<artifactId>org.gvsig.raster.app</artifactId> |
|
10 |
<version>2.2.4-SNAPSHOT</version> |
|
11 |
</parent> |
|
12 |
|
|
13 |
<properties> |
|
14 |
<gvsig.package.info.operatingSystem>fedora</gvsig.package.info.operatingSystem> |
|
15 |
<gvsig.package.info.architecture>x86</gvsig.package.info.architecture> |
|
16 |
|
|
17 |
<native.classifier>fedora11-i586-dynamic</native.classifier> |
|
18 |
</properties> |
|
19 |
|
|
20 |
<dependencyManagement> |
|
21 |
<dependencies> |
|
22 |
<dependency> |
|
23 |
<groupId>org.gvsig</groupId> |
|
24 |
<artifactId>org.gvsig.jpotrace</artifactId> |
|
25 |
<classifier>${native.classifier}</classifier> |
|
26 |
<type>tar.gz</type> |
|
27 |
<version>2.0.0-SNAPSHOT</version> |
|
28 |
</dependency> |
|
29 |
</dependencies> |
|
30 |
</dependencyManagement> |
|
31 |
|
|
32 |
<dependencies> |
|
33 |
<dependency> |
|
34 |
<groupId>org.gvsig</groupId> |
|
35 |
<artifactId>org.gvsig.raster.app.common</artifactId> |
|
36 |
<type>zip</type> |
|
37 |
</dependency> |
|
38 |
<dependency> |
|
39 |
<groupId>org.gvsig</groupId> |
|
40 |
<artifactId>org.gvsig.jpotrace</artifactId> |
|
41 |
<scope>compile</scope> |
|
42 |
</dependency> |
|
43 |
<dependency> |
|
44 |
<groupId>org.gvsig</groupId> |
|
45 |
<artifactId>org.gvsig.jpotrace</artifactId> |
|
46 |
<classifier>${native.classifier}</classifier> |
|
47 |
<type>tar.gz</type> |
|
48 |
<scope>runtime</scope> |
|
49 |
</dependency> |
|
50 |
</dependencies> |
|
51 |
|
|
52 |
<build> |
|
53 |
<plugins> |
|
54 |
|
|
55 |
<plugin> |
|
56 |
<groupId>org.apache.maven.plugins</groupId> |
|
57 |
<artifactId>maven-dependency-plugin</artifactId> |
|
58 |
<executions> |
|
59 |
<execution> |
|
60 |
<id>unpack</id> |
|
61 |
<phase>process-sources</phase> |
|
62 |
<goals> |
|
63 |
<goal>unpack</goal> |
|
64 |
</goals> |
|
65 |
<configuration> |
|
66 |
<artifactItems> |
|
67 |
<artifactItem> |
|
68 |
<groupId>org.gvsig</groupId> |
|
69 |
<artifactId>org.gvsig.raster.app.common</artifactId> |
|
70 |
<type>zip</type> |
|
71 |
<overWrite>true</overWrite> |
|
72 |
<outputDirectory>target</outputDirectory> |
|
73 |
</artifactItem> |
|
74 |
<artifactItem> |
|
75 |
<groupId>org.gvsig</groupId> |
|
76 |
<artifactId>org.gvsig.jpotrace</artifactId> |
|
77 |
<classifier>${native.classifier}</classifier> |
|
78 |
<type>tar.gz</type> |
|
79 |
<overWrite>true</overWrite> |
|
80 |
<outputDirectory>target/native</outputDirectory> |
|
81 |
</artifactItem> |
|
82 |
</artifactItems> |
|
83 |
</configuration> |
|
84 |
</execution> |
|
85 |
</executions> |
|
86 |
</plugin> |
|
87 |
|
|
88 |
|
|
89 |
</plugins> |
|
90 |
</build> |
|
91 |
|
|
92 |
|
|
93 |
</project> |
|
94 |
|
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.lin.x86/buildNumber.properties | ||
---|---|---|
1 |
#Thu Oct 08 22:02:19 CEST 2015 |
|
2 |
buildNumber=26 |
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.lin.x86/src/main/resources-plugin/autorun.sh | ||
---|---|---|
1 |
#!/bin/sh |
|
2 |
# |
|
3 |
# gvSIG. Desktop Geographic Information System. |
|
4 |
# |
|
5 |
# Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
# |
|
7 |
# This program is free software; you can redistribute it and/or |
|
8 |
# modify it under the terms of the GNU General Public License |
|
9 |
# as published by the Free Software Foundation; either version 3 |
|
10 |
# of the License, or (at your option) any later version. |
|
11 |
# |
|
12 |
# This program is distributed in the hope that it will be useful, |
|
13 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
# GNU General Public License for more details. |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License |
|
18 |
# along with this program; if not, write to the Free Software |
|
19 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
# MA 02110-1301, USA. |
|
21 |
# |
|
22 |
# For any additional information, do not hesitate to contact us |
|
23 |
# at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
# |
|
25 |
|
|
26 |
|
|
27 |
# |
|
28 |
# Plugin autorun |
|
29 |
# |
|
30 |
|
|
31 |
PLUGIN_NAME=$(basename "$PLUGIN_FOLDER") |
|
32 |
|
|
33 |
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PLUGIN_FOLDER/native" |
|
34 |
GVSIG_NATIVE_LIBS="$GVSIG_NATIVE_LIBS:$PLUGIN_FOLDER/native" |
|
35 |
|
|
36 |
|
|
37 |
|
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.lin.x86/src/main/assembly/gvsig-plugin-package.xml | ||
---|---|---|
1 |
<!-- |
|
2 |
|
|
3 |
gvSIG. Desktop Geographic Information System. |
|
4 |
|
|
5 |
Copyright (C) 2007-2013 gvSIG Association. |
|
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
|
8 |
modify it under the terms of the GNU General Public License |
|
9 |
as published by the Free Software Foundation; either version 3 |
|
10 |
of the License, or (at your option) any later version. |
|
11 |
|
|
12 |
This program is distributed in the hope that it will be useful, |
|
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
GNU General Public License for more details. |
|
16 |
|
|
17 |
You should have received a copy of the GNU General Public License |
|
18 |
along with this program; if not, write to the Free Software |
|
19 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
MA 02110-1301, USA. |
|
21 |
|
|
22 |
For any additional information, do not hesitate to contact us |
|
23 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
|
|
25 |
--> |
|
26 |
<assembly> |
|
27 |
<id>gvsig-plugin-package</id> |
|
28 |
<formats> |
|
29 |
<format>zip</format> |
|
30 |
</formats> |
|
31 |
<baseDirectory>${gvsig.package.info.code}</baseDirectory> |
|
32 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
33 |
<files> |
|
34 |
<file> |
|
35 |
<source>target/package.info</source> |
|
36 |
</file> |
|
37 |
</files> |
|
38 |
|
|
39 |
<fileSets> |
|
40 |
<fileSet> |
|
41 |
<directory>target/org.gvsig.raster.app.common</directory> |
|
42 |
<outputDirectory>.</outputDirectory> |
|
43 |
<excludes> |
|
44 |
<exclude>package.info</exclude> |
|
45 |
</excludes> |
|
46 |
</fileSet> |
|
47 |
<fileSet> |
|
48 |
<directory>target/native/lib</directory> |
|
49 |
<outputDirectory>native</outputDirectory> |
|
50 |
</fileSet> |
|
51 |
<fileSet> |
|
52 |
<directory>src/main/resources-plugin</directory> |
|
53 |
<outputDirectory>.</outputDirectory> |
|
54 |
</fileSet> |
|
55 |
</fileSets> |
|
56 |
|
|
57 |
|
|
58 |
<dependencySets> |
|
59 |
<dependencySet> |
|
60 |
<useProjectArtifact>false</useProjectArtifact> |
|
61 |
<useTransitiveDependencies>false</useTransitiveDependencies> |
|
62 |
<outputDirectory>lib</outputDirectory> |
|
63 |
<includes> |
|
64 |
<include>org.gvsig:org.gvsig.jpotrace:jar</include> |
|
65 |
</includes> |
|
66 |
</dependencySet> |
|
67 |
</dependencySets> |
|
68 |
|
|
69 |
</assembly> |
|
70 |
|
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.lin.x86/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|
3 |
<modelVersion>4.0.0</modelVersion> |
|
4 |
<artifactId>org.gvsig.raster.app.lin.x86</artifactId> |
|
5 |
<packaging>jar</packaging> |
|
6 |
|
|
7 |
<parent> |
|
8 |
<groupId>org.gvsig</groupId> |
|
9 |
<artifactId>org.gvsig.raster.app</artifactId> |
|
10 |
<version>2.2.22-SNAPSHOT</version> |
|
11 |
</parent> |
|
12 |
|
|
13 |
<properties> |
|
14 |
<gvsig.package.info.operatingSystem>lin</gvsig.package.info.operatingSystem> |
|
15 |
<gvsig.package.info.architecture>x86</gvsig.package.info.architecture> |
|
16 |
|
|
17 |
<jpotrace.classifier>linux-all-gcc4-i386-dynamic</jpotrace.classifier> |
|
18 |
<jpotrace.version>2.0.0</jpotrace.version> |
|
19 |
</properties> |
|
20 |
|
|
21 |
<dependencyManagement> |
|
22 |
<dependencies> |
|
23 |
<dependency> |
|
24 |
<groupId>org.gvsig</groupId> |
|
25 |
<artifactId>org.gvsig.jpotrace</artifactId> |
|
26 |
<classifier>${jpotrace.classifier}</classifier> |
|
27 |
<version>${jpotrace.version}</version> |
|
28 |
<type>tar.gz</type> |
|
29 |
</dependency> |
|
30 |
</dependencies> |
|
31 |
</dependencyManagement> |
|
32 |
|
|
33 |
<dependencies> |
|
34 |
<dependency> |
|
35 |
<groupId>org.gvsig</groupId> |
|
36 |
<artifactId>org.gvsig.raster.app.common</artifactId> |
|
37 |
<type>zip</type> |
|
38 |
</dependency> |
|
39 |
<dependency> |
|
40 |
<groupId>org.gvsig</groupId> |
|
41 |
<artifactId>org.gvsig.jpotrace</artifactId> |
|
42 |
<scope>compile</scope> |
|
43 |
</dependency> |
|
44 |
<dependency> |
|
45 |
<groupId>org.gvsig</groupId> |
|
46 |
<artifactId>org.gvsig.jpotrace</artifactId> |
|
47 |
<classifier>${jpotrace.classifier}</classifier> |
|
48 |
<version>${jpotrace.version}</version> |
|
49 |
<type>tar.gz</type> |
|
50 |
<scope>runtime</scope> |
|
51 |
</dependency> |
|
52 |
</dependencies> |
|
53 |
|
|
54 |
<build> |
|
55 |
<plugins> |
|
56 |
|
|
57 |
<plugin> |
|
58 |
<groupId>org.apache.maven.plugins</groupId> |
|
59 |
<artifactId>maven-dependency-plugin</artifactId> |
|
60 |
<executions> |
|
61 |
<execution> |
|
62 |
<id>unpack</id> |
|
63 |
<phase>process-sources</phase> |
|
64 |
<goals> |
|
65 |
<goal>unpack</goal> |
|
66 |
</goals> |
|
67 |
<configuration> |
|
68 |
<artifactItems> |
|
69 |
<artifactItem> |
|
70 |
<groupId>org.gvsig</groupId> |
|
71 |
<artifactId>org.gvsig.raster.app.common</artifactId> |
|
72 |
<type>zip</type> |
|
73 |
<overWrite>true</overWrite> |
|
74 |
<outputDirectory>target</outputDirectory> |
|
75 |
</artifactItem> |
|
76 |
<artifactItem> |
|
77 |
<groupId>org.gvsig</groupId> |
|
78 |
<artifactId>org.gvsig.jpotrace</artifactId> |
|
79 |
<classifier>${jpotrace.classifier}</classifier> |
|
80 |
<version>${jpotrace.version}</version> |
|
81 |
<type>tar.gz</type> |
|
82 |
<overWrite>true</overWrite> |
|
83 |
<outputDirectory>target/native</outputDirectory> |
|
84 |
</artifactItem> |
|
85 |
</artifactItems> |
|
86 |
</configuration> |
|
87 |
</execution> |
|
88 |
</executions> |
|
89 |
</plugin> |
|
90 |
|
|
91 |
|
|
92 |
</plugins> |
|
93 |
</build> |
|
94 |
|
|
95 |
<!-- |
|
96 |
The profiles only configure the automatic deploy of gvSIG plugin in the gvSIG |
|
97 |
configured in HOME/.gvsig-devel.properties |
|
98 |
--> |
|
99 |
<profiles> |
|
100 |
|
|
101 |
<profile> |
|
102 |
<id>gvsig-plugin-install-raster-linux-x86</id> |
|
103 |
<activation> |
|
104 |
<os> |
|
105 |
<family>unix</family> |
|
106 |
<name>linux</name> |
|
107 |
<arch>x86</arch> |
|
108 |
</os> |
|
109 |
</activation> |
|
110 |
<properties> |
|
111 |
<gvsig.install.plugin>true</gvsig.install.plugin> |
|
112 |
</properties> |
|
113 |
</profile> |
|
114 |
|
|
115 |
<profile> |
|
116 |
<id>gvsig-plugin-install-raster-linux-i386</id> |
|
117 |
<activation> |
|
118 |
<os> |
|
119 |
<family>unix</family> |
|
120 |
<name>linux</name> |
|
121 |
<arch>i386</arch> |
|
122 |
</os> |
|
123 |
</activation> |
|
124 |
<properties> |
|
125 |
<gvsig.install.plugin>true</gvsig.install.plugin> |
|
126 |
</properties> |
|
127 |
</profile> |
|
128 |
|
|
129 |
</profiles> |
|
130 |
|
|
131 |
</project> |
|
132 |
|
|
0 | 133 |
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.common/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|
3 |
<modelVersion>4.0.0</modelVersion> |
|
4 |
<artifactId>org.gvsig.raster.app.common</artifactId> |
|
5 |
<packaging>jar</packaging> |
|
6 |
<name>${project.artifactId}</name> |
|
7 |
<description>Basic libraries for raster support</description> |
|
8 |
<parent> |
|
9 |
<groupId>org.gvsig</groupId> |
|
10 |
<artifactId>org.gvsig.raster.app</artifactId> |
|
11 |
<version>2.2.71</version> |
|
12 |
</parent> |
|
13 |
|
|
14 |
<dependencies> |
|
15 |
<dependency> |
|
16 |
<groupId>org.gvsig</groupId> |
|
17 |
<artifactId>org.gvsig.about.api</artifactId> |
|
18 |
<scope>compile</scope> |
|
19 |
</dependency> |
|
20 |
<dependency> |
|
21 |
<groupId>org.gvsig</groupId> |
|
22 |
<artifactId>org.gvsig.raster.cache.lib.api</artifactId> |
|
23 |
<scope>compile</scope> |
|
24 |
</dependency> |
|
25 |
<dependency> |
|
26 |
<groupId>org.gvsig</groupId> |
|
27 |
<artifactId>org.gvsig.raster.cache.lib.impl</artifactId> |
|
28 |
<scope>runtime</scope> |
|
29 |
</dependency> |
|
30 |
<dependency> |
|
31 |
<groupId>org.gvsig</groupId> |
|
32 |
<artifactId>org.gvsig.andami</artifactId> |
|
33 |
<scope>compile</scope> |
|
34 |
</dependency> |
|
35 |
<dependency> |
|
36 |
<groupId>org.gvsig</groupId> |
|
37 |
<artifactId>org.gvsig.i18n</artifactId> |
|
38 |
<scope>compile</scope> |
|
39 |
</dependency> |
|
40 |
<dependency> |
|
41 |
<groupId>org.gvsig</groupId> |
|
42 |
<artifactId>org.gvsig.tools.lib</artifactId> |
|
43 |
<scope>compile</scope> |
|
44 |
</dependency> |
|
45 |
<dependency> |
|
46 |
<groupId>org.gvsig</groupId> |
|
47 |
<artifactId>org.gvsig.app.mainplugin</artifactId> |
|
48 |
<scope>compile</scope> |
|
49 |
</dependency> |
|
50 |
<dependency> |
|
51 |
<groupId>org.gvsig</groupId> |
|
52 |
<artifactId>org.gvsig.raster.lib.api</artifactId> |
|
53 |
<scope>compile</scope> |
|
54 |
</dependency> |
|
55 |
<dependency> |
|
56 |
<groupId>org.gvsig</groupId> |
|
57 |
<artifactId>org.gvsig.raster.lib.impl</artifactId> |
|
58 |
<scope>compile</scope> |
|
59 |
</dependency> |
|
60 |
<dependency> |
|
61 |
<groupId>org.gvsig</groupId> |
|
62 |
<artifactId>org.gvsig.raster.fmap</artifactId> |
|
63 |
<scope>compile</scope> |
|
64 |
</dependency> |
|
65 |
<dependency> |
|
66 |
<groupId>org.gvsig</groupId> |
|
67 |
<artifactId>org.gvsig.fmap.control</artifactId> |
|
68 |
<scope>compile</scope> |
|
69 |
</dependency> |
|
70 |
<dependency> |
|
71 |
<groupId>org.gvsig</groupId> |
|
72 |
<artifactId>org.gvsig.utils</artifactId> |
|
73 |
<scope>compile</scope> |
|
74 |
</dependency> |
|
75 |
<dependency> |
|
76 |
<groupId>org.gvsig</groupId> |
|
77 |
<artifactId>org.gvsig.ui</artifactId> |
|
78 |
<scope>compile</scope> |
|
79 |
</dependency> |
|
80 |
<dependency> |
|
81 |
<groupId>org.gvsig</groupId> |
|
82 |
<artifactId>org.gvsig.metadata.lib.basic.api</artifactId> |
|
83 |
<scope>compile</scope> |
|
84 |
</dependency> |
|
85 |
<dependency> |
|
86 |
<groupId>org.gvsig</groupId> |
|
87 |
<artifactId>org.gvsig.timesupport.lib.api</artifactId> |
|
88 |
<scope>runtime</scope> |
|
89 |
</dependency> |
|
90 |
<dependency> |
|
91 |
<groupId>org.gvsig</groupId> |
|
92 |
<artifactId>org.gvsig.timesupport.lib.impl</artifactId> |
|
93 |
<scope>runtime</scope> |
|
94 |
</dependency> |
|
95 |
<dependency> |
|
96 |
<groupId>joda-time</groupId> |
|
97 |
<artifactId>joda-time</artifactId> |
|
98 |
<scope>runtime</scope> |
|
99 |
</dependency> |
|
100 |
<dependency> |
|
101 |
<groupId>org.gvsig</groupId> |
|
102 |
<artifactId>org.gvsig.raster.swing.api</artifactId> |
|
103 |
<scope>compile</scope> |
|
104 |
</dependency> |
|
105 |
<dependency> |
|
106 |
<groupId>org.gvsig</groupId> |
|
107 |
<artifactId>org.gvsig.raster.swing.impl</artifactId> |
|
108 |
<scope>runtime</scope> |
|
109 |
</dependency> |
|
110 |
<dependency> |
|
111 |
<groupId>org.gvsig</groupId> |
|
112 |
<artifactId>org.gvsig.raster.algorithm</artifactId> |
|
113 |
<scope>runtime</scope> |
|
114 |
</dependency> |
|
115 |
|
|
116 |
<dependency> |
|
117 |
<groupId>org.gvsig</groupId> |
|
118 |
<artifactId>org.gvsig.projection.api</artifactId> |
|
119 |
<scope>compile</scope> |
|
120 |
</dependency> |
|
121 |
<dependency> |
|
122 |
<groupId>org.gvsig</groupId> |
|
123 |
<artifactId>org.gvsig.projection.cresques.impl</artifactId> |
|
124 |
<scope>runtime</scope> |
|
125 |
</dependency> |
|
126 |
<dependency> |
|
127 |
<groupId>org.gvsig</groupId> |
|
128 |
<artifactId>org.gvsig.compat.api</artifactId> |
|
129 |
<scope>compile</scope> |
|
130 |
</dependency> |
|
131 |
<dependency> |
|
132 |
<groupId>org.gvsig</groupId> |
|
133 |
<artifactId>org.gvsig.compat.se</artifactId> |
|
134 |
<scope>compile</scope> |
|
135 |
</dependency> |
|
136 |
<dependency> |
|
137 |
<groupId>org.gvsig</groupId> |
|
138 |
<artifactId>org.gvsig.fmap.mapcontext.api</artifactId> |
|
139 |
<scope>compile</scope> |
|
140 |
</dependency> |
|
141 |
<dependency> |
|
142 |
<groupId>org.gvsig</groupId> |
|
143 |
<artifactId>org.gvsig.fmap.mapcontext.impl</artifactId> |
|
144 |
<scope>runtime</scope> |
|
145 |
</dependency> |
|
146 |
|
|
147 |
<dependency> |
|
148 |
<groupId>org.gvsig</groupId> |
|
149 |
<artifactId>org.gvsig.jpotrace</artifactId> |
|
150 |
<scope>compile</scope> |
|
151 |
</dependency> |
|
152 |
|
|
153 |
</dependencies> |
|
154 |
|
|
155 |
<properties> |
|
156 |
<!-- Control the deploy of the plugin in gvsig.product.folder.path/gvSIG/extensiones --> |
|
157 |
<gvsig.install.plugin>false</gvsig.install.plugin> |
|
158 |
<!-- Control the deploy of the plugin package in gvsig.product.folder.path/install --> |
|
159 |
<gvsig.install.plugin.package>false</gvsig.install.plugin.package> |
|
160 |
</properties> |
|
161 |
</project> |
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.common/buildNumber.properties | ||
---|---|---|
1 |
#Fri Sep 22 00:49:22 CEST 2017 |
|
2 |
buildNumber=81 |
org.gvsig.raster/tags/org.gvsig.raster-2.2.71/org.gvsig.raster.app/org.gvsig.raster.app.common/src/main/resources-plugin/scripting/lib/gvsig_raster.py | ||
---|---|---|
1 |
from gvsig import * |
|
2 |
from org.gvsig.fmap.dal import DALLocator |
|
3 |
from org.gvsig.fmap.mapcontext import MapContextLocator |
|
4 |
from org.gvsig.fmap.dal.coverage import RasterLocator |
|
5 |
from org.gvsig.fmap.dal.coverage.store.parameter import NewRasterStoreParameters |
|
6 |
from org.gvsig.fmap.dal.coverage.dataset import Buffer |
|
7 |
from org.gvsig.fmap.dal.serverexplorer.filesystem import FilesystemServerExplorer |
|
8 |
from org.gvsig.raster.fmap.layers import FLyrRaster |
|
9 |
from java.lang import Byte,Short,Integer,Float,Double |
|
10 |
from java.io import File |
|
11 |
from java.awt.geom import AffineTransform |
|
12 |
import os |
|
13 |
|
|
14 |
from os.path import splitext |
|
15 |
|
|
16 |
global sourceFileName |
|
17 |
sourceFileName = [] |
|
18 |
sourceFileName.append(None) |
|
19 |
|
|
20 |
|
|
21 |
## |
|
22 |
# |
|
23 |
# Loads the raster layer given the filepath |
|
24 |
# |
|
25 |
# @params rasterfile the filename of the input layer |
|
26 |
# |
|
27 |
# @returns None loads the raster layer |
|
28 |
def loadRasterLayer (rasterfile, mode = "r" ): |
|
29 |
## Load a Raster file in a Layer |
|
30 |
sourceFileName[0]=rasterfile |
|
31 |
if not isinstance (rasterfile,File): |
|
32 |
rasterfile = File(rasterfile) |
|
33 |
|
|
34 |
name, ext = splitext(rasterfile.getName()) |
|
35 |
|
|
36 |
view = currentView() |
|
37 |
|
|
38 |
# Get the manager to use |
|
39 |
dalManager = DALLocator.getDataManager() |
|
40 |
mapContextManager = MapContextLocator.getMapContextManager() |
|
41 |
|
|
42 |
if ext.lower() == ".ecw" or ext.lower() == ".jp2" : |
|
43 |
# FIXME |
|
44 |
pass |
|
45 |
elif ext.lower() == ".mrsid": |
|
46 |
# FIXME |
|
47 |
pass |
|
48 |
else: |
|
49 |
# Create the parameters to open the raster store based in GDAL |
|
50 |
params = dalManager.createStoreParameters("Gdal Store") |
|
51 |
params.setFile(rasterfile) |
|
52 |
|
|
53 |
# Create the raster store |
|
54 |
dataStore = dalManager.createStore(params) |
|
55 |
|
|
56 |
# Create a raster layer based in this raster store |
|
57 |
layer = mapContextManager.createLayer(name, dataStore); |
|
58 |
|
|
59 |
view.addLayer(layer) |
|
60 |
return layer |
|
61 |
|
|
62 |
|
|
63 |
## @cond FALSE |
|
64 |
rasterLayerExtensions = dict () |
|
65 |
|
|
66 |
|
|
67 |
class RasterLayerExtensions(object): |
|
68 |
##This class hold aditional properties and operations need to manage the scripting raster layer |
|
69 |
def __init__(self, store=None): |
|
70 |
self.store = store |
|
71 |
self.buffer = None |
|
72 |
self.query = None |
|
73 |
self.values = None |
|
74 |
self.kernel = None |
|
75 |
self.setElem = None |
|
76 |
self.getElem = None |
|
77 |
|
|
78 |
def prepareQuery(self): |
|
79 |
## See RasterManager in javadocs for more info |
|
80 |
self.query = RasterLocator.getManager().createQuery(); |
|
81 |
## See RasterQuery in javadocs for more |
|
82 |
self.query.setAllDrawableBands() |
|
83 |
self.query.setAreaOfInterest() |
|
84 |
self.buffer = None |
|
85 |
self.values = None |
|
86 |
self.kernel = None |
|
87 |
|
|
88 |
def loadStore (self,rasterfile, mode = "r" ): |
|
89 |
if not isinstance(rasterfile,File): |
|
90 |
rasterfile = File(rasterfile) |
|
91 |
|
|
92 |
name, ext = splitext(rasterfile.getName()) |
|
93 |
|
|
94 |
dalManager = DALLocator.getDataManager() |
|
95 |
|
|
96 |
if ext.lower() == ".ecw" or ext.lower() == ".jp2" : |
|
97 |
# FIXME |
|
98 |
pass |
|
99 |
elif ext.lower() == ".mrsid": |
|
100 |
# FIXME |
|
101 |
pass |
|
102 |
else: |
|
103 |
# Create the parameters to open the raster store based in GDAL |
|
104 |
params = dalManager.createStoreParameters("Gdal Store") |
|
105 |
params.setFile(rasterfile) |
|
106 |
|
|
107 |
# Create the raster store |
|
108 |
dataStore = dalManager.createStore(params) |
|
109 |
return dataStore |
|
110 |
|
|
111 |
def createBuffer(self): |
|
112 |
if sourceFileName[0] == None: |
|
113 |
self.buffer = self.store.query(self.getQuery()) |
|
114 |
else: |
|
115 |
queryStore = self.loadStore(sourceFileName[0]) |
|
116 |
self.buffer = queryStore.query(self.getQuery()) |
|
117 |
#print self.buffer.getBandCount() |
|
118 |
|
|
119 |
def createNewBuffer(self,width, height, bandcount, datatype): |
|
120 |
if self.store != None: |
|
121 |
raise RuntimeException("Can't create a new buffer associated to a store") |
|
122 |
|
|
123 |
# FIXME: workaround to work with a jython bug passing byte, short and |
|
124 |
# double values as parameters |
|
125 |
if datatype in (Buffer.TYPE_BYTE, Buffer.TYPE_SHORT, Buffer.TYPE_INT): |
|
126 |
datatype = Buffer.TYPE_INT |
|
127 |
else: |
|
128 |
datatype = Buffer.TYPE_FLOAT |
|
129 |
# End workaround |
|
130 |
|
|
131 |
#print "---->>>>Buffer", datatype, width, height, bandcount |
|
132 |
self.buffer = RasterLocator.getManager().createBuffer( |
|
133 |
int(datatype), |
|
134 |
int(width), |
|
135 |
int(height), |
|
136 |
int(0 if bandcount is None else bandcount), |
|
137 |
True |
|
138 |
) |
|
139 |
self.prepareBuffer(self.buffer) |
|
140 |
|
|
141 |
def prepareBuffer(self, buffer): |
|
142 |
def setElemByte(buffer, line, col, band, data): |
|
143 |
buffer.setElem(line, col, band, Byte(data).byteValue()) |
|
144 |
|
|
145 |
def setElemShort (buffer, line, col, band, data): |
|
146 |
buffer.setElem(line, col, band, Short(data).shortValue()) |
|
147 |
|
|
148 |
def setElemInt(buffer, line, col, band, data): |
|
149 |
buffer.setElem(line, col, band, Integer(data).intValue()) |
|
150 |
|
|
151 |
def setElemFloat(buffer, line, col, band, data): |
|
152 |
buffer.setElem(line, col, band, Float(data).floatValue()) |
|
153 |
|
|
154 |
def setElemDouble(buffer, line, col, band, data): |
|
155 |
buffer.setElem(line, col, band, Double(data).doubleValue()) |
|
156 |
|
|
157 |
t = buffer.getDataType() |
|
158 |
if t == Buffer.TYPE_BYTE: |
|
159 |
self.getElem = buffer.getElemByte |
|
160 |
self.setElem = setElemByte |
|
161 |
elif t == Buffer.TYPE_SHORT or t == Buffer.TYPE_USHORT: |
|
162 |
self.getElem = buffer.getElemShort |
|
163 |
self.setElem = setElemShort |
|
164 |
elif t == Buffer.TYPE_INT: |
|
165 |
self.getElem = buffer.getElemInt |
|
166 |
self.setElem = setElemInt |
|
167 |
elif t == Buffer.TYPE_FLOAT: |
|
168 |
self.getElem = buffer.getElemFloat |
|
169 |
self.setElem = setElemFloat |
|
170 |
elif t == Buffer.TYPE_DOUBLE: |
|
171 |
self.getElem = buffer.getElemDouble |
|
172 |
self.setElem = setElemDouble |
|
173 |
#print buffer.getBandCount() |
|
174 |
self.values = [0 for count in range(buffer.getBandCount())] |
|
175 |
self.kernel = [[self.values for count in range(3)] for count in range(3)] |
|
176 |
|
|
177 |
def getQuery(self): |
|
178 |
if self.query == None: |
|
179 |
self.prepareQuery() |
|
180 |
return self.query |
|
181 |
|
|
182 |
def getBuffer(self, store): |
|
183 |
if self.buffer == None: |
|
184 |
self.createBuffer() |
|
185 |
self.prepareBuffer(self.buffer) |
|
186 |
return self.buffer |
|
187 |
|
|
188 |
def setValue(self, band, line, col, data): |
|
189 |
t = self.buffer.getDataType() |
|
190 |
if t == Buffer.TYPE_BYTE: |
|
191 |
self.buffer.setElem(line, col, band, Byte(data).byteValue()) |
|
192 |
elif t == Buffer.TYPE_SHORT or t == Buffer.TYPE_USHORT: |
|
193 |
self.buffer.setElem(line, col, band, Short(data).shortValue()) |
|
194 |
elif t == Buffer.TYPE_INT: |
|
195 |
self.buffer.setElem(line, col, band, Integer(data).intValue()) |
|
196 |
elif t == Buffer.TYPE_FLOAT: |
|
197 |
self.buffer.setElem(line, col, band, Float(data).floatValue()) |
|
198 |
elif t == Buffer.TYPE_DOUBLE: |
|
199 |
self.buffer.setElem(line, col, band, Double(data).doubleValue()) |
|
200 |
|
|
201 |
def getValue(self, band, row, column): |
|
202 |
if self.getElem == None: |
|
203 |
self.createBuffer() |
|
204 |
self.prepareBuffer(self.buffer) |
|
205 |
return self.getElem(row, column, band) |
|
206 |
|
|
207 |
def getBandValues(self, row, column): |
|
208 |
if self.getElem == None: |
|
209 |
self.createBuffer() |
|
210 |
self.prepareBuffer(self.buffer) |
|
211 |
for b in xrange(self.buffer.getBandCount()): |
|
212 |
self.values[b] = self.getElem(row, column, b) |
|
213 |
return self.values |
|
214 |
|
|
215 |
def setBandValues(self,row,column,values): |
|
216 |
for b in xrange(self.buffer.getBandCount()): |
|
217 |
self.setElem(self.buffer, row, column, b, values[b]) |
|
218 |
|
|
219 |
def saveBuffer(self,filename): |
|
220 |
manager = DALLocator.getDataManager () |
|
221 |
eparams = manager.createServerExplorerParameters(FilesystemServerExplorer.NAME) |
|
222 |
eparams.setDynValue("initialpath",os.path.dirname(sourceFileName[0])) |
|
223 |
serverExplorer = manager.openServerExplorer(eparams.getExplorerName(),eparams) |
|
224 |
|
|
225 |
sparams = serverExplorer.getAddParameters("Gdal Store") |
|
226 |
sparams.setDestination(os.path.dirname(sourceFileName[0]),filename) |
|
227 |
sparams.setBuffer(self.buffer) |
|
228 |
#at = AffineTransform(1, 0, 0, -1, 0, 0) |
|
229 |
#sparams.setAffineTransform(at); |
|
230 |
|
|
231 |
serverExplorer.add("Gdal Store", sparams, True) |
|
232 |
|
|
233 |
## @endcond |
|
234 |
|
|
235 |
## |
|
236 |
# |
|
237 |
# Represents a raster layer. |
|
238 |
# |
|
239 |
class RasterLayer(FLyrRaster): |
|
240 |
TYPE_BYTE = Buffer.TYPE_BYTE |
|
241 |
TYPE_SHORT = Buffer.TYPE_SHORT |
|
242 |
TYPE_INT = Buffer.TYPE_INT |
|
243 |
TYPE_FLOAT = Buffer.TYPE_FLOAT |
|
244 |
TYPE_DOUBLE = Buffer.TYPE_DOUBLE |
|
245 |
|
|
246 |
@staticmethod |
|
247 |
## @cond FALSE |
|
248 |
def getExtensions(self): |
|
249 |
## This is a internal method, don't use it. |
|
250 |
|
|
251 |
global rasterLayerExtensions |
|
252 |
extensions = rasterLayerExtensions.get(self.hashCode(), None) |
|
253 |
if extensions == None: |
|
254 |
extensions = RasterLayerExtensions(self.getDataStore()) |
|
255 |
rasterLayerExtensions[self.hashCode()] = extensions |
|
256 |
return extensions |
|
257 |
## @endcond |
|
258 |
|
|
259 |
@staticmethod |
|
260 |
## |
|
261 |
# |
|
262 |
# Return the number of bands of the raster |
|
263 |
# |
|
264 |
# @param self The raster layer object |
|
265 |
# |
|
266 |
# @return the number of bands of the raster layer |
|
267 |
# |
|
268 |
def getBandsCount(self): |
|
269 |
return self.getDataStore().getBandCount() |
|
270 |
|
|
271 |
@staticmethod |
|
272 |
## |
|
273 |
# |
|
274 |
# Return the width in points/pixels of the raster |
|
275 |
# |
|
276 |
# @param self The raster layer object |
|
277 |
# |
|
278 |
# @return the width of the raster |
|
279 |
# |
|
280 |
def getWidth(self): |
|
281 |
return self.getDataStore().getWidth() |
|
282 |
|
|
283 |
@staticmethod |
|
284 |
## |
|
285 |
# |
|
286 |
# Return the height in points/pixels of the raster |
|
287 |
# |
|
288 |
# @param self The raster layer object |
|
289 |
# |
|
290 |
# @return the height of the raster |
|
291 |
def getHeight(self): |
|
292 |
return self.getDataStore().getHeight() |
|
293 |
|
|
294 |
@staticmethod |
|
295 |
## |
|
296 |
# |
|
297 |
# Return the data type of the raster |
|
298 |
# |
|
299 |
# TYPE_BYTE = Byte datatype |
|
300 |
# |
|
301 |
# TYPE_USHORT = Unsigned Short datatype |
|
302 |
# |
|
303 |
# TYPE_SHORT = Signed Short datatype |
|
304 |
# |
|
305 |
# TYPE_INT = Integer datatype |
|
306 |
# |
|
307 |
# TYPE_FLOAT = Float Datatype |
|
308 |
# |
|
309 |
# TYPE_DOUBLE = Double Datatype |
|
310 |
# |
|
311 |
# @param self The raster layer object |
|
312 |
# |
|
313 |
# @return the datatype of the raster layer |
|
314 |
def getDataType(self): |
|
315 |
return self.getDataStore().getDataType() |
|
316 |
|
|
317 |
@staticmethod |
|
318 |
## |
|
319 |
# |
|
320 |
# Return the value of a point of a "band" from "row" and "coulmn" of |
|
321 |
# the Raster. |
|
322 |
# |
|
323 |
# This method use with care, it has a strong overhead. Use instead |
|
324 |
# the method "walk" to go over the raster. |
|
325 |
# |
|
326 |
# @param band band from which the value should be retrieved |
|
327 |
# @param row row in the raster from which the value should be retrieved |
|
328 |
# @param column column in the raster from which the value should be retrieved |
|
329 |
# |
|
330 |
# @return the value of a point/pixel of a "band" from "row" and "column" of the Raster |
|
331 |
# |
|
332 |
def getData(self, band, row, column): |
|
333 |
return self.getExtensions().getValue(band, row, column) |
|
334 |
|
|
335 |
@staticmethod |
|
336 |
## |
|
337 |
# |
|
338 |
# Go over the raster and for each point call to the function |
|
339 |
# "operation" and pass as argument a tuple with the values of |
|
340 |
# the point for each band. |
|
341 |
# |
|
342 |
# This method don't return any value |
|
343 |
# |
|
344 |
# @param self pointer to the Layer object |
|
345 |
# @param operation any operation which operates on the raster point-by-point |
|
346 |
# |
|
347 |
# @return None |
|
348 |
# |
|
349 |
def walk(self, operation): |
|
350 |
extension = self.getExtensions() |
|
351 |
store = self.getDataStore() |
|
352 |
sourceExtension = RasterLayerExtensions() |
|
353 |
sourceExtension.createNewBuffer(store.getWidth(), store.getHeight(), store.getBandCount(), store.getDataType()) |
|
354 |
|
|
355 |
for band in xrange(store.getBandCount()): |
|
356 |
for line in xrange(store.getHeight()): |
|
357 |
for column in xrange(store.getWidth()): |
|
358 |
operation(extension.getBandValues(line, column)) |
|
359 |
|
|
360 |
|
|
361 |
@staticmethod |
|
362 |
## |
|
363 |
# |
|
364 |
# Go over the raster and for each point, taking the neighbour points |
|
365 |
# as a kernel(3x3) call to the function "operation" and pass as argument a |
|
366 |
# tuple with the values of all the points in the kernel for each band. |
|
367 |
# |
|
368 |
# This method don't return any value |
|
369 |
# |
|
370 |
# @param self pointer to the Layer object |
|
371 |
# @param operation any operation which operates on the raster by a kernel(3x3). |
|
372 |
# |
|
373 |
# @return None |
|
374 |
# |
|
375 |
def walkKernel(self, operation): |
|
376 |
extension = self.getExtensions() |
|
377 |
store = self.getDataStore() |
|
378 |
sourceExtension = RasterLayerExtensions() |
|
379 |
sourceExtension.createNewBuffer(store.getWidth(), store.getHeight(), store.getBandCount(), store.getDataType()) |
|
380 |
|
|
381 |
k=0 |
|
382 |
l=0 |
|
383 |
values = [0 for count in xrange(store.getBandCount())] |
|
384 |
values = [[values for count in xrange(3)] for count in xrange(3)] |
|
385 |
outValues = list() |
|
386 |
for band in xrange(store.getBandCount()): |
|
387 |
for line in xrange(1,store.getHeight()-1): |
|
388 |
for column in xrange(1,store.getWidth()-1): |
|
389 |
|
|
390 |
i=0 |
|
391 |
for k in xrange(line-1,line+2): |
|
392 |
j=0 |
|
393 |
for l in xrange(column-1,column+2): |
|
394 |
values[i][j]=extension.getBandValues(k,l) |
|
395 |
j=j+1 |
|
396 |
i=i+1 |
|
397 |
operation(values) |
|
398 |
|
|
399 |
|
|
400 |
@staticmethod |
|
401 |
## |
|
402 |
# |
|
403 |
# Go over the raster and for each point call to the function "filter1" |
|
404 |
# and pass as argument a tuple with the values of all the points in the |
|
405 |
# kernel for each band. |
|
406 |
# |
|
407 |
# The function "filter1" must be such that it takes a tuple, modifies its value |
|
408 |
# and returns a new tuple. |
|
409 |
# |
|
410 |
# This method saves the newly created(filter applied) layer to "targetfilename" |
|
411 |
# |
|
412 |
# @param self pointer to the Layer object |
|
413 |
# @param filter1 any filter which modifies the raster layer point-by-point |
|
414 |
# @param targetfilename filename to which the output layer should be saved |
|
415 |
# @param targetdatatype datatype of which the output layer to be saved (use only TYPE_INT,TYPE_BYTE or TYPE_SHORT as of now) |
|
416 |
# @param targetbandcount number of bands in the output layer |
|
417 |
# |
|
418 |
# @return saves the created layer to "targetfilename" in the current directory |
|
419 |
# |
|
420 |
def filter(self, filter1, targetfilename, targetdatatype=None, targetbandcount=None): |
|
421 |
extension = self.getExtensions() |
|
422 |
store = self.getDataStore() |
|
423 |
targetExtension = RasterLayerExtensions() |
|
424 |
#targetExtension.createNewBuffer(store.getWidth(), store.getHeight(), store.getBandCount(), store.getDataType()) |
|
425 |
targetExtension.createNewBuffer(store.getWidth(), store.getHeight(), targetbandcount, targetdatatype) |
|
426 |
|
|
427 |
for band in xrange(store.getBandCount()): |
|
428 |
for line in xrange(store.getHeight()): |
|
429 |
for column in xrange(store.getWidth()): |
|
430 |
values = filter1(extension.getBandValues(line,column)) |
|
431 |
targetExtension.setBandValues(line, column, values) |
|
432 |
|
|
433 |
targetExtension.saveBuffer(targetfilename) |
|
434 |
|
|
435 |
@staticmethod |
|
436 |
## |
|
437 |
# |
|
438 |
# Go over the raster and for each point, taking the neighbour points |
|
439 |
# as a kernel(3x3) call to the function "filter1" and pass as argument |
|
440 |
# a tuple with the values of all the points in the kernel for each band. |
|
441 |
# |
|
442 |
# The function "filter1" must be such that it takes a tuple of multi-dimension, |
|
443 |
# modifies its value and returns a new tuple having dimensions same as input. |
|
444 |
# |
|
445 |
# This method saves the newly created(filter applied) layer to "targetfilename" |
|
446 |
# |
|
447 |
# @param self pointer to the Layer object |
|
448 |
# @param filter1 any filter which modifies the raster layer using a kernel(3x3). |
|
449 |
# @param targetfilename filename to which the output layer should be saved |
|
450 |
# @param targetdatatype datatype of which the output layer to be saved (use only TYPE_INT,TYPE_BYTE or TYPE_SHORT as of now) |
|
451 |
# @param targetbandcount number of bands in the output layer |
|
452 |
# |
|
453 |
# @return saves the created layer to "targetfilename" in the current directory |
|
454 |
# |
|
455 |
def filterKernel(self, filter1, targetfilename, targetdatatype=None, targetbandcount=None): |
|
456 |
extension = self.getExtensions() |
|
457 |
store = self.getDataStore() |
Also available in: Unified diff