Revision 9779

View differences:

org.gvsig.raster/tags/org.gvsig.raster-2.2.96/org.gvsig.raster.app/org.gvsig.raster.app.lin.x86_64/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.96/org.gvsig.raster.app/org.gvsig.raster.app.lin.x86_64/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.96/org.gvsig.raster.app/org.gvsig.raster.app.lin.x86_64/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_64</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_64</gvsig.package.info.architecture>
16
        
17
    <jpotrace.classifier>linux-all-gcc4-X86_64-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_64</id>
103
      <activation>
104
         <os>
105
             <family>unix</family>
106
             <name>linux</name>
107
             <arch>x86_64</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-amd64</id>
117
      <activation>
118
         <os>
119
             <family>unix</family>
120
             <name>linux</name>
121
             <arch>amd64</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

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.96/org.gvsig.raster.app/org.gvsig.raster.app.lin.x86_64/buildNumber.properties
1
#Thu Oct 08 22:02:21 CEST 2015
2
buildNumber=26
0 3

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.96/org.gvsig.raster.app/org.gvsig.raster.app.win.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.win.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>win</gvsig.package.info.operatingSystem>
15
    <gvsig.package.info.architecture>x86</gvsig.package.info.architecture>
16
    
17
    <jpotrace.classifier>win-nt-vs8-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
  <profiles>
96
  
97
    <profile>
98
      <id>gvsig-plugin-install-raster-windows-x86</id>
99
      <activation>
100
         <os>
101
             <family>windows</family>
102
             <!-- Uncomment this when have support for amd64 -->
103
             <!-- 
104
             <arch>x86</arch>
105
             -->
106
         </os>
107
      </activation>
108
	  <properties>
109
	    <gvsig.install.plugin>true</gvsig.install.plugin>
110
	  </properties>
111
    </profile>
112
    
113
  </profiles>
114
  
115
</project>
116

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.96/org.gvsig.raster.app/org.gvsig.raster.app.win.x86/buildNumber.properties
1
#Thu Oct 08 22:02:21 CEST 2015
2
buildNumber=26
org.gvsig.raster/tags/org.gvsig.raster-2.2.96/org.gvsig.raster.app/org.gvsig.raster.app.win.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
    <file>
38
    		<source>target/native/bin/jpotrace001.dll</source>
39
        <outputDirectory>install/files</outputDirectory>
40
    </file>    
41
  </files>
42

  
43
  <fileSets>
44
    <fileSet>
45
      <directory>target/org.gvsig.raster.app.common</directory>
46
      <outputDirectory>.</outputDirectory>
47
      <excludes>
48
      	<exclude>package.info</exclude>
49
      </excludes>
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

  
0 71

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.96/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.96/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.96/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.96/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.96/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

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.96/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.96</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.96/org.gvsig.raster.app/org.gvsig.raster.app.mainplugin/buildNumber.properties
1
#Thu Oct 03 13:25:36 CEST 2019
2
buildNumber=105
0 3

  
org.gvsig.raster/tags/org.gvsig.raster-2.2.96/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.96/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.96/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.96/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.96/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.96/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.96/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.96/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.96/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())
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff