[mapguide-users] Can't insert feature into certain SDFs

Zak James zak4ms at gmail.com
Fri May 25 14:22:15 EDT 2007


Hi,

Does the feature you are trying to insert have any properties? Does
your code handle skipping the autogenerated property?

zak

On 5/25/07, Takashige Nakagawa <ta-nakagawa at apptec.co.jp> wrote:
> Hi, all.
>
> Since I posted the last mail, I've tried a lot.
> But I still can't insert features into some SDFs (And I can do it into
> others).
> I can delete and update features of them.Only the insertion wouldn't work.
> I don' know what's wrong.
>
> The schema is like below. Any ideas?
>
> Thanks.
>
> Takashige Nakagawa
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://fdo.osgeo.org/schemas/feature/SHP_Schema"
> xmlns:fdo="http://fdo.osgeo.org/schemas"
> xmlns:gml="http://www.opengis.net/gml"
> xmlns:SHP_Schema="http://fdo.osgeo.org/schemas/feature/SHP_Schema"
> elementFormDefault="qualified" attributeFormDefault="unqualified">
> <xs:annotation>
> <xs:documentation />
> </xs:annotation>
> <xs:element name="Test" type="SHP_Schema:TestType" abstract="false"
> substitutionGroup="gml:_Feature">
> <xs:key name="TestKey">
> <xs:selector xpath=".//Test" />
> <xs:field xpath="Autogenerated_SDF_ID" />
> </xs:key>
> </xs:element>
> <xs:complexType name="TestType" abstract="false" fdo:geometryName="SHPGEOM">
> <xs:annotation>
> <xs:documentation />
> <xs:appinfo source="http://fdo.osgeo.org/schemas" />
> </xs:annotation>
> <xs:complexContent>
> <xs:extension base="gml:AbstractFeatureType">
> <xs:sequence>
> <xs:element name="Autogenerated_SDF_ID" fdo:readOnly="true" minOccurs="0"
> fdo:autogenerated="true">
> <xs:simpleType>
> <xs:restriction base="fdo:int32" />
> </xs:simpleType>
> <xs:annotation>
> <xs:documentation>Autogenerated identity property</xs:documentation>
> <xs:appinfo source="http://fdo.osgeo.org/schemas" />
> </xs:annotation>
> </xs:element>
> <xs:element name="SHPGEOM" type="gml:AbstractGeometryType"
> fdo:hasMeasure="false" fdo:hasElevation="false" fdo:geometricTypes="surface"
> fdo:geometryTypes="polygon multipolygon curvepolygon multicurvepolygon">
> <xs:annotation>
> <xs:documentation>The geometry of the object</xs:documentation>
> <xs:appinfo source="http://fdo.osgeo.org/schemas" />
> </xs:annotation>
> </xs:element>
> <xs:element name="Name" minOccurs="0">
> <xs:annotation>
> <xs:documentation />
> </xs:annotation>
> <xs:simpleType>
> <xs:restriction base="xs:string">
> <xs:maxLength value="" />
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> </xs:sequence>
> </xs:extension>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
>
>
>
>
> From: "Jason Birch" <Jason.Birch at nanaimo.ca>
>
>
> >I could be wrong, but I believe there were/are some restrictions around
> >altering the schema of existing SDF files.
> > You might have to extract your existing SDF schema to XML, alter it,
> > create a new SDF, apply the altered schema, and transfer the data.
> >
> > Jason
> >
> > ________________________________
> >
> > From: Takashige Nakagawa
> > Subject: [mapguide-users] Can't insert feature into certain SDFs
> >
> > Hi all.
> >
> > I've been testing my code which insert features into SDFs and it worked
> > well
> > so far.
> > When it comes to certain SDFs, however, it wouldn't work.
> > I can delete and update features of these SDFs, so "Read Only" issue seems
> > not to have anything with this problem.
> >
> >
> > _______________________________________________
> > mapguide-users mailing list
> > mapguide-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapguide-users
> >
> >
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>


-- 
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca


More information about the mapguide-users mailing list