add dyncolor and owner in each feature
| | |
| | | <test.maxHeapSize>512M</test.maxHeapSize> |
| | | <src.output>${basedir}/target</src.output> |
| | | <java5>1.6</java5> |
| | | <xdgnio.version>2.0.1</xdgnio.version> |
| | | <xdgnio.version>2.1.0</xdgnio.version> |
| | | <gt.version>10.1.x</gt.version> |
| | | <failIfNoTests>false</failIfNoTests> |
| | | <stress.skip.pattern></stress.skip.pattern> |
| | |
| | | <groupId>com.ximple.eofms</groupId> |
| | | <artifactId>ximple-dgnjobs</artifactId> |
| | | <packaging>pom</packaging> |
| | | <version>2.0.1</version> |
| | | <version>2.1.0</version> |
| | | <name>ximple-dgnjobs</name> |
| | | <url>http://www.ximple.com.tw</url> |
| | | |
| | |
| | | <parent> |
| | | <groupId>com.ximple.eofms.maven</groupId> |
| | | <artifactId>ximple-maven</artifactId> |
| | | <version>2.0.1</version> |
| | | <version>2.1.0</version> |
| | | </parent> |
| | | |
| | | |
| | |
| | | <!-- =========================================================== --> |
| | | <groupId>com.ximple.eofms.maven</groupId> |
| | | <artifactId>ximple-jar-collector</artifactId> |
| | | <version>2.1.0</version> |
| | | <packaging>maven-plugin</packaging> |
| | | <name>JAR files collector</name> |
| | | |
| | |
| | | <parent> |
| | | <groupId>com.ximple.eofms.maven</groupId> |
| | | <artifactId>ximple-build</artifactId> |
| | | <version>2.0.1</version> |
| | | <version>2.1.0</version> |
| | | </parent> |
| | | |
| | | |
| | |
| | | <parent> |
| | | <groupId>com.ximple.eofms</groupId> |
| | | <artifactId>ximple-dgnjobs</artifactId> |
| | | <version>2.0.1</version> |
| | | <version>2.1.0</version> |
| | | </parent> |
| | | |
| | | |
| | |
| | | <!-- =========================================================== --> |
| | | <groupId>com.ximple.eofms.maven</groupId> |
| | | <artifactId>ximple-build</artifactId> |
| | | <version>2.0.1</version> |
| | | <version>2.1.0</version> |
| | | <packaging>pom</packaging> |
| | | <name>Build tools for Ximple DgnJobs</name> |
| | | |
| | |
| | | <parent> |
| | | <groupId>com.ximple.eofms</groupId> |
| | | <artifactId>ximple-dgnjobs</artifactId> |
| | | <version>2.0.1</version> |
| | | <version>2.1.0</version> |
| | | </parent> |
| | | |
| | | <!-- =========================================================== --> |
| | |
| | | <!-- =========================================================== --> |
| | | <groupId>com.ximple.eofms</groupId> |
| | | <artifactId>ximple-dgnio</artifactId> |
| | | <version>2.0.1</version> |
| | | <version>2.1.0</version> |
| | | <packaging>jar</packaging> |
| | | <name>ximple-dgnio</name> |
| | | <url>http://www.ximple.com.tw</url> |
| | |
| | | <parent> |
| | | <groupId>com.ximple.eofms</groupId> |
| | | <artifactId>ximple-dgnjobs</artifactId> |
| | | <version>2.0.1</version> |
| | | <version>2.1.0</version> |
| | | </parent> |
| | | |
| | | <groupId>com.ximple.eofms</groupId> |
| | | <artifactId>ximple-elmparser</artifactId> |
| | | <version>2.0.1</version> |
| | | <version>2.1.0</version> |
| | | <packaging>jar</packaging> |
| | | <name>ximple-elmparser</name> |
| | | <url>http://maven.apache.org</url> |
| | |
| | | <parent> |
| | | <groupId>com.ximple.eofms</groupId> |
| | | <artifactId>ximple-dgnjobs</artifactId> |
| | | <version>2.0.1</version> |
| | | <version>2.1.0</version> |
| | | </parent> |
| | | |
| | | |
| | | <groupId>com.ximple.eofms</groupId> |
| | | <artifactId>ximple-jobcarrier</artifactId> |
| | | <version>2.0.1</version> |
| | | <version>2.1.0</version> |
| | | <packaging>jar</packaging> |
| | | <name>ximple-jobcarrier</name> |
| | | <url>http://maven.apache.org</url> |
| | | |
| | | <properties> |
| | | <xdgnio.version>2.0.1</xdgnio.version> |
| | | <xdgnio.version>2.1.0</xdgnio.version> |
| | | </properties> |
| | | |
| | | <scm> |
| | |
| | | </entry> |
| | | <entry> |
| | | <key>ORAHOST</key> |
| | | <value>10.10.1.3</value> |
| | | <value>10.10.1.7</value> |
| | | </entry> |
| | | <entry> |
| | | <key>ORAINST</key> |
| | |
| | | </entry> |
| | | <entry> |
| | | <key>GEOSERVER_URL</key> |
| | | <value>http://192.168.11.99:8180/geoserver</value> |
| | | <value>http://192.168.11.99:8080/geoserver</value> |
| | | </entry> |
| | | <entry> |
| | | <key>GEOSERVER_USER</key> |
| | |
| | | </entry> |
| | | <entry> |
| | | <key>IGNORE_DBETL</key> |
| | | <value>true</value> |
| | | <value>false</value> |
| | | </entry> |
| | | </job-data-map> |
| | | </job> |
| | |
| | | <group>DEFAULT</group> |
| | | <job-name>ConvertDMMS2PostGisWithGeoserver</job-name> |
| | | <job-group>DEFAULT</job-group> |
| | | <start-time>2011-03-01T18:00:00</start-time> |
| | | <start-time>2013-03-01T18:00:00</start-time> |
| | | <!-- repeat indefinitely every 10 seconds --> |
| | | <repeat-count>0</repeat-count> |
| | | <repeat-interval>500</repeat-interval> |
| | |
| | | </entry> |
| | | <entry> |
| | | <key>PGDATBASE</key> |
| | | <value>pgDMMS</value> |
| | | <value>pgDMMS2</value> |
| | | </entry> |
| | | <entry> |
| | | <key>PGPORT</key> |
| | |
| | | </entry> |
| | | <entry> |
| | | <key>IGNORE_DBETL</key> |
| | | <value>true</value> |
| | | <value>false</value> |
| | | </entry> |
| | | </job-data-map> |
| | | </job> |
| | |
| | | <parent> |
| | | <groupId>com.ximple.eofms</groupId> |
| | | <artifactId>ximple-dgnjobs</artifactId> |
| | | <version>2.0.1</version> |
| | | <version>2.1.0</version> |
| | | </parent> |
| | | |
| | | <groupId>com.ximple.eofms</groupId> |
| | | <artifactId>ximple-spatialjob</artifactId> |
| | | <version>2.0.1</version> |
| | | <version>2.1.0</version> |
| | | <packaging>jar</packaging> |
| | | <name>ximple-spatialjob</name> |
| | | <url>http://www.ximple.com.tw</url> |
| | | |
| | | <properties> |
| | | <xdgnio.version>2.0.1</xdgnio.version> |
| | | <xdgnio.version>2.1.0</xdgnio.version> |
| | | </properties> |
| | | |
| | | <description> |
| | |
| | | fLinkage.getOccID(), |
| | | (short) lineStringElement.getLevelIndex(), |
| | | colorTable.getColorCode(lineStringElement.getColorIndex()), |
| | | colorTable.getColorCode(lineStringElement.getColorIndex()), |
| | | (short) lineStringElement.getWeight(), |
| | | (short) lineStringElement.getLineStyle() |
| | | (short) lineStringElement.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } |
| | | return feature; |
| | |
| | | fLinkage.getOccID(), |
| | | (short) lineStringElement.getLevelIndex(), |
| | | colorTable.getColorCode(lineStringElement.getColorIndex()), |
| | | colorTable.getColorCode(lineStringElement.getColorIndex()), |
| | | (short) lineStringElement.getWeight(), |
| | | (short) lineStringElement.getLineStyle() |
| | | (short) lineStringElement.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } else if (element instanceof ComplexChainElement) { |
| | | ComplexChainElement complexChain = (ComplexChainElement) element; |
| | |
| | | fLinkage.getOccID(), |
| | | (short) complexChain.getLevelIndex(), |
| | | colorTable.getColorCode(complexChain.getColorIndex()), |
| | | colorTable.getColorCode(complexChain.getColorIndex()), |
| | | (short) complexChain.getWeight(), |
| | | (short) complexChain.getLineStyle() |
| | | (short) complexChain.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } else if (element instanceof LineElement) { |
| | | LineElement lineElement = (LineElement) element; |
| | |
| | | fLinkage.getOccID(), |
| | | (short) lineElement.getLevelIndex(), |
| | | colorTable.getColorCode(lineElement.getColorIndex()), |
| | | colorTable.getColorCode(lineElement.getColorIndex()), |
| | | (short) lineElement.getWeight(), |
| | | (short) lineElement.getLineStyle() |
| | | (short) lineElement.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | return feature; |
| | | } else if (element instanceof ArcElement) { |
| | |
| | | fLinkage.getOccID(), |
| | | (short) arcElement.getLevelIndex(), |
| | | colorTable.getColorCode(arcElement.getColorIndex()), |
| | | colorTable.getColorCode(arcElement.getColorIndex()), |
| | | (short) arcElement.getWeight(), |
| | | (short) arcElement.getLineStyle() |
| | | (short) arcElement.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } |
| | | |
| | |
| | | fLinkage.getOccID(), |
| | | (short) ellipseElement.getLevelIndex(), |
| | | colorTable.getColorCode(ellipseElement.getColorIndex()), |
| | | colorTable.getColorCode(ellipseElement.getColorIndex()), |
| | | (short) ellipseElement.getWeight(), |
| | | (short) ellipseElement.getLineStyle() |
| | | (short) ellipseElement.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } |
| | | return feature; |
| | |
| | | fLinkage.getOccID(), |
| | | (short) lineStringElement.getLevelIndex(), |
| | | colorTable.getColorCode(lineStringElement.getColorIndex()), |
| | | colorTable.getColorCode(lineStringElement.getColorIndex()), |
| | | (short) lineStringElement.getWeight(), |
| | | (short) lineStringElement.getLineStyle() |
| | | (short) lineStringElement.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } else if (element instanceof ComplexChainElement) { |
| | | ComplexChainElement complexChain = (ComplexChainElement) element; |
| | |
| | | fLinkage.getOccID(), |
| | | (short) complexChain.getLevelIndex(), |
| | | colorTable.getColorCode(complexChain.getColorIndex()), |
| | | colorTable.getColorCode(complexChain.getColorIndex()), |
| | | (short) complexChain.getWeight(), |
| | | (short) complexChain.getLineStyle() |
| | | (short) complexChain.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } else if (element instanceof LineElement) { |
| | | LineElement lineElement = (LineElement) element; |
| | |
| | | fLinkage.getOccID(), |
| | | (short) lineElement.getLevelIndex(), |
| | | colorTable.getColorCode(lineElement.getColorIndex()), |
| | | colorTable.getColorCode(lineElement.getColorIndex()), |
| | | (short) lineElement.getWeight(), |
| | | (short) lineElement.getLineStyle() |
| | | (short) lineElement.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | return feature; |
| | | } else if (element instanceof ArcElement) { |
| | |
| | | fLinkage.getOccID(), |
| | | (short) arcElement.getLevelIndex(), |
| | | colorTable.getColorCode(arcElement.getColorIndex()), |
| | | colorTable.getColorCode(arcElement.getColorIndex()), |
| | | (short) arcElement.getWeight(), |
| | | (short) arcElement.getLineStyle() |
| | | (short) arcElement.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } |
| | | |
| | |
| | | fLinkage.getOccID(), |
| | | (short) lineStringElement.getLevelIndex(), |
| | | colorTable.getColorCode(lineStringElement.getColorIndex()), |
| | | colorTable.getColorCode(lineStringElement.getColorIndex()), |
| | | (short) lineStringElement.getWeight(), |
| | | (short) lineStringElement.getLineStyle() |
| | | (short) lineStringElement.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } else if (element instanceof TextElement) { |
| | | TextElement txtElement = (TextElement) element; |
| | |
| | | fLinkage.getOccID(), |
| | | (short) txtElement.getLevelIndex(), |
| | | colorTable.getColorCode(txtElement.getColorIndex()), |
| | | colorTable.getColorCode(txtElement.getColorIndex()), |
| | | (short) txtElement.getWeight(), |
| | | (short) txtElement.getLineStyle() |
| | | (short) txtElement.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } else if (element instanceof ComplexChainElement) { |
| | | ComplexChainElement complexChain = (ComplexChainElement) element; |
| | |
| | | fLinkage.getOccID(), |
| | | (short) complexChain.getLevelIndex(), |
| | | colorTable.getColorCode(complexChain.getColorIndex()), |
| | | colorTable.getColorCode(complexChain.getColorIndex()), |
| | | (short) complexChain.getWeight(), |
| | | (short) complexChain.getLineStyle() |
| | | (short) complexChain.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } else if (element instanceof LineElement) { |
| | | LineElement lineElement = (LineElement) element; |
| | |
| | | fLinkage.getOccID(), |
| | | (short) lineElement.getLevelIndex(), |
| | | colorTable.getColorCode(lineElement.getColorIndex()), |
| | | colorTable.getColorCode(lineElement.getColorIndex()), |
| | | (short) lineElement.getWeight(), |
| | | (short) lineElement.getLineStyle() |
| | | (short) lineElement.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } |
| | | |
| | |
| | | } |
| | | if (gobj != null) |
| | | feature = SimpleFeatureBuilder.build(featureType, new Object[]{ |
| | | gobj, |
| | | distId, |
| | | fLinkage.getFsc(), |
| | | (long) fLinkage.getUfid(), |
| | | (short) fLinkage.getComponentID(), |
| | | fLinkage.getOccID(), |
| | | (short) txtElement.getLevelIndex(), |
| | | colorTable.getColorCode(txtElement.getColorIndex()), |
| | | (short) txtElement.getWeight(), |
| | | (short) txtElement.getLineStyle(), |
| | | (short) txtElement.getJustification(), |
| | | (float) txtElement.getTextHeight(), |
| | | (float) txtElement.getTextWidth(), |
| | | (float) angle, |
| | | sb.toString() |
| | | gobj, |
| | | distId, |
| | | fLinkage.getFsc(), |
| | | (long) fLinkage.getUfid(), |
| | | (short) fLinkage.getComponentID(), |
| | | fLinkage.getOccID(), |
| | | (short) txtElement.getLevelIndex(), |
| | | colorTable.getColorCode(txtElement.getColorIndex()), |
| | | colorTable.getColorCode(txtElement.getColorIndex()), |
| | | (short) txtElement.getWeight(), |
| | | (short) txtElement.getLineStyle(), |
| | | (short) txtElement.getJustification(), |
| | | (float) txtElement.getTextHeight(), |
| | | (float) txtElement.getTextWidth(), |
| | | (float) angle, |
| | | sb.toString(), |
| | | -1 |
| | | }, null); |
| | | } else if (element instanceof TextNodeElement) { |
| | | TextNodeElement nodeElement = (TextNodeElement) element; |
| | | |
| | | |
| | | double angle = nodeElement.getRotationAngle(); |
| | | angle = BigDecimal.valueOf(angle).setScale(3, RoundingMode.HALF_UP).doubleValue(); |
| | |
| | | |
| | | if (gobj != null) |
| | | feature = SimpleFeatureBuilder.build(featureType, new Object[]{ |
| | | gobj, |
| | | distId, |
| | | fLinkage.getFsc(), |
| | | (long) fLinkage.getUfid(), |
| | | (short) fLinkage.getComponentID(), |
| | | fLinkage.getOccID(), |
| | | (short) txtChildElement.getLevelIndex(), |
| | | colorTable.getColorCode(nodeElement.getColorIndex()), |
| | | (short) txtChildElement.getWeight(), |
| | | (short) txtChildElement.getLineStyle(), |
| | | (short) txtChildElement.getJustification(), |
| | | (float) txtChildElement.getTextHeight(), |
| | | (float) txtChildElement.getTextWidth(), |
| | | (float) angle, |
| | | sb.toString() |
| | | gobj, |
| | | distId, |
| | | fLinkage.getFsc(), |
| | | (long) fLinkage.getUfid(), |
| | | (short) fLinkage.getComponentID(), |
| | | fLinkage.getOccID(), |
| | | (short) txtChildElement.getLevelIndex(), |
| | | colorTable.getColorCode(nodeElement.getColorIndex()), |
| | | colorTable.getColorCode(nodeElement.getColorIndex()), |
| | | (short) txtChildElement.getWeight(), |
| | | (short) txtChildElement.getLineStyle(), |
| | | (short) txtChildElement.getJustification(), |
| | | (float) txtChildElement.getTextHeight(), |
| | | (float) txtChildElement.getTextWidth(), |
| | | (float) angle, |
| | | sb.toString(), |
| | | -1 |
| | | }, null); |
| | | } |
| | | } else { |
| | |
| | | fLinkage.getOccID(), |
| | | (short) shapeElement.getLevelIndex(), |
| | | colorTable.getColorCode(shapeElement.getColorIndex()), |
| | | colorTable.getColorCode(shapeElement.getColorIndex()), |
| | | (short) shapeElement.getWeight(), |
| | | (short) shapeElement.getLineStyle() |
| | | (short) shapeElement.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } else if (element instanceof ComplexShapeElement) { |
| | | ComplexShapeElement complexShape = (ComplexShapeElement) element; |
| | |
| | | fLinkage.getOccID(), |
| | | (short) complexShape.getLevelIndex(), |
| | | colorTable.getColorCode(complexShape.getColorIndex()), |
| | | colorTable.getColorCode(complexShape.getColorIndex()), |
| | | (short) complexShape.getWeight(), |
| | | (short) complexShape.getLineStyle() |
| | | (short) complexShape.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } |
| | | return feature; |
| | |
| | | fLinkage.getOccID(), |
| | | (short) txtElement.getLevelIndex(), |
| | | colorTable.getColorCode(txtElement.getColorIndex()), |
| | | colorTable.getColorCode(txtElement.getColorIndex()), |
| | | (short) txtElement.getWeight(), |
| | | (short) txtElement.getLineStyle(), |
| | | (short) txtElement.getJustification(), |
| | |
| | | (float) txtElement.getTextWidth(), |
| | | (float) angle, |
| | | sb.toString(), |
| | | -1, |
| | | geomOrigin |
| | | }, null); |
| | | } else { |
| | |
| | | fLinkage.getOccID(), |
| | | (short) txtElement.getLevelIndex(), |
| | | colorTable.getColorCode(txtElement.getColorIndex()), |
| | | colorTable.getColorCode(txtElement.getColorIndex()), |
| | | (short) txtElement.getWeight(), |
| | | (short) txtElement.getLineStyle(), |
| | | (short) txtElement.getJustification(), |
| | | (float) txtElement.getTextHeight(), |
| | | (float) txtElement.getTextWidth(), |
| | | (float) angle, |
| | | content |
| | | content, |
| | | -1 |
| | | }, null); |
| | | } else if (element instanceof TextNodeElement) { |
| | | TextNodeElement nodeElement = (TextNodeElement) element; |
| | |
| | | fLinkage.getOccID(), |
| | | (short) nodeElement.getLevelIndex(), |
| | | colorTable.getColorCode(nodeElement.getColorIndex()), |
| | | colorTable.getColorCode(nodeElement.getColorIndex()), |
| | | (short) nodeElement.getWeight(), |
| | | (short) nodeElement.getLineStyle(), |
| | | (short) nodeElement.getJustification(), |
| | | (float) nodeElement.getTextNodeHeight(), |
| | | (float) nodeElement.getTextNodeLength(), |
| | | (float) angle, |
| | | sb.toString() |
| | | sb.toString(), |
| | | -1 |
| | | }, null); |
| | | } |
| | | return feature; |
| | |
| | | if (bindingType.equals(Short.class)) {
|
| | | pstmt.setShort(i + 1, (Short) attributes.get(i));
|
| | | } else if (bindingType.equals(Integer.class)) {
|
| | | pstmt.setInt(i + 1, (Short) attributes.get(i));
|
| | | pstmt.setInt(i + 1, (Integer) attributes.get(i));
|
| | | } else if (bindingType.equals(Long.class)) {
|
| | | pstmt.setLong(i + 1, (Long) attributes.get(i));
|
| | | } else if (bindingType.equals(String.class)) {
|
| | |
| | | if (bindingType.equals(Short.class)) {
|
| | | pstmt.setShort(i + 1, (Short) attributes.get(i));
|
| | | } else if (bindingType.equals(Integer.class)) {
|
| | | pstmt.setInt(i + 1, (Short) attributes.get(i));
|
| | | pstmt.setInt(i + 1, (Integer) attributes.get(i));
|
| | | } else if (bindingType.equals(Long.class)) {
|
| | | pstmt.setLong(i + 1, (Long) attributes.get(i));
|
| | | } else if (bindingType.equals(String.class)) {
|
| | |
| | | } catch (SchemaNotFoundException e) { |
| | | return false; |
| | | } catch (IOException e) { |
| | | getLogger().info(e.getMessage(), e); |
| | | if (e.getMessage().indexOf("Schema") != -1) |
| | | getLogger().info(e.getMessage(), e); |
| | | else |
| | | getLogger().info(e.getMessage()); |
| | | return false; |
| | | } |
| | | } |
| | |
| | | if (bindingType.equals(Short.class)) { |
| | | pstmt.setShort(i + 1, (Short) attributes.get(i)); |
| | | } else if (bindingType.equals(Integer.class)) { |
| | | pstmt.setInt(i + 1, (Short) attributes.get(i)); |
| | | pstmt.setInt(i + 1, (Integer) attributes.get(i)); |
| | | } else if (bindingType.equals(Long.class)) { |
| | | pstmt.setLong(i + 1, (Long) attributes.get(i)); |
| | | } else if (bindingType.equals(String.class)) { |
| | |
| | | } catch (SchemaNotFoundException e) { |
| | | return false; |
| | | } catch (IOException e) { |
| | | getLogger().info(e.getMessage(), e); |
| | | if (e.getMessage().indexOf("Schema") != -1) |
| | | getLogger().info(e.getMessage(), e); |
| | | else |
| | | getLogger().info(e.getMessage()); |
| | | return false; |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | if (length < 1) { |
| | | getLogger().info("FeatureType did not specify string length; defaulted to 512"); |
| | | getLogger().info("FeatureType did not specify string length; defaulted to 512 :" + |
| | | descriptor.getLocalName()); |
| | | length = 512; |
| | | } else if (length > MAX_ALLOWED_VALUE) { |
| | | length = MAX_ALLOWED_VALUE; |
| | |
| | | if (bindingType.equals(Short.class)) { |
| | | pstmt.setShort(i + 1, (Short) attributes.get(i)); |
| | | } else if (bindingType.equals(Integer.class)) { |
| | | pstmt.setInt(i + 1, (Short) attributes.get(i)); |
| | | pstmt.setInt(i + 1, (Integer) attributes.get(i)); |
| | | } else if (bindingType.equals(Long.class)) { |
| | | pstmt.setLong(i + 1, (Long) attributes.get(i)); |
| | | } else if (bindingType.equals(String.class)) { |
| | |
| | | return; |
| | | } |
| | | |
| | | // �P�_�O�_�ũM��� |
| | | SimpleFeature feature = elementDispatcher.execute(element, getDistId(), isTransformed()); |
| | | if (feature == null) { |
| | | FrammeAttributeData linkage = |
| | |
| | | return SimpleFeatureBuilder.build(featureType, new Object[]{ |
| | | geom, |
| | | colorTable.getColorCode(textElement.getColorIndex()), |
| | | colorTable.getColorCode(textElement.getColorIndex()), |
| | | textElement.getFontIndex(), |
| | | textElement.getJustification(), |
| | | textElement.getTextHeight(), |
| | | textElement.getTextWidth(), |
| | | angle, |
| | | content |
| | | content, |
| | | -1 |
| | | }, null); |
| | | } else { |
| | | logger.info("geometry is null." + element.toString()); |
| | |
| | | return SimpleFeatureBuilder.build(featureType, new Object[]{ |
| | | geom, |
| | | colorTable.getColorCode(textNodeElement.getColorIndex()), |
| | | colorTable.getColorCode(textNodeElement.getColorIndex()), |
| | | textNodeElement.getFontIndex(), |
| | | textNodeElement.getJustification(), |
| | | textNodeElement.getTextNodeHeight(), |
| | | textNodeElement.getTextNodeLength(), |
| | | angle, |
| | | sb.toString() |
| | | sb.toString(), |
| | | -1 |
| | | }, null); |
| | | } else { |
| | | logger.info("geometry is null." + element.toString()); |
| | |
| | | return SimpleFeatureBuilder.build(featureType, new Object[]{ |
| | | geom, |
| | | colorTable.getColorCode(shapeElement.getColorIndex()), |
| | | colorTable.getColorCode(shapeElement.getColorIndex()), |
| | | shapeElement.getWeight(), |
| | | shapeElement.getLineStyle() |
| | | shapeElement.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } else { |
| | | logger.info("geometry is null." + element.toString()); |
| | |
| | | return SimpleFeatureBuilder.build(featureType, new Object[]{ |
| | | geom, |
| | | colorTable.getColorCode(linestring.getColorIndex()), |
| | | colorTable.getColorCode(linestring.getColorIndex()), |
| | | linestring.getWeight(), |
| | | linestring.getLineStyle() |
| | | linestring.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } |
| | | return null; |
| | |
| | | return SimpleFeatureBuilder.build(featureType, new Object[]{ |
| | | geom, |
| | | colorTable.getColorCode(line.getColorIndex()), |
| | | colorTable.getColorCode(line.getColorIndex()), |
| | | line.getWeight(), |
| | | line.getLineStyle() |
| | | line.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } |
| | | return null; |
| | |
| | | return SimpleFeatureBuilder.build(featureType, new Object[]{ |
| | | geom, |
| | | colorTable.getColorCode(arcElement.getColorIndex()), |
| | | colorTable.getColorCode(arcElement.getColorIndex()), |
| | | arcElement.getWeight(), |
| | | arcElement.getLineStyle() |
| | | arcElement.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } |
| | | return null; |
| | |
| | | return SimpleFeatureBuilder.build(featureType, new Object[]{ |
| | | geom, |
| | | colorTable.getColorCode(arcElement.getColorIndex()), |
| | | colorTable.getColorCode(arcElement.getColorIndex()), |
| | | arcElement.getWeight(), |
| | | arcElement.getLineStyle() |
| | | arcElement.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } |
| | | return null; |
| | |
| | | return SimpleFeatureBuilder.build(featureType, new Object[]{ |
| | | geom, |
| | | colorTable.getColorCode(complexChainElement.getColorIndex()), |
| | | colorTable.getColorCode(complexChainElement.getColorIndex()), |
| | | complexChainElement.getWeight(), |
| | | complexChainElement.getLineStyle() |
| | | complexChainElement.getLineStyle(), |
| | | -1 |
| | | }, null); |
| | | } |
| | | return null; |
| | |
| | | } |
| | | logger.error(e.getServerErrorMessage()); |
| | | logger.error(e.getMessage(), e); |
| | | } catch (NullPointerException e) { |
| | | if (bindingStmt != null) { |
| | | logger.error("Execute:" + bindingStmt); |
| | | } |
| | | logger.error(feature.toString()); |
| | | logger.error(e.getMessage(), e); |
| | | } catch (ClassCastException e) { |
| | | if (bindingStmt != null) { |
| | | logger.error("Execute:" + bindingStmt); |
| | |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "geom", createGeometryType(attrBuilder, "PointType", Point.class, false, lookupCRS(defaultSRID)))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("symcolor", String.class, notAllowNull, 12, "")); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "dyncolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symcolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("font", Short.class, notAllowNull, 1, (short) 0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "font", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull, 1, (short) 0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("just", Short.class, notAllowNull, 1, (short) 0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "just", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull, 1, (short) 0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("height", Float.class, notAllowNull, 1, (float) 1.0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "height", createAttributeType(attrBuilder, "FloatType", Float.class, notAllowNull, 1, (float) 1.0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("width", Float.class, notAllowNull, 1, (float) 1.0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "width", createAttributeType(attrBuilder, "FloatType", Float.class, notAllowNull, 1, (float) 1.0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("angle", Float.class, notAllowNull, 1, (float) 0.0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "angle", createAttributeType(attrBuilder, "FloatType", Float.class, notAllowNull, 1, (float) 0.0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("context", String.class, notAllowNull, 254, "")); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "context", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 254, ""))); |
| | | |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "fowner", createAttributeType(attrBuilder, "IntegerType", Integer.class, allowNull, 1, -1))); |
| | | typeBuilder.addAll(attrDescs); |
| | | return typeBuilder; |
| | | } |
| | |
| | | AttributeTypeBuilder attrBuilder; |
| | | ArrayList<AttributeDescriptor> attrDescs = new ArrayList<AttributeDescriptor>(); |
| | | |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("geom", LineString.class, true)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "geom", createGeometryType(attrBuilder, "LineType", LineString.class, true, lookupCRS(defaultSRID)))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("symcolor", String.class, notAllowNull, 12, "")); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "dyncolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symcolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("symweight", Short.class, notAllowNull, 1, (short) 0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symweight", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull, 1, (short) 0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("symstyle", Short.class, notAllowNull, 1, (short) 0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symstyle", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull, 1, (short) 0))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "fowner", createAttributeType(attrBuilder, "IntegerType", Integer.class, allowNull, 1, -1))); |
| | | |
| | | typeBuilder.addAll(attrDescs); |
| | | return typeBuilder; |
| | | } |
| | |
| | | AttributeTypeBuilder attrBuilder; |
| | | ArrayList<AttributeDescriptor> attrDescs = new ArrayList<AttributeDescriptor>(); |
| | | |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("geom", MultiLineString.class, true)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "geom", createGeometryType(attrBuilder, "MultiLineStringType", MultiLineString.class, true, lookupCRS(defaultSRID)))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("symcolor", String.class, notAllowNull, 12, "")); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "dyncolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symcolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("symweight", Short.class, notAllowNull, 1, (short) 0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symweight", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull, 1, (short) 0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("symstyle", Short.class, notAllowNull, 1, (short) 0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symstyle", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull, 1, (short) 0))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "fowner", createAttributeType(attrBuilder, "IntegerType", Integer.class, allowNull, 1, -1))); |
| | | typeBuilder.addAll(attrDescs); |
| | | return typeBuilder; |
| | | } |
| | |
| | | AttributeTypeBuilder attrBuilder; |
| | | ArrayList<AttributeDescriptor> attrDescs = new ArrayList<AttributeDescriptor>(); |
| | | |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("geom", Polygon.class, true)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "geom", createGeometryType(attrBuilder, "PolygonType", Polygon.class, true, lookupCRS(defaultSRID)))); |
| | | |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("symcolor", String.class, notAllowNull, 12, "")); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "dyncolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symcolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("symweight", Short.class, notAllowNull, 1, (short) 0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symweight", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull, 1, (short) 0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("symstyle", Short.class, notAllowNull, 1, (short) 0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symstyle", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull, 1, (short) 0))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "fowner", createAttributeType(attrBuilder, "IntegerType", Integer.class, allowNull, 1, -1))); |
| | | typeBuilder.addAll(attrDescs); |
| | | return typeBuilder; |
| | | } |
| | | |
| | | public static SimpleFeatureTypeBuilder createNormalArcFeatureTypeBuilder(String featureName) { |
| | | return createNormalLineFeatureTypeBuilder(featureName); |
| | | /* |
| | | FeatureTypeBuilder typeBuilder = FeatureTypeBuilder.newInstance(featureName); |
| | | typeBuilder.addType(AttributeTypeFactory.newAttributeType("geom", Geometry.class, false)); |
| | | typeBuilder.addType(AttributeTypeFactory.newAttributeType("symcolor", String.class, notAllowNull, 12)); |
| | | typeBuilder.addType(AttributeTypeFactory.newAttributeType("symweight", Short.class, false)); |
| | | typeBuilder.addType(AttributeTypeFactory.newAttributeType("symstyle", Short.class, false)); |
| | | return typeBuilder; |
| | | */ |
| | | } |
| | | |
| | | public static SimpleFeatureTypeBuilder createNormalEllipseFeatureTypeBuilder(String featureName) { |
| | | return createNormalPolygonFeatureTypeBuilder(featureName); |
| | | /* |
| | | FeatureTypeBuilder typeBuilder = FeatureTypeBuilder.newInstance(featureName); |
| | | typeBuilder.addType(AttributeTypeFactory.newAttributeType("geom", Geometry.class, false)); |
| | | typeBuilder.addType(AttributeTypeFactory.newAttributeType("symcolor", String.class, notAllowNull, 12)); |
| | | typeBuilder.addType(AttributeTypeFactory.newAttributeType("symweight", Short.class, false)); |
| | | typeBuilder.addType(AttributeTypeFactory.newAttributeType("symstyle", Short.class, false)); |
| | | return typeBuilder; |
| | | */ |
| | | } |
| | | |
| | | public static SimpleFeatureTypeBuilder createNormalIndexFeatureTypeBuilder(String featureName) { |
| | |
| | | AttributeTypeBuilder attrBuilder; |
| | | ArrayList<AttributeDescriptor> attrDescs = new ArrayList<AttributeDescriptor>(); |
| | | |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("geom", Polygon.class, true)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "geom", createGeometryType(attrBuilder, "PolygonType", Polygon.class, true, lookupCRS(defaultSRID)))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("x1", Double.class, notAllowNull, 1, 0.0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "x1", createAttributeType(attrBuilder, "DoubleType", Double.class, notAllowNull, 1, 0.0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("y1", Double.class, notAllowNull, 1, 0.0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "y1", createAttributeType(attrBuilder, "DoubleType", Double.class, notAllowNull, 1, 0.0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("x2", Double.class, notAllowNull, 1, 0.0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "x2", createAttributeType(attrBuilder, "DoubleType", Double.class, notAllowNull, 1, 0.0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("y2", Double.class, notAllowNull, 1, 0.0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "y2", createAttributeType(attrBuilder, "DoubleType", Double.class, notAllowNull, 1, 0.0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("tpclid", String.class, notAllowNull, 12, "")); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "tpclid", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("symcolor", String.class, notAllowNull, 12, "")); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symcolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("symweight", Short.class, notAllowNull, 1, (short) 0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symweight", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull, 1, (short) 0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("symstyle", Short.class, notAllowNull, 1, (short) 0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symstyle", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull, 1, (short) 0))); |
| | |
| | | AttributeTypeBuilder attrBuilder; |
| | | ArrayList<AttributeDescriptor> attrDescs = new ArrayList<AttributeDescriptor>(); |
| | | |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("geom", Point.class, true)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "geom", createGeometryType(attrBuilder, "PointType", Point.class, true, lookupCRS(defaultSRID)))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("symcolor", String.class, notAllowNull, 12, "")); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symcolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("symweight", Short.class, notAllowNull, 1, (short) 0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symweight", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull, 1, (short) 0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("symstyle", Short.class, notAllowNull, 1, (short) 0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symstyle", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull, 1, (short) 0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("just", Short.class, notAllowNull, 1, (short) 0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "just", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull, 1, (short) 0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("height", Float.class, notAllowNull, 1, (float) 1.0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "height", createAttributeType(attrBuilder, "FloatType", Float.class, notAllowNull, 1, (float) 1.0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("width", Float.class, notAllowNull, 1, (float) 1.0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "width", createAttributeType(attrBuilder, "FloatType", Float.class, notAllowNull, 1, (float) 1.0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("angle", Float.class, notAllowNull, 1, (float) 0.0)); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "angle", createAttributeType(attrBuilder, "FloatType", Float.class, notAllowNull, 1, (float) 0.0))); |
| | | // typeBuilder.addType(AttributeTypeFactory.newAttributeType("tpclid", String.class, notAllowNull, 12, "")); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "tpclid", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | |
| | | "level", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "dyncolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symcolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | |
| | | "angle", createAttributeType(attrBuilder, "FloatType", Float.class, notAllowNull, 1, (float) 0.0))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "context", createAttributeType(attrBuilder, "StringType", String.class, true, 254))); |
| | | "context", createAttributeType(attrBuilder, "StringType", String.class, allowNull, 254, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "fowner", createAttributeType(attrBuilder, "IntegerType", Integer.class, allowNull, 1, -1))); |
| | | |
| | | typeBuilder.addAll(attrDescs); |
| | | return typeBuilder; |
| | |
| | | "level", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "dyncolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symcolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symbol", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 20))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "fowner", createAttributeType(attrBuilder, "IntegerType", Integer.class, allowNull, 1, -1))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "origin", createGeometryType(attrBuilder, "PointType", Point.class, notAllowNull, lookupCRS(defaultSRID)))); |
| | |
| | | "level", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "dyncolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symcolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symstyle", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull, 1, (short) 0))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "fowner", createAttributeType(attrBuilder, "IntegerType", Integer.class, allowNull, 1, -1))); |
| | | |
| | | typeBuilder.addAll(attrDescs); |
| | | return typeBuilder; |
| | |
| | | "level", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "dyncolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symcolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symstyle", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull, 1, (short) 0))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "fowner", createAttributeType(attrBuilder, "IntegerType", Integer.class, allowNull, 1, -1))); |
| | | |
| | | typeBuilder.addAll(attrDescs); |
| | | return typeBuilder; |
| | |
| | | "level", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "dyncolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symcolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symstyle", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull, 1, (short) 0))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "fowner", createAttributeType(attrBuilder, "IntegerType", Integer.class, allowNull, 1, -1))); |
| | | |
| | | typeBuilder.addAll(attrDescs); |
| | | return typeBuilder; |
| | |
| | | "level", createAttributeType(attrBuilder, "ShortType", Short.class, notAllowNull))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "dyncolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symcolor", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 12, ""))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "symbol", createAttributeType(attrBuilder, "StringType", String.class, notAllowNull, 20))); |
| | | attrBuilder = new AttributeTypeBuilder(); |
| | | attrDescs.add(attrBuilder.buildDescriptor( |
| | | "fowner", createAttributeType(attrBuilder, "IntegerType", Integer.class, allowNull, 1, -1))); |
| | | |
| | | typeBuilder.addAll(attrDescs); |
| | | return typeBuilder; |