Jackie,
Thanks for all your help. It's obvious I am struggling with this. After
making the change you suggested, I can add a layer from xml. Still having
problems though. If I change the node of the xml file from this:
Library://data/sdf/truck_route.FeatureSource
to something like this (the
MgByteSource takes a path to an xml file, not the xml content itself
- Jackie
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Add-geometry-to-feature-source-tp6082938p6156122.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
Thanks for the replies. In response to Zac: I am pretty sure my feature
source is not read only. I tried to verify this (see attached code). I
also made the changes Jackie suggested and ...
My code is now adding one item to the feature source which I am able to pull
with a feature reader. I th
Your MgInsertFeatures is inserting data into a feature class "curveInsert"
which is different from the class that you have created "truck_route"
Secondly everytime your script is run, it will trample over your previously
created feature source and create another layer of the same name.
There may
quick question, is your feature source defined as readonly, mapguide
fails silently when you try and update a read only featuresource
?
z
On Wed, Mar 9, 2011 at 10:28 AM, Greg wrote:
> Thanks for pointing me in the right direction.
>
> I still have a problem: When I create an MgFeatureReader to
Thanks for pointing me in the right direction.
I still have a problem: When I create an MgFeatureReader to look see if my
code has added anything to the feature source, no rows are returned. I must
be doing something wrong with the MgInsertFeatures command. My code is
below. It runs fine and
Thanks for pointing me in the right direction.
I still have a problem: When I create an MgFeatureReader to look see if my
code has added anything to the feature source, no rows are returned. I must
be doing something wrong with the MgInsertFeatures. My code is below. If
you have a minute, plea
Thanks for pointing me in the right direction. I am much closer now but
still have a problem:
After creating the feature source and adding the features I use an
MgFeatureReader to see if things have actually been added and the reader has
no rows. I have probably done something wrong with the MgI
2 Things.
1) You haven't actually created a feature source. You have defined the
schema/structure of the feature source, but you haven't called
MgFeatureService::CreateFeatureSource() to create it. (See: Temporary
Feature Sources in Chapter "Analyzing Features" of the MapGuide Developer's
Guide)
Look at the samples.
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Add-geometry-to-feature-source-tp6082938p6092281.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-
Thanks for the reply.
The code I have shown doesn't throw an error. I just can't figure out the
next step which is adding the geometry to the feature source I have just
created so I can display it on the map.
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Add-geometry-t
11 matches
Mail list logo