Hello again, I'm thinking about Udig GML, it uses GML2 or GML3?
I'm using Udig1.1 RC1.4 I'm trying to run Udig and simply load a GML file to see it, but it doesn't work. I'm using these files downloaded on my hard drive: GML2.0 http://orchestra.atosorigin.es/cgi-bin/orchestra_ogc.cgi?request=GetFeature&service=WFS&version=1.0.0&typename=Railways SCHEMA http://orchestra.atosorigin.es/cgi-bin/orchestra_ogc.cgi?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Railways&OUTPUTFORMAT=XMLSCHEMA" Thank you for your support. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jody Garnett Sent: jueves, 12 de junio de 2008 12:35 To: User-friendly Desktop Internet GIS Subject: Re: [udig-devel] how to add a gml layer to a map Mario Nuñez Jimenez wrote: > > Hello, > > this is my first email to the udig developers list, > Welcome. > > and I have achieved to add a shapefile layer to a map but it doesn't > seems to work for a gml, and I don't know how to begin with it, can > someone let me a hand? > Working with GML files is hard; you may want to start with just a normal Java program trying out the GMLDataStore; in general you need to have file.xml and file.xsd (where the file.xsd has your xml schema file that extends gml schema). Hope that helps? We need a schema to parse your document... On trunk we may have the option of being a bit more relaxed; there is a new GML parser - but we have not wrapped it up in a DataStore yet. > > This is the sentences that I have used to do it, but how can I do it > for a gml ? > > File shapefile2 = new File("C:/Documents and > Settings/id-1m_inwaterarea_ll-wgs84_2000.shp"); > > List<IService> services = > serviceFactory.acquire(shapefile1.toURI().toURL()); > > services.addAll(serviceFactory.acquire(shapefile2.toURI().toURL())); > > List<IGeoResource> iGeoResources = new ArrayList<IGeoResource>(); > > for (IService service : services) { > > iGeoResources.addAll((Collection<? extends IGeoResource>) > service.members(null)); > > } > > ApplicationGIS.addLayersToMap(map, iGeoResources, -1); > > I get a nullPointerException... > > Thank you!! > Jody _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel ------------------------------------------------------------------ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. Este mensaje y los ficheros adjuntos pueden contener informacion confidencial destinada solamente a la(s) persona(s) mencionadas anteriormente. Pueden estar protegidos por secreto profesional Si usted recibe este correo electronico por error, gracias de informar inmediatamente al remitente y destruir el mensaje. Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin no se hace responsable por su contenido. Su contenido no constituye ningun compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes. Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor no puede garantizar nada al respecto y no sera responsable de cualesquiera danos que puedan resultar de una transmision de virus ------------------------------------------------------------------
_______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel