Revision 18292

View differences:

branches/v10/extensions/extGPE-gvSIG/config/text.properties
1
gpe_preferences_window=Gml Persistence Engine
2
gpe_preferences_window_other=Otros
3
gpe_preferences_window_xmlschema=XML Schema
4
gpe_preferences_window_xml=XML
5
gpe_preferences_window_coordinates=Coordenadas
6
gpe_xmlVersion=Versi?n de XML
7
gpe_xmlEncoding=Codificaci?n
8
gpe_defaultBlancSpace=Espacio en blanco para la etiquetas
9
gpe_namespacePrefix=Prefijo del Namespace
10
gpe_namespaceURI=Namespace
11
gpe_schemaName=Nombre del esquema por defecto
12
gpe_coordinates=S?mbolo decimal
13
gpe_coordinatesSeparator=Separador entre coordenadas
14
gpe_tuplesSeparator=Separador entre pares de coordenadas
15
gpe_decimalDigits=N?mero de decimales
16
gpe_exporting=Exportando capa
17
gpe_select_version=Selecciona la versi?n 
18
gpe_select_format=Selecciona el formato
19
gpe_select_writer=Selecciona el writer
20
gpe_select_schema=Selecciona el XML schema
21
gpe_create_default_schema=Crear un esquema por defecto
0 22

  
branches/v10/extensions/extGPE-gvSIG/config/about.htm
1
<html>
2
  <head>
3
    <title>libGPE Extension.</title>
4
    <meta content="">
5
    <style></style>
6
  </head>
7
  <body>
8
<table width="60%" border="0">
9
  <tr>
10
     <td width="64%"><img src="images/logo_horiz_bicolor_gva.png" width="329" height="50"></td>
11
    <td width="36%"><div align="right"><img src="images/logoIver.png" width="87" height="50"></div></td>
12
  </tr>
13
  <tr>
14
    <td colspan="2"><font face="Arial, Helvetica, sans-serif">&copy; Copyright
15
      Generalitat Valenciana, IVER T.I. 2008.</font></td>
16
  </tr>
17
</table>
18
  <h3>libGPE Extension.</h3>
19
  <p><br><br><b> Build Number: #build.number#</b></p>
20
  </body>
21
</html>
0 22

  
branches/v10/extensions/extGPE-gvSIG/config/text_en.properties
1
gpe_preferences_window=Gml Persistence Engine
2
gpe_preferences_window_other=Others
3
gpe_preferences_window_xmlschema=XML Schema
4
gpe_preferences_window_xml=XML
5
gpe_preferences_window_coordinates=Coordinates
6
gpe_xmlVersion=XML version
7
gpe_xmlEncoding=XML Encoding
8
gpe_defaultBlancSpace=Blank space for the label names
9
gpe_namespacePrefix=Namespace prefix
10
gpe_namespaceURI=Namespace
11
gpe_schemaName=Default namespace
12
gpe_coordinates=Decimal symbol
13
gpe_coordinatesSeparator=Separator between coordinates
14
gpe_tuplesSeparator=Separator between a pair of coordinates
15
gpe_decimalDigits=Decimal number
16
gpe_exporting=Exporting a layer
17
gpe_select_version=Select the version 
18
gpe_select_format=Select the format
19
gpe_select_writer=Select a writer
20
gpe_select_schema=Select a schema
21
gpe_create_default_schema=Create a default schema
0 22

  
branches/v10/extensions/extGPE-gvSIG/config/config.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<plugin-config>
3
	<depends plugin-name="com.iver.cit.gvsig" />
4
	<libraries library-dir="./lib"/>
5
	<resourceBundle name="text"/>
6
	<extensions>
7
		<extension class-name="org.gvsig.gpe.GPEReaderExtension"
8
			description="Support fo reading"
9
			active="true"
10
			priority="1">			
11
		</extension>	
12
		<extension class-name="org.gvsig.gpe.GPEWriterExtension"
13
			description="Support for writing"
14
			active="true">
15
			<menu text="Capa/export_to/GPE/gml" action-command="GML"/>
16
			<menu text="Capa/export_to/GPE/kml" action-command="KML"/>
17
		</extension>
18
		<extension class-name="org.gvsig.gpe.AboutGPEExtension"
19
                description="Extension to add about panel."
20
                active="true"
21
                priority="1">
22
</extension>    			
23
	</extensions>
24
</plugin-config>
0 25

  
branches/v10/extensions/extGPE-gvSIG/config/parser.properties
1
GML=org.gvsig.gpe.gml.GPEGmlSFP0Parser
2
KML=org.gvsig.gpe.kml.GPEKmlv21Parser
0 3

  
branches/v10/extensions/extGPE-gvSIG/config/writer.properties
1
GMLv2=org.gvsig.gpe.gml.writer.GPEGmlv2WriterHandlerImplementor
2
GMLSFP0=org.gvsig.gpe.gml.writer.GPEGmlSFP0WriterHandlerImplementor
3
KML=org.gvsig.gpe.kml.writer.GPEKml21WriterHandlerImplementor
0 4

  
branches/v10/extensions/extGPE-gvSIG/build.number
1
#Build Number for ANT. Do not edit!
2
#Fri Jan 18 13:15:23 GMT+01:00 2008
3
build.number=1
0 4

  
branches/v10/extensions/extGPE-gvSIG/install/install.xml
1
<installation version="1.0">
2
	<info>
3
		<appname>GPE</appname> <!-- A SUSTITUR POR EL NOMBRE DE EXTENSION, POR EJEMPLO: "VISOR_RUIDO" -->
4
		<appversion>0.1</appversion>
5
		<authors>
6
			<author name="Generalitat Valenciana. Conselleria d'Infraestructures i Transport" email="" />
7
			<author name="Iver Tecnologías de la Información S.A." email="" />
8
            <author name="Ayto. de Valencia" email="" />
9
		</authors>
10
		<url>http://www.gvsig.gva.es/</url>
11
		<javaversion>1.5</javaversion>
12
	</info>
13

  
14
	<guiprefs height="600" resizable="yes" width="800">
15
		<laf name="liquid">
16
			<os family="unix" />
17
		</laf>
18
		<laf name="liquid">
19
			<os family="windows" />
20
		</laf>
21
	</guiprefs>
22

  
23
	<locale>
24
		<langpack iso3="spa"/>
25
		<langpack iso3="val"/>
26
		<langpack iso3="eng"/>
27
		<langpack iso3="cat"/>
28
		<langpack iso3="chn"/>
29
		<langpack iso3="cze"/>
30
		<langpack iso3="dan"/>
31
		<langpack iso3="deu"/>
32
		<langpack iso3="fin"/>
33
		<langpack iso3="fra"/>
34
		<langpack iso3="glg"/>
35
		<langpack iso3="hun"/>
36
		<langpack iso3="ita"/>
37
		<langpack iso3="jpn"/>
38
		<langpack iso3="mys"/>
39
		<langpack iso3="ned"/>
40
		<langpack iso3="nor"/>
41
		<langpack iso3="pol"/>
42
		<langpack iso3="por"/>
43
		<langpack iso3="rom"/>
44
		<langpack iso3="rus"/>
45
		<langpack iso3="scg"/>
46
		<langpack iso3="svk"/>
47
		<langpack iso3="swe"/>
48
		<langpack iso3="ukr"/>
49
	</locale>
50

  
51
	<resources>
52
		<res src="resources/gpl.txt" id="LicencePanel.licence"/>
53
		<res src="resources/LEEME.html" id="HTMLInfoPanel.info"/>
54
		<res src="resources/images/Logo_gvsig_gva.jpg" id="Installer.image"/>
55
		<res src="resources/userInputSpec.xml" id="userInputSpec.xml"/>
56
		<parsable targetfile="resources/userInputSpec.xml"/>
57
		<res src="resources/userInputLang.xml_val" id="userInputLang.xml_val" />
58
		<res src="resources/userInputLang.xml_spa" id="userInputLang.xml_spa" />
59
	</resources>
60

  
61
	<panels>
62
		<panel classname="HTMLInfoPanel"/>
63
		<panel classname="LicencePanel"/>
64
		<panel classname="PacksPanel"/>
65
		<panel classname="UserInputPanel"/>
66
		<panel classname="InstallPanel"/>
67
		<panel classname="SimpleFinishPanel"/>
68
	</panels>
69

  
70
	<packs>
71
		<pack name="libGPE Extension" required="yes">  <!--A SUSTITUIR POR LA EXTENSION, EJ: Extension VISOR_RUIDO-->
72
			<description>Extension to read and write vectorial data (GML and KML).</description> <!--A SUSTITUIR POR LA DESCRIPCION, EJ: Extension para manejo de... -->
73
			<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/" src="extensiones/org.gvsig.gpe" override="true"/> 
74
			<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/com.iver.cit.gvsig/lib" src="extensiones/com.iver.cit.gvsig/lib/org.gvsig.gpe.jar" override="true"/>
75
			<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/com.iver.cit.gvsig/lib" src="extensiones/com.iver.cit.gvsig/lib/org.gvsig.fmap.drivers.gpe.jar" override="true"/>
76
			<!--<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/com.iver.cit.gvsig/lib" src="extensiones/com.iver.cit.gvsig/lib/org.gvsig.gpe.gui.jar" override="true"/>-->
77
			<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/com.iver.cit.gvsig/lib" src="extensiones/com.iver.cit.gvsig/lib/gvsig-exceptions.jar" override="true"/>
78
			<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/com.iver.cit.gvsig/lib" src="extensiones/com.iver.cit.gvsig/lib/org.gvsig.gpe.gml.jar" override="true"/>
79
			<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/com.iver.cit.gvsig/lib" src="extensiones/com.iver.cit.gvsig/lib/org.gvsig.gpe.kml.jar" override="true"/>
80
			<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/com.iver.cit.gvsig/lib" src="extensiones/com.iver.cit.gvsig/lib/org.gvsig.xmlschema.jar" override="true"/>		
81
			<!-- FMAP, RemoteClients and WFS will be deleted-->
82
			<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/com.iver.cit.gvsig/drivers/gml" src="extensiones/com.iver.cit.gvsig/drivers/gml/gml.jar" override="true"/>
83
			<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/com.iver.cit.gvsig/lib" src="extensiones/com.iver.cit.gvsig/lib/fmap.jar" override="true"/>
84
			<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/com.iver.cit.gvsig/lib" src="extensiones/com.iver.cit.gvsig/lib/fmap-wfs.jar" override="true"/>		
85
			<file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/com.iver.cit.gvsig.wfs2/lib" src="extensiones/com.iver.cit.gvsig.wfs2/lib/com.iver.cit.gvsig.wfs2.jar" override="true"/>		
86
		    <file targetdir="$INSTALL_PATH/bin/gvSIG/extensiones/com.iver.cit.gvsig/lib" src="extensiones/com.iver.cit.gvsig/lib/remote-clients.jar" override="true"/>		
87
		</pack>
88
	</packs>
89
</installation>
0 90

  
branches/v10/extensions/extGPE-gvSIG/install/build.properties
1
#SUSTITUIR POR EL DIRECTORIO DE EXTENSION, ej: com.iver.aytovalencia.visor1
2
MAIN_INSTALL_PLUGIN=org.gvsig.gpe
3
WFS_INSTALL_PLUGIN=com.iver.cit.gvsig.wfs2
4

  
5

  
6
#VERIFICAR LOS NUMEROS DE VERSION
7
EXTENSIONS=com.iver.cit.gvsig,${MAIN_INSTALL_PLUGIN},${WFS_INSTALL_PLUGIN}
8
version=0.1
9
bversion=0_1
10
gvSIG.version=1_1_2
11

  
12
#SUSTITUIR POR EL NOMBRE DE PLUGIN, ej: visorRuido
13
APPNAME=GPE
14

  
15

  
16
#SUSTITUIR POR EL DIRECTORIO DE SALIDA, ej: /tmp/myExtension
17
OUTPUT_DIR=/tmp
0 18

  
branches/v10/extensions/extGPE-gvSIG/install/resources/userInputLang.xml_por
1
<langpack>
2
  <str id="text.label" txt="Path to gvSIG:"/>
3
</langpack>
0 4

  
branches/v10/extensions/extGPE-gvSIG/install/resources/gpl.txt
1
	GNU GENERAL PUBLIC LICENSE
2
	Version 2, June 1991
3

  
4
	 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
5

  
6
		Preamble
7

  
8
	The licenses for most software are designed to take away your freedom to share and change it.  By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users.  This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it.  (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.)  You can apply it to your programs, too.
9

  
10
	When we speak of free software, we are referring to freedom, not price.  Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
11

  
12
	To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
13

  
14
	For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have.  You must make sure that they, too, receive or can get the source code.  And you must show them these terms so they know their
15
rights.
16

  
17
	We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
18

  
19
	Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software.  If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
20

  
21
	Finally, any free program is threatened constantly by software	patents.  We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary.  To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
22

  
23
	The precise terms and conditions for copying, distribution and modification follow.
24

  
25
				GNU GENERAL PUBLIC LICENSE
26
	TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
27

  
28
	0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License.  The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language.  (Hereinafter, translation is included without limitation in the term "modification".)  Each licensee is addressed as "you".
29

  
30
	Activities other than copying, distribution and modification are not covered by this License; they are outside its scope.  The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
31

  
32
1.	You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
33

  
34
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
35

  
36
2.	You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
37

  
38
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
39

  
40
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
41

  
42
c)	If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License.  (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
43

  
44
These requirements apply to the modified work as a whole.  If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works.  But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
45

  
46
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
47

  
48
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
49

  
50
3.	You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
51

  
52
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
53

  
54
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
55

  
56
c)	Accompany it with the information you received as to the offer to distribute corresponding source code.  (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
57

  
58
The source code for a work means the preferred form of the work for making modifications to it.  For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable.  However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
59

  
60
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
61

  
62
4.	You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License.  Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License.
63
However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
64

  
65
5.	You are not required to accept this License, since you have not signed it.  However, nothing else grants you permission to modify or distribute the Program or its derivative works.  These actions are prohibited by law if you do not accept this License.  Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
66

  
67
6.	Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions.  You may not impose any further restrictions on the recipients' exercise of the rights granted herein.
68
You are not responsible for enforcing compliance by third parties to this License.
69

  
70
7.	If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License.  If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all.  For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
71

  
72
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
73

  
74
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices.  Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
75

  
76
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
77

  
78
8.	If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded.  In such case, this License incorporates the limitation as if written in the body of this License.
79

  
80
9.	The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time.  Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
81

  
82
Each version is given a distinguishing version number.  If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation.  If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
83

  
84
10.	If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission.  For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this.  Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
85

  
86
NO WARRANTY
87

  
88
11.	BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
89

  
90
12.	IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
91

  
92
END OF TERMS AND CONDITIONS
93

  
94
How to Apply These Terms to Your New Programs
95

  
96
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
97

  
98
To do so, attach the following notices to the program.  It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
99

  
100
<one line to give the program's name and a brief idea of what it does.> Copyright (C) <year>  <name of author>
101

  
102
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
103

  
104
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
105

  
106
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
107

  
108

  
109
Also add information on how to contact you by electronic and paper mail.
110

  
111
If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
112

  
113
Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
114
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
115

  
116
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License.  Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
117

  
118
You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary.  Here is a sample; alter the names:
119

  
120
Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.
121

  
122
<signature of Ty Coon>, 1 April 1989
123
Ty Coon, President of Vice
124

  
125
This General Public License does not permit incorporating your program into proprietary programs.  If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library.  If this is what you want to do, use the GNU Library General Public License instead of this License.
0 126

  
branches/v10/extensions/extGPE-gvSIG/install/resources/userInputLang.xml_cze
1
<langpack>
2
  <str id="text.label" txt="Path to gvSIG:"/>
3
</langpack>
0 4

  
branches/v10/extensions/extGPE-gvSIG/install/resources/userInputLang.xml_val
1
<langpack>
2
  <str id="text.label" txt="Ruta a gvSIG:"/>
3
</langpack>
0 4

  
branches/v10/extensions/extGPE-gvSIG/install/resources/userInputLang.xml_spa
1
<langpack>
2
  <str id="text.label" txt="Ruta a gvSIG:"/>
3
</langpack>
0 4

  
branches/v10/extensions/extGPE-gvSIG/install/resources/userInputLang.xml_cat
1
<langpack>
2
  <str id="text.label" txt="Ruta a gvSIG:"/>
3
</langpack>
0 4

  
branches/v10/extensions/extGPE-gvSIG/install/resources/userInputLang.xml_fra
1
<langpack>
2
  <str id="text.label" txt="Path to gvSIG:"/>
3
</langpack>
0 4

  
branches/v10/extensions/extGPE-gvSIG/install/resources/userInputLang.xml_eng
1
<langpack>
2
  <str id="text.label" txt="Path to gvSIG:"/>
3
</langpack>
0 4

  
branches/v10/extensions/extGPE-gvSIG/install/resources/userInputSpec.xml
1
<userInput>
2
	<panel order="0">
3
		<field 	type="search" 
4
				variable="INSTALL_PATH"
5
				size="45">
6
  			<description align="left" />
7
  			<spec 	txt="Path to gvSIG:" 
8
		  			id="text.label"
9
  					checkfilename="bin/andami.jar"
10
        			type="directory" 
11
        			result="directory">
12
  			<choice value="/usr/local/gvSIG_1.0" os="unix" />
13
  			<choice value="/opt/gvSIG_1.0" os="unix" />
14
  			<choice value="$USER_HOME/gvSIG_1.0" os="unix" />
15
  			<choice value="C:\Archivos de Programa\gvSIG_1.0" os="windows" />
16
  			<choice value="C:\Program Files\gvSIG_1.0" os="windows" />
17
  			</spec>
18
		</field>
19
	</panel>
20
</userInput>
21

  
0 22

  
branches/v10/extensions/extGPE-gvSIG/install/resources/LEEME.html
1
<html>
2
<head>
3
<style type="text/css">
4
html, body, h1, h2, h3, h4, div, p, ul, li, input {
5
   font-family: Arial, Helvetica, sans-serif;
6
}
7

  
8
h1 {
9
   font-size: large;
10
}
11

  
12
h2 {
13
   font-size: large;
14
}
15

  
16
h3 {
17
   font-size: medium;
18
}
19
</style>
20
</head>
21
<body>
22
<h1>Visor Ruido Ayuntamiento de Valencia</h1>
23

  
24
<h2>Autores:</h2>
25
<ul>
26
<li>Generalitat Valenciana
27
 (Conselleria d'Infraestructures i Transport).</li>
28
<li>Iver Tecnolog&iacute;as de la Informaci&oacute;n S.A.</li>
29
</ul>
30

  
31
<p>Software con licencia GNU/GPL
32
(http://www.fsf.org/licensing/licenses/gpl.html)</p>
33

  
34
<p>Informaci?n y soporte:
35
	http://www.iver.es/<p>
36

  
37
<h2>Requisitos de la aplicaci&oacute;n:</h2>
38
<h3>Sistema</h3>
39
<ul>
40
<li>M&iacute;nimos: Pentium III / 256 MB RAM.</li>
41
<li>Recomendables: Pentium IV / 512 MB RAM.</li>
42
<li>Sistemas operativos: plataformas Windows y Linux.</li>
43
</ul>
44

  
45
<h3>Software instalado</h3> (disponible en http://www.gvsig.gva.es o en http://java.sun.com)
46
<ul>
47
<li>gvSIG-1.1</li>
48
</ul>
49

  
50
<h2>M&aacute;s informaci&oacute;n y soporte sobre gvSIG en:</h2>
51
<h3> Web oficial del proyecto:</h3>
52
	http://www.gvsig.gva.es
53

  
54
<h3>Listas de distribuci&oacute;n:</h3>
55
<span style="monospace"> http://runas.cap.gva.es/mailman/listinfo/gvsig_usuarios</span> (soporte para usuarios).
56
<span style="monospace"> http://runas.cap.gva.es/mailman/listinfo/gvsig_desarrolladores</span> (soporte para desarrolladores).
57
<span style="monospace"> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional</span> (soporte para desarrolladores o usuarios de habla no hispana).
58

  
59
</body>
60
</html>
0 61

  
branches/v10/extensions/extGPE-gvSIG/install/resources/userInputLang.xml_deu
1
<langpack>
2
  <str id="text.label" txt="Path to gvSIG:"/>
3
</langpack>
0 4

  
branches/v10/extensions/extGPE-gvSIG/install/resources/userInputLang.xml_ita
1
<langpack>
2
  <str id="text.label" txt="Path to gvSIG:"/>
3
</langpack>
0 4

  
branches/v10/extensions/extGPE-gvSIG/install/buildExt.xml
1
<project name="instalador-gvSIG" default="init" basedir=".">
2
	
3
	<dirname file="${ant.file.instalador-gvSIG}" property="base_dir"/>
4
	<dirname file="${base_dir}" property="project_dir"/>
5
	<dirname file="${project_dir}" property="workspace_dir"/>
6
	
7
	<import file="${workspace_dir}/binaries/ant/utilities.xml"/>
8
	
9
	<property file="build.properties"/>
10
	<property file="${workspace_dir}/_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/build.number" prefix="gvSIG."/>
11
	<property file="${project_dir}/build.number"/>
12
	
13
	<property name="dir_inst" location="/usr/local"/>
14
	<!--<property name="base_dir" location="./"/>		-->
15
	<property name="izpack_dir" location="${workspace_dir}/install/IzPack"/>
16
	<property name="dir_libs" location="${izpack_dir}/lib"/>
17
	
18
	
19
	<property name="GVSIG_INSTALLDIR" location="${workspace_dir}/install"/>
20
	<property name="ANDAMI_DIR" location="${workspace_dir}/_fwAndami"/>
21
	<property name="INSTALLER_DIR" value="${APPNAME}-${version}_installer"/>
22
	<property name="JARNAME" value="${APPNAME}-${version}.jar"/>
23
	<property name="DIR_LIN_GVSIG" location="${GVSIG_INSTALLDIR}/instalador-gvSIG-lin"/>
24
	<property name="DIR_WIN_GVSIG" location="${GVSIG_INSTALLDIR}/instalador-gvSIG-win"/>
25
	<property name="baseFileName" value="${APPNAME}-${gvSIG.version}-${gvSIG.build.number}_${build.number}"/>
26
	<property name="WINDOWSZIP" value="${baseFileName}-windows-i586.7z" />
27
	<property name="LINUXBIN" value="${baseFileName}-linux-i586.bin"/>
28
	<property name="WINDOWSEXE" value="${baseFileName}-windows-i586.exe"/>
29
	<property name="MAC_10_ZIP" value="${baseFileName}-mac-10_4.zip"/>
30
	<property name="autoinstalador" value="${APPNAME}_Installer" />
31
	<property name="OUTPUT_DIR" location="./tmp/versiones/v${version}/${build.number}"/> <!--CAMBIAR ESTO SEGUN DIRECTORIO OUTPUT -->
32
	
33
	<condition property="LAUNCHER7Z" value="${GVSIG_INSTALLDIR}/launcher/7z/7za" else="${GVSIG_INSTALLDIR}/launcher/7z/7z.exe">
34
		<os family="unix" />
35
	</condition>
36
	
37
	<taskdef name="izpack" classpath="${dir_libs}/compiler.jar" classname="com.izforge.izpack.ant.IzPackTask"/>
38
	
39
	
40
	<condition property="Lang.Is.Spanish">
41
		<contains string="${env.LANG}" substring="es"/>
42
	</condition>
43
	<condition property="directorio.base">
44
		<available file="${base_dir}/install.xml" type="file" />
45
	</condition>
46
	
47
	<target name="E_Spanish" if="Lang.Is.Spanish">
48
		<property name="ERROR_BASEDIR" value="En el directorio ${base_dir} no se encuentra el fichero install.xml" />
49
	</target>
50
	
51
	<target name="E_notSpanish" unless="Lang.Is.Spanish">
52
		<property name="ERROR_BASEDIR" value="Cannot find install.xml in ${base_dir} folder " />
53
	</target>
54
	
55
	<target name="check" depends="E_Spanish,E_notSpanish">
56
		<fail message="${ERROR_BASEDIR}" unless="directorio.base"/>
57
	</target>
58
	
59
	
60
	
61
	<target name="init" depends="check,CopyFiles,CreateJar,Installation,InstallMac,CleanDir" >
62
		
63
	</target>
64
	<target name="CopyFiles" description="Copia de ficheros de librerias y de las extensiones necesarias">
65
		<delete dir="${base_dir}/bin"/>
66
		<copy file="${base_dir}/resources/gpl.txt" todir="./bin"/>
67
		<mkdir dir="${base_dir}/bin/lib"/>
68
		<!-- 		copiamos los jar y zip que tenemos en _fwAndami/lib		 -->
69
		<copy todir="${base_dir}/bin/lib">
70
			<fileset dir="${ANDAMI_DIR}/lib">
71
				<include name="*.jar"/>
72
				<include name="*.zip"/>
73
			</fileset>
74
		</copy>
75
		
76
		<copy todir="${base_dir}/bin" file="${ANDAMI_DIR}/andami.jar"/>
77
		<copy todir="${base_dir}/bin" file="${ANDAMI_DIR}/castor.properties"/>
78
		
79
		<!-- 		PARA WINDOWS -->
80
		
81
		
82
		<delete dir="${base_dir}/tmpResources"/>
83
		<mkdir dir="${base_dir}/tmpResources" />
84
		
85
		<!-- 	Copiamos el lanzador y sus traduciones al tmpResources,sin copiar el ini, manifest y los CVS (ANT excluye carpetas CVS por defecto -->
86
		<copy todir="${base_dir}/tmpResources">
87
			<fileset dir="${GVSIG_INSTALLDIR}/launcher/izpack-launcher-1.3/dist/">
88
				<include name="**/"/>
89
				<exclude name="**/*.ini"/>
90
				<exclude name="**/*.manifest"/>
91
			</fileset>
92
		</copy>
93
		<move file="${base_dir}/tmpResources/launcher-Win32.exe" tofile="./tmpResources/gvSIG.exe"/>
94
		
95
		
96
		
97
		
98
		<for list="${EXTENSIONS}" param="extensions">
99
			<sequential>
100
				<copy todir="${base_dir}/extensiones/@{extensions}">
101
					<fileset dir="${ANDAMI_DIR}/gvSIG/extensiones/@{extensions}"/>
102
				</copy>
103
				<echo>extension ----> @{extensions} </echo>
104
			</sequential>
105
		</for>
106
	</target>
107
	<target name="CreateJar" description="Generacion del instalador Jar">
108
		<izpack input="${base_dir}/install.xml"
109
			output="${base_dir}/${JARNAME}"
110
			installerType="standard"
111
			basedir="${base_dir}"
112
			izPackDir="${izpack_dir}/"/>
113
	</target>
114
	<!-- 		generar el tar.gz para linux -->
115
	<target name="Installation" description="Generacion de la distribucion">
116
		
117
		<mkdir dir="${OUTPUT_DIR}" />
118
		<delete dir="${base_dir}/${INSTALLER_DIR}"/>
119
		<mkdir dir="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall"/>
120
		<copy file="${base_dir}/${JARNAME}" todir="./${INSTALLER_DIR}/tmp_gvSIGInstall"/>
121
		
122
		<!-- 		carpetas CVS no se copiaran, ANT las excluye por defecto -->
123
		<copy todir="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall">
124
			<fileset dir="${GVSIG_INSTALLDIR}/launcher/izpack-launcher-1.3_linux/dist/"/>
125
		</copy>
126
		
127
		<chmod file="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall/launcher-Linux" perm="ugo+rx"/>
128
		<delete file="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall/launcher.ini"/>
129
		<copy file="${DIR_LIN_GVSIG}/resources/launcher.ini.j15" tofile="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall/launcher.ini"/>
130
		<replace file="${base_dir}/${INSTALLER_DIR}/tmp_gvSIGInstall/launcher.ini" token="%JARNAME%" value="${JARNAME}"/>
131
		
132
		<!-- 		comprimimos la carpeta tmp_gvSIGInstall en tmp.tgz  -->
133
		<tar destfile="${base_dir}/${INSTALLER_DIR}/tmp.tgz"  compression="gzip">
134
			<tarfileset dir="${base_dir}/${INSTALLER_DIR}" mode="755" >
135
				<include name="tmp_gvSIGInstall/launcher-Linux"/>
136
			</tarfileset>
137
			<tarfileset dir="${base_dir}/${INSTALLER_DIR}">
138
				<include name="tmp_gvSIGInstall/*"/>
139
				<exclude name="tmp_gvSIGInstall/launcher-Linux"/>
140
			</tarfileset>
141
		</tar>
142
		<echo message="#!/bin/sh${line.separator}" file="./${INSTALLER_DIR}/xx.tmp" />
143
		<echo message="lcount=59${line.separator}" file="./${INSTALLER_DIR}/xx.tmp" append="true" /> <!-- OJO SI SE TOCA EL FICHERO h_gvSIG-install.sh - 59 -> num de lineas del fichero + 2 -->
144
		<concat destfile="${base_dir}/${INSTALLER_DIR}/${LINUXBIN}" binary="true" >
145
			<fileset file="${base_dir}/${INSTALLER_DIR}/xx.tmp"/>
146
			<fileset file="${GVSIG_INSTALLDIR}/launcher/izpack-launcher-1.3_linux/h_gvSIG-install.sh"/>
147
			<fileset file="${base_dir}/${INSTALLER_DIR}/tmp.tgz"/>
148
		</concat>
149
		<chmod file="${base_dir}/${INSTALLER_DIR}/${LINUXBIN}" perm="ugo+rx"/>
150
		<delete file="${base_dir}/${INSTALLER_DIR}/xx.tmp"/>
151
		<move file="${base_dir}/${INSTALLER_DIR}/${LINUXBIN}" todir="${OUTPUT_DIR}" />
152
		<delete dir="${base_dir}/${INSTALLER_DIR}"/>
153
		
154
		
155
		
156
		<!-- 		PARA WINDOWS  -->
157
		<delete dir="${base_dir}/${INSTALLER_DIR}"/>
158
		<mkdir dir="${base_dir}/${INSTALLER_DIR}"/>
159
		<copy todir="${base_dir}/${INSTALLER_DIR}">
160
			<fileset dir="${GVSIG_INSTALLDIR}/launcher/izpack-launcher-1.3/dist"/>
161
		</copy>
162
		<delete file="${base_dir}/${INSTALLER_DIR}/launcher-Win32.ini"/>
163
		<copy todir="${base_dir}/${INSTALLER_DIR}/" file="${DIR_WIN_GVSIG}/resources/launcher-Win32.ini.j15"/>
164
		<move file="${base_dir}/${INSTALLER_DIR}/launcher-Win32.ini.j15" tofile="${base_dir}/${INSTALLER_DIR}/launcher-Win32.ini"/>
165
		<replace file="${base_dir}/${INSTALLER_DIR}/launcher-Win32.ini" token="%JARNAME%" value="${JARNAME}"/>
166
		<move file="${base_dir}/${JARNAME}" todir="./${INSTALLER_DIR}"/>
167
		<delete file="${base_dir}/${WINDOWSZIP}"/>
168
		<exec executable="${LAUNCHER7Z}">
169
			<arg line="a -r ${WINDOWSZIP} ./${INSTALLER_DIR}/*"/>
170
		</exec>
171
		<copy file="${GVSIG_INSTALLDIR}/launcher/7z/dist_config.txt" tofile="./dist_config.txt"/>
172
		<replace file="${base_dir}/dist_config.txt" token="%TITLE%" value="${APPNAME}-${bversion}_${build.number}" />
173
		<concat destfile="${base_dir}/${WINDOWSEXE}" binary="true">
174
			<fileset file="${GVSIG_INSTALLDIR}/launcher/7z/7zS.sfx"/>
175
			<fileset file="${base_dir}/dist_config.txt"/>
176
			<fileset file="${base_dir}/${WINDOWSZIP}"/>
177
		</concat>
178
		<move file="${WINDOWSEXE}" todir="${OUTPUT_DIR}"/>
179
	</target>
180
	
181
	<target name="InstallMac" description="Actualizador para MAC">
182
		<property name="mac_install_path_bin" value="${GVSIG_INSTALLDIR}/instalador-gvSIG-mac/actualizador.app/Contents/Resources/updates/gvSIGbin"/>
183
		<property name="mac_install_path_ext" value="${mac_install_path_bin}/gvSIG/extensiones"/>
184
		
185
		
186
		<copy todir="${mac_install_path_ext}/${MAIN_INSTALL_PLUGIN}">
187
			<fileset dir="extensiones/${MAIN_INSTALL_PLUGIN}/"/>
188
		</copy>
189
		
190
		
191
		<ant antfile="build-updater.xml" dir="${GVSIG_INSTALLDIR}/instalador-gvSIG-mac">
192
			<property name="NOMBRE_BUNDLE" value="${autoinstalador}"/>
193
		</ant>
194
		
195
		<zip destfile="${OUTPUT_DIR}/${MAC_10_ZIP}" basedir="${GVSIG_INSTALLDIR}/instalador-gvSIG-mac" includes="${autoinstalador}.app/**"/>
196
		
197
		<delete dir="${GVSIG_INSTALLDIR}/instalador-gvSIG-mac/${autoinstalador}.app"/>
198
		<delete dir="${GVSIG_INSTALLDIR}/instalador-gvSIG-mac/actualizador.app/Contents/Resources/updates/gvSIGbin" />
199
		
200
	</target>
201
	
202
	<target name="CleanDir" description="Limpiamos los directorios creados">
203
		
204
		<delete file="${base_dir}/${WINDOWSZIP}" />
205
		<delete file="${base_dir}/dist_config.txt" />
206
		<delete dir="${base_dir}/${INSTALLER_DIR}" />
207
		<delete dir="${base_dir}/tmpResources" />
208
		<delete dir="extensiones"/>
209
		<delete dir="bin"/>
210
	</target>
211
	
212
</project>
0 213

  
branches/v10/extensions/extGPE-gvSIG/src/org/gvsig/fmap/drivers/gpe/handlers/FmapErrorHandler.java
1
package org.gvsig.fmap.drivers.gpe.handlers;
2

  
3
import org.gvsig.gpe.GPEErrorHandler;
4

  
5
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
6
 *
7
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
8
 *
9
 * This program is free software; you can redistribute it and/or
10
 * modify it under the terms of the GNU General Public License
11
 * as published by the Free Software Foundation; either version 2
12
 * of the License, or (at your option) any later version.
13
 *
14
 * This program is distributed in the hope that it will be useful,
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 * GNU General Public License for more details.
18
 *
19
 * You should have received a copy of the GNU General Public License
20
 * along with this program; if not, write to the Free Software
21
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
22
 *
23
 * For more information, contact:
24
 *
25
 *  Generalitat Valenciana
26
 *   Conselleria d'Infraestructures i Transport
27
 *   Av. Blasco Ib??ez, 50
28
 *   46010 VALENCIA
29
 *   SPAIN
30
 *
31
 *      +34 963862235
32
 *   gvsig@gva.es
33
 *      www.gvsig.gva.es
34
 *
35
 *    or
36
 *
37
 *   IVER T.I. S.A
38
 *   Salamanca 50
39
 *   46005 Valencia
40
 *   Spain
41
 *
42
 *   +34 963163400
43
 *   dac@iver.es
44
 */
45
/* CVS MESSAGES:
46
 *
47
 * $Id$
48
 * $Log$
49
 *
50
 */
51
/**
52
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
53
 */
54
public class FmapErrorHandler extends GPEErrorHandler{
55

  
56
}
0 57

  
branches/v10/extensions/extGPE-gvSIG/src/org/gvsig/fmap/drivers/gpe/handlers/FmapContentHandler.java
1
package org.gvsig.fmap.drivers.gpe.handlers;
2

  
3
import org.gvsig.fmap.drivers.gpe.reader.GPEVectorialDriver;
4
import org.gvsig.gpe.GPEErrorHandler;
5

  
6
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
7
 *
8
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
9
 *
10
 * This program is free software; you can redistribute it and/or
11
 * modify it under the terms of the GNU General Public License
12
 * as published by the Free Software Foundation; either version 2
13
 * of the License, or (at your option) any later version.
14
 *
15
 * This program is distributed in the hope that it will be useful,
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 * GNU General Public License for more details.
19
 *
20
 * You should have received a copy of the GNU General Public License
21
 * along with this program; if not, write to the Free Software
22
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
23
 *
24
 * For more information, contact:
25
 *
26
 *  Generalitat Valenciana
27
 *   Conselleria d'Infraestructures i Transport
28
 *   Av. Blasco Ib??ez, 50
29
 *   46010 VALENCIA
30
 *   SPAIN
31
 *
32
 *      +34 963862235
33
 *   gvsig@gva.es
34
 *      www.gvsig.gva.es
35
 *
36
 *    or
37
 *
38
 *   IVER T.I. S.A
39
 *   Salamanca 50
40
 *   46005 Valencia
41
 *   Spain
42
 *
43
 *   +34 963163400
44
 *   dac@iver.es
45
 */
46
/* CVS MESSAGES:
47
 *
48
 * $Id$
49
 * $Log$
50
 *
51
 */
52
/**
53
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
54
 */
55
public class FmapContentHandler extends DefaultFmapContentHandler {
56
	
57
	public FmapContentHandler(GPEErrorHandler errorHandler, GPEVectorialDriver driver) {
58
		super(errorHandler, driver);		
59
	}
60
}
0 61

  
branches/v10/extensions/extGPE-gvSIG/src/org/gvsig/fmap/drivers/gpe/handlers/FmapContentHandlerCreationException.java
1
package org.gvsig.fmap.drivers.gpe.handlers;
2

  
3
import java.util.HashMap;
4
import java.util.Map;
5

  
6
import org.gvsig.exceptions.BaseException;
7

  
8
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
9
 *
10
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
11
 *
12
 * This program is free software; you can redistribute it and/or
13
 * modify it under the terms of the GNU General Public License
14
 * as published by the Free Software Foundation; either version 2
15
 * of the License, or (at your option) any later version.
16
 *
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU General Public License for more details.
21
 *
22
 * You should have received a copy of the GNU General Public License
23
 * along with this program; if not, write to the Free Software
24
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
25
 *
26
 * For more information, contact:
27
 *
28
 *  Generalitat Valenciana
29
 *   Conselleria d'Infraestructures i Transport
30
 *   Av. Blasco Ib??ez, 50
31
 *   46010 VALENCIA
32
 *   SPAIN
33
 *
34
 *      +34 963862235
35
 *   gvsig@gva.es
36
 *      www.gvsig.gva.es
37
 *
38
 *    or
39
 *
40
 *   IVER T.I. S.A
41
 *   Salamanca 50
42
 *   46005 Valencia
43
 *   Spain
44
 *
45
 *   +34 963163400
46
 *   dac@iver.es
47
 */
48
/* CVS MESSAGES:
49
 *
50
 * $Id$
51
 * $Log$
52
 *
53
 */
54
/**
55
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
56
 */
57
public class FmapContentHandlerCreationException extends BaseException{
58
	private static final long serialVersionUID = -6021604626521668293L;
59
	
60
	public FmapContentHandlerCreationException(){
61
		initialize();
62
	}
63
	
64
	public FmapContentHandlerCreationException(Throwable e){
65
		initialize();
66
		initCause(e);
67
	}
68
	
69
	protected Map values() {
70
		return new HashMap();
71
	}
72
	
73
	/**
74
	 * Initialize the properties
75
	 */
76
	private void initialize() {
77
		messageKey = "gpe_lgvsig_contentHandler_error";
78
		formatString = "Error creating the contentHandler for" +
79
				"Fmap";
80
		code = serialVersionUID;
81
	}
82

  
83
}
0 84

  
branches/v10/extensions/extGPE-gvSIG/src/org/gvsig/fmap/drivers/gpe/handlers/DefaultFmapContentHandler.java
1
package org.gvsig.fmap.drivers.gpe.handlers;
2

  
3
import org.gvsig.fmap.drivers.gpe.exceptions.CurveConversionWarning;
4
import org.gvsig.fmap.drivers.gpe.exceptions.NotMultipleLayerWarning;
5
import org.gvsig.fmap.drivers.gpe.model.GPEBBox;
6
import org.gvsig.fmap.drivers.gpe.model.GPECurve;
7
import org.gvsig.fmap.drivers.gpe.model.GPEElement;
8
import org.gvsig.fmap.drivers.gpe.model.GPEFeature;
9
import org.gvsig.fmap.drivers.gpe.model.GPEGeometry;
10
import org.gvsig.fmap.drivers.gpe.model.GPEMultiGeometry;
11
import org.gvsig.fmap.drivers.gpe.reader.AddFeatureToDriver;
12
import org.gvsig.fmap.drivers.gpe.reader.GPEVectorialDriver;
13
import org.gvsig.fmap.drivers.gpe.reader.IGPEDriver;
14
import org.gvsig.fmap.drivers.gpe.utils.GPETypesConversion;
15
import org.gvsig.gpe.GPEContentHandler;
16
import org.gvsig.gpe.GPEErrorHandler;
17

  
18
import com.hardcode.gdbms.engine.values.ValueFactory;
19
import com.iver.cit.gvsig.fmap.core.GeneralPathX;
20
import com.iver.cit.gvsig.fmap.core.ShapeFactory;
21
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
22
 *
23
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
24
 *
25
 * This program is free software; you can redistribute it and/or
26
 * modify it under the terms of the GNU General Public License
27
 * as published by the Free Software Foundation; either version 2
28
 * of the License, or (at your option) any later version.
29
 *
30
 * This program is distributed in the hope that it will be useful,
31
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
32
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33
 * GNU General Public License for more details.
34
 *
35
 * You should have received a copy of the GNU General Public License
36
 * along with this program; if not, write to the Free Software
37
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
38
 *
39
 * For more information, contact:
40
 *
41
 *  Generalitat Valenciana
42
 *   Conselleria d'Infraestructures i Transport
43
 *   Av. Blasco Ib??ez, 50
44
 *   46010 VALENCIA
45
 *   SPAIN
46
 *
47
 *      +34 963862235
48
 *   gvsig@gva.es
49
 *      www.gvsig.gva.es
50
 *
51
 *    or
52
 *
53
 *   IVER T.I. S.A
54
 *   Salamanca 50
55
 *   46005 Valencia
56
 *   Spain
57
 *
58
 *   +34 963163400
59
 *   dac@iver.es
60
 */
61
/* CVS MESSAGES:
62
 *
63
 * $Id$
64
 * $Log$
65
 *
66
 */
67
/**
68
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
69
 */
70
public abstract class DefaultFmapContentHandler extends GPEContentHandler {
71
	protected AddFeatureToDriver addFeature = null;
72
	private int features = 0;
73
	private boolean hasLayer = false;
74
	private IGPEDriver driver = null;
75

  
76
	public DefaultFmapContentHandler(GPEErrorHandler errorHandler,
77
			IGPEDriver driver) {
78
		super();		
79
		setErrorHandler(errorHandler);
80
		this.driver = driver;
81
	}
82

  
83
	/*
84
	 * (non-Javadoc)
85
	 * @see org.gvsig.gpe.GPEContentHandler#startLayer(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Object, java.lang.Object, java.lang.String)
86
	 */
87
	public Object startLayer(String id, String name, String description, String srs, Object parentLayer, Object bBox, String xsElementName) {
88
		//Only one layer is supported
89
		if (hasLayer == false){
90
			hasLayer = true;
91
			addFeature = new AddFeatureToDriver();
92
			addFeature.setSchema(getSchemaDocument());
93
		}else{
94
			getErrorHandler().addWarning(new NotMultipleLayerWarning());
95
			return null;
96
		}			
97
		return driver;
98
	}
99

  
100
	/*
101
	 * (non-Javadoc)
102
	 * @see org.gvsig.gpe.IGPEContentHandler#endLayer(java.lang.Object)
103
	 */
104
	public void endLayer(Object layer) {
105
		IGPEDriver gpeDriver = (IGPEDriver)layer;
106
	}
107

  
108
	/*
109
	 * (non-Javadoc)
110
	 * @see org.gvsig.gpe.GPEContentHandler#startPoint(java.lang.String, double, double, double, java.lang.String)
111
	 */
112
	public Object startPoint(String id, double x, double y, double z, String srs) {
113
		return new GPEGeometry(id, ShapeFactory.createPoint2D(x, y), srs);
114
	}
115

  
116
	/*
117
	 * (non-Javadoc)
118
	 * @see org.gvsig.gpe.IGPEContentHandler#startLineString(java.lang.String, double[], double[], double[], java.lang.String)
119
	 */
120
	public Object startLineString(String id, double[] x, double[] y, double[] z, String srs) {
121
		GeneralPathX gp = new GeneralPathX();
122
		for (int i=0 ; i<x.length ; i++){
123
			gp.append(ShapeFactory.createPoint2D(x[i], y[i]), true);
124
		}
125
		return new GPEGeometry(id, ShapeFactory.createPolyline2D(gp), srs);
126
	}
127

  
128
	/*
129
	 * (non-Javadoc)
130
	 * @see org.gvsig.gpe.IGPEContentHandler#startPolygon(java.lang.String, double[], double[], double[], java.lang.String)
131
	 */
132
	public Object startPolygon(String id, double[] x, double[] y, double[] z, String srs) {
133
		GeneralPathX gp = new GeneralPathX();
134
		for (int i=0 ; i<x.length ; i++){
135
			gp.append(ShapeFactory.createPoint2D(x[i], y[i]), true);
136
		}
137
		return new GPEGeometry(id, ShapeFactory.createPolygon2D(gp), srs);
138
	}
139

  
140
	/*
141
	 * (non-Javadoc)
142
	 * @see org.gvsig.gpe.GPEContentHandler#startInnerPolygon(java.lang.String, double[], double[], double[], java.lang.String)
143
	 */
144
	public Object startInnerPolygon(String id, double[] x, double[] y,
145
			double[] z, String srs) {
146
		GeneralPathX gp = new GeneralPathX();
147
		gp.moveTo(x[0], y[0]);
148
		for (int i=1 ; i<x.length ; i++){
149
			gp.append(ShapeFactory.createPoint2D(x[i], y[i]), true);			
150
		}
151
		return new GPEGeometry(id, ShapeFactory.createPolygon2D(gp), srs);
152
	}
153

  
154
	/*
155
	 * (non-Javadoc)
156
	 * @see org.gvsig.gpe.IGPEContentHandler#addGeometryToFeature(java.lang.Object, java.lang.Object)
157
	 */
158
	public void addGeometryToFeature(Object geometry, Object feature) {
159
		((GPEFeature)feature).setGeometry((GPEGeometry)geometry);
160
	}	
161

  
162
	/*
163
	 * (non-Javadoc)
164
	 * @see org.gvsig.gpe.IGPEContentHandler#addBboxToLayer(java.lang.Object, java.lang.Object)
165
	 */
166
	public void addBboxToLayer(Object bbox, Object layer) {
167
//		if (layer != null){
168
//		GPEBBox gpeBBox = (GPEBBox)bbox;
169
//		if (gpeBBox.getSrs() != null){
170
//		IProjection projection = null;
171
//		try{
172
//		CRSFactory.getCRS(gpeBBox.getSrs());
173
//		}catch(Exception e){
174
//		//If the CRS factory has an error.
175
//		}
176
//		if ((projection != null) && (!(projection.equals(((FLayer)layer).getProjection())))){
177
//		//TODO reproyectar la bbox y asignarsela a la capa				
178
//		}
179
//		}
180
//		((IGPEDriver)layer).setExtent(gpeBBox.getBbox2D());
181
//		}
182
	}
183

  
184
	/*
185
	 * (non-Javadoc)
186
	 * @see org.gvsig.gpe.IGPEContentHandler#addElementToFeature(java.lang.Object, java.lang.Object)
187
	 */
188
	public void addElementToFeature(Object element, Object feature) {
189
		((GPEFeature)feature).addElement((GPEElement)element);
190
	}
191

  
192
	/*
193
	 * (non-Javadoc)
194
	 * @see org.gvsig.gpe.IGPEContentHandler#addFeatureToLayer(java.lang.Object, java.lang.Object)
195
	 */
196
	public void addFeatureToLayer(Object feature, Object layer) {
197
		//If it is null is a multilayer: not supported yet
198
		if (layer != null){
199
			addFeature.addFeatureToLayer((GPEVectorialDriver)layer,
200
					(GPEFeature)feature);
201
		}
202
	}
203

  
204
	/*
205
	 * (non-Javadoc)
206
	 * @see org.gvsig.gpe.IGPEContentHandler#addInnerPolygonToPolygon(java.lang.Object, java.lang.Object)
207
	 */
208
	public void addInnerPolygonToPolygon(Object innerPolygon, Object Polygon) {
209
		((GPEGeometry)Polygon).addGeometry((GPEGeometry)innerPolygon);
210
	}
211

  
212
	/*
213
	 * (non-Javadoc)
214
	 * @see org.gvsig.gpe.IGPEContentHandler#addNameToFeature(java.lang.String, java.lang.Object)
215
	 */
216
	public void addNameToFeature(String name, Object feature) {
217

  
218
	}
219

  
220
	/*
221
	 * (non-Javadoc)
222
	 * @see org.gvsig.gpe.IGPEContentHandler#addParentElementToElement(java.lang.Object, java.lang.Object)
223
	 */
224
	public void addParentElementToElement(Object parent, Object element) {
225

  
226
	}
227

  
228
	/*
229
	 * (non-Javadoc)
230
	 * @see org.gvsig.gpe.IGPEContentHandler#addSrsToLayer(java.lang.String, java.lang.Object)
231
	 */
232
	public void addSrsToLayer(String srs, Object Layer) {
233
//		this.srs = srs; 
234
	}
235

  
236

  
237
	/*
238
	 * (non-Javadoc)
239
	 * @see org.gvsig.gpe.IGPEContentHandler#startBbox(java.lang.String, double[], double[], double[], java.lang.String)
240
	 */
241
	public Object startBbox(String id, double[] x, double[] y, double[] z, String srs) {
242
		return new GPEBBox(id,x,y,z,srs);		
243
	}
244

  
245
	/*
246
	 * (non-Javadoc)
247
	 * @see org.gvsig.gpe.IGPEContentHandler#startElement(java.lang.String, java.lang.Object, java.lang.String, java.lang.Object)
248
	 */
249
	public Object startElement(String name, Object value, String xsElementName, Object parentElement) {
250
		return new GPEElement(name, GPETypesConversion.fromJavaTogvSIG(value), (GPEElement)parentElement);
251
	}
252

  
253
	/*
254
	 * (non-Javadoc)
255
	 * @see org.gvsig.gpe.IGPEContentHandler#startFeature(java.lang.String, java.lang.String, java.lang.String, java.lang.Object)
256
	 */
257
	public Object startFeature(String id, String name, String xsElementName, Object layer) {
258
		return new GPEFeature(ValueFactory.createValue(id),
259
				name, xsElementName);
260
	}
261

  
262
	/*
263
	 * (non-Javadoc)
264
	 * @see org.gvsig.gpe.IGPEContentHandler#startLinearRing(java.lang.String, double[], double[], double[], java.lang.String)
265
	 */
266
	public Object startLinearRing(String id, double[] x, double[] y, double[] z, String srs) {
267
		GeneralPathX gp = new GeneralPathX();
268
		for (int i=0 ; i<x.length ; i++){
269
			gp.append(ShapeFactory.createPoint2D(x[i], y[i]), true);
270
		}
271
		return new GPEGeometry(id, ShapeFactory.createPolygon2D(gp), id);
272
	}
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff