Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] uDigWalkthrough2 Training Document

Thanks - that is just what we need.

So armed with this I can make a GeoTools bug report; chances are that some of the work around srsName handling has changed the api contract; I expect we need to add a String to the JTS Geometry object.

I will report the bug to GeoTools for now:

Here is the source code in GeoTools for GMLComplexTypes.java 361:

        AttributesImpl ai = new AttributesImpl();

        // no GID
        if (g.getUserData() != null) {
            ai.addAttribute("", "srsName", "", "anyURI",
                g.getUserData().toString());
        } else {
            if (g.getSRID() != 0) {
                // deprecated version
                ai.addAttribute("", "srsName", "", "anyURI", "" + g.getSRID());
            } else {
             throw new IOException("srsName required for MultiPoint "+(e==null?"":e.getName()));
            }
        }

So I am going to assume need to stuff an srsName or SRID number into the geometry when editing?

-- 
Jody Garnett
Sent with Sparrow

On Monday, 24 January 2011 at 12:03 PM, Patrick Jessup wrote:

More detail on this issue is provided below.

 

When you select the Tasmania roads layer and move a vertex, you can move the road, but when you try to commit the change, the road goes back to its previous position. The stack trace is as follows:

 

 

java.io.IOException: srsName required for MultiPoint

                at org.geotools.xml.gml.GMLComplexTypes.encode(GMLComplexTypes.java:361)

                at org.geotools.xml.gml.GMLComplexTypes.encode(GMLComplexTypes.java:150)

                at org.geotools.xml.gml.GMLComplexTypes$AbstractGeometryType.encode(GMLComplexTypes.java:976)

                at org.geotools.xml.wfs.WFSTransactionComplexTypes$PropertyType.encode(WFSTransactionComplexTypes.java:1460)

                at org.geotools.xml.wfs.WFSTransactionComplexTypes$UpdateElementType.encode(WFSTransactionComplexTypes.java:1078)

                at org.geotools.xml.wfs.WFSTransactionComplexTypes$TransactionType.encode(WFSTransactionComplexTypes.java:311)

                at org.geotools.xml.DocumentWriter.writeFragment(DocumentWriter.java:316)

                at org.geotools.xml.DocumentWriter.writeDocument(DocumentWriter.java:214)

                at org.geotools.data.wfs.v1_0_0.WFSTransactionState.commitPost(WFSTransactionState.java:291)

                at org.geotools.data.wfs.v1_0_0.WFSTransactionState.commit(WFSTransactionState.java:152)

                at org.geotools.data.DefaultTransaction.commit(DefaultTransaction.java:182)

                at net.refractions.udig.project.internal.impl.UDIGTransaction.commitInternal(UDIGTransaction.java:49)

                at net.refractions.udig.project.internal.impl.EditManagerImpl.commitTransaction(EditManagerImpl.java:395)

                at net.refractions.udig.project.internal.commands.selection.CommitCommand.run(CommitCommand.java:36)

             &nbTo: User-friendly Desktop Internet GIS Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [udig-devel] foss4g call for workshops X-BeenThere: udig-devel@xxxxxxxxxxxxxxxxxxxxx X-Mailman-Version: 2.1.11 Precedence: list Reply-To: User-friendly Desktop Internet GIS List-Id: User-friendly Desktop Internet GIS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2011 08:12:44 -0000 Hei ho, did anyone submit anything regarding uDig? We did, but it is as usual so processing related, that it might not be of taken :) But hey, never say never! Anyone? Andrea On Mon, Jan 17, 2011 at 1:13 PM, Jody Garnett wrote: > Seems to be moving quickly this year; anounced today - and closes on the 30th. > > Jody > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel >


Back to the top