コード例 #1
0
        private bool _exportSchemaSet(string path, JMSMLConfigETLConfigSchemaContainerSchemas schemas, bool isFirst)
        {
            // Export the information needed to create a set of related schemas within the schema container

            bool firstTime = isFirst;

            using (var w = new StreamWriter(path + "\\" + _schemaListFile, !firstTime))
            {
                if (firstTime)
                {
                    _writeHeaders(w, _schemaHeaders);

                    firstTime = false;
                }

                string line = string.Format("{0}", "SchemaSet," +
                                            schemas.Label + "," +
                                            "Mixed" + "," +
                                            '"' + schemas.LabelAlias + '"' + "," +
                                            '"' + schemas.Metadata.Label + '"' + "," +
                                            schemas.Metadata.Thumbnail + "," +
                                            schemas.Metadata.Tags + "," +
                                            '"' + schemas.Metadata.Summary + '"' + "," +
                                            '"' + schemas.Metadata.Description + '"' + "," +
                                            (schemas.Metadata.Credits != null ? '"' + schemas.Metadata.Credits + '"' : "") + "," +
                                            '"' + schemas.Metadata.Use + '"' + "," +
                                            (schemas.Metadata.Extent != null ? Convert.ToString(schemas.Metadata.Extent.East) : "") + "," +
                                            (schemas.Metadata.Extent != null ? Convert.ToString(schemas.Metadata.Extent.West) : "") + "," +
                                            (schemas.Metadata.Extent != null ? Convert.ToString(schemas.Metadata.Extent.North) : "") + "," +
                                            (schemas.Metadata.Extent != null ? Convert.ToString(schemas.Metadata.Extent.South) : "") + "," +
                                            schemas.Metadata.MaximumScale + "," +
                                            schemas.Metadata.MinimumScale + "," +
                                            schemas.SpatialReference);
                w.WriteLine(line);
                w.Flush();
            }

            return(firstTime);
        }
コード例 #2
0
        private bool _exportSchemaSet(string path, JMSMLConfigETLConfigSchemaContainerSchemas schemas, bool isFirst)
        {
            // Export the information needed to create a set of related schemas within the schema container

            bool firstTime = isFirst;

            using (var w = new StreamWriter(path + "\\" + _schemaListFile, !firstTime))
            {
                if (firstTime)
                {
                    _writeHeaders(w, _schemaHeaders);

                    firstTime = false;
                }

                string line = string.Format("{0}", "SchemaSet," +
                                                    schemas.Label + "," +
                                                    "Mixed" + "," +
                                                    '"' + schemas.LabelAlias + '"' + "," +
                                                    '"' + schemas.Metadata.Label + '"' + "," +
                                                    schemas.Metadata.Thumbnail + "," +
                                                    schemas.Metadata.Tags + "," +
                                                    '"' + schemas.Metadata.Summary + '"' + "," +
                                                    '"' + schemas.Metadata.Description + '"' + "," +
                                                    (schemas.Metadata.Credits != null ? '"' + schemas.Metadata.Credits + '"' : "") + "," +
                                                    '"' + schemas.Metadata.Use + '"' + "," +
                                                    (schemas.Metadata.Extent != null ? Convert.ToString(schemas.Metadata.Extent.East) : "") + "," +
                                                    (schemas.Metadata.Extent != null ? Convert.ToString(schemas.Metadata.Extent.West) : "") + "," +
                                                    (schemas.Metadata.Extent != null ? Convert.ToString(schemas.Metadata.Extent.North) : "") + "," +
                                                    (schemas.Metadata.Extent != null ? Convert.ToString(schemas.Metadata.Extent.South) : "") + "," +
                                                    schemas.Metadata.MaximumScale + "," +
                                                    schemas.Metadata.MinimumScale + "," +
                                                    schemas.SpatialReference);
                w.WriteLine(line);
                w.Flush();
            }

            return firstTime;
        }