<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6617.95">
<TITLE>Re: [mapguide-users] MapGuide Open Source Web Studio</TITLE>
</HEAD>
<BODY dir=ltr>
<DIV>Paul,</DIV>
<DIV> </DIV>
<DIV>Using local references as in my previous e-mail you do not need to call
SetResourceData at all. With SHP just reference a directory like this:</DIV>
<DIV> </DIV>
<DIV><?xml version="1.0" encoding="utf-8" ?> <BR><FeatureSource
xmlns:xsi="<A
href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>"
xmlns:xsd="<A
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>"
xsi:noNamespaceSchemaLocation="FeatureSource-1.0.0.xsd"><BR><Provider>OSGeo.SHP.3.0</Provider>
<BR><Parameter><BR><Name>DefaultFileLocation</Name>
<BR><Value>C:\MyData</Value>
<BR></Parameter><BR></FeatureSource></DIV>
<DIV> </DIV>
<DIV>MapGuide will automatically expose each SHP file in the C:\MyData folder
as a Feature Class. Just make sure each SHP file has a PRJ file that
MapGuide supports via Proj.4 and you are all set. Note that Studio will not show
the SHP files in the Feature Source editor, but that does not mean anything in
this case. Studio is just showing the result of enumerating the data associated
with the resource (e.g. being managed by that resource). In this case you are
managing the data, not MapGuide so it shows nothing.</DIV>
<DIV> </DIV>
<DIV>FYI - I seem to recall a bug with the SHP FDO Provider where all of the
data in a directory needs to use the same projection, so you might want to watch
out for that. </DIV>
<DIV> </DIV>
<DIV>Bob</DIV>
<DIV> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT size=2>-----Original Message----- <BR><B>From:</B> Paul Spencer
(External) <BR><B>Sent:</B> Mon 6/5/2006 10:13 PM <BR><B>To:</B>
users@mapguide.osgeo.org <BR><B>Cc:</B> <BR><B>Subject:</B> Re:
[mapguide-users] MapGuide Open Source Web Studio<BR><BR></FONT></DIV>
<P><FONT size=2>ahhh ... thats the trick.</FONT> </P>
<P><FONT size=2>When I looked at an uploaded shape file using
GetResourceContents</FONT> </P>
<P><FONT size=2><?xml version="1.0" encoding="utf-8"?></FONT> <BR><FONT
size=2><FeatureSource xmlns:xsi="<A
href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>"
</FONT><BR><FONT size=2>xmlns:xsd="<A
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>"
</FONT><BR><FONT
size=2>xsi:noNamespaceSchemaLocation="FeatureSource-1.0.0.xsd"></FONT>
<BR><FONT size=2>
<Provider>OSGeo.SHP.3.0</Provider></FONT> <BR><FONT
size=2> <Parameter></FONT> <BR><FONT
size=2>
<Name>DefaultFileLocation</Name></FONT> <BR><FONT
size=2>
<Value>%MG_DATA_FILE_PATH%</Value></FONT> <BR><FONT
size=2> </Parameter></FONT> <BR><FONT
size=2></FeatureSource></FONT> </P>
<P><FONT size=2>it didn't seem to list the actual files so I wasn't sure what
I could </FONT><BR><FONT size=2>do with this and
SetResourceContent. Using EnumerateResourceData </FONT><BR><FONT
size=2>listed the actual files but there didn't seem to be a way to put
this </FONT><BR><FONT size=2>XML back into the server. Now
that I look at the schema for the </FONT><BR><FONT size=2>feature
source, I realize that I could probably just have multiple
</FONT><BR><FONT size=2>Parameter tags, one for each file, and used
SetResourceContent :)</FONT> </P>
<P><FONT size=2>Cheers</FONT> </P>
<P><FONT size=2>Paul</FONT> </P><BR><BR><BR><BR>
<P><FONT size=2>On 5-Jun-06, at 9:48 PM, Robert Bray wrote:</FONT> </P>
<P><FONT size=2>> Paul,</FONT> <BR><FONT size=2>></FONT> <BR><FONT
size=2>> A typical FeatureSourceDefintion (for SDF) that is created
by </FONT><BR><FONT size=2>> Studio looks like:</FONT> <BR><FONT
size=2>></FONT> <BR><FONT size=2>> <?xml version="1.0"
encoding="utf-8" ?></FONT> <BR><FONT size=2>> <FeatureSource
xmlns:xsi="<A
href="http://www.w3.org/2001/XMLSchema-">http://www.w3.org/2001/XMLSchema-</A>
</FONT><BR><FONT size=2>> instance" xmlns:xsd="<A
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>"
</FONT><BR><FONT size=2>>
xsi:noNamespaceSchemaLocation="FeatureSource-1.0.0.xsd"></FONT> <BR><FONT
size=2>> <Provider>OSGeo.SDF.3.0</Provider></FONT> <BR><FONT
size=2>> <Parameter></FONT> <BR><FONT size=2>>
<Name>File</Name></FONT> <BR><FONT size=2>>
<Value>%MG_DATA_FILE_PATH%Parcels.sdf</Value></FONT> <BR><FONT
size=2>> </Parameter></FONT> <BR><FONT size=2>>
<Parameter></FONT> <BR><FONT size=2>>
<Name>ReadOnly</Name></FONT> <BR><FONT size=2>>
<Value>TRUE</Value></FONT> <BR><FONT size=2>>
</Parameter></FONT> <BR><FONT size=2>> </FeatureSource></FONT>
<BR><FONT size=2>></FONT> <BR><FONT size=2>> If you replace the
%MG_DATA_FILE_PATH% with a physical path to the </FONT><BR><FONT
size=2>> file on the servers file system you can effectively
"reference" </FONT><BR><FONT size=2>> data and not worry about
uploading it. A similar technique can be </FONT><BR><FONT size=2>>
used for SHP files, Raster files, etc.</FONT> <BR><FONT size=2>></FONT>
<BR><FONT size=2>> Bob</FONT> <BR><FONT size=2>> -----Original
Message-----</FONT> <BR><FONT size=2>> From: Paul Spencer (External)</FONT>
<BR><FONT size=2>> Sent: Mon 6/5/2006 9:14 PM</FONT> <BR><FONT size=2>>
To: users@mapguide.osgeo.org</FONT> <BR><FONT size=2>> Cc:</FONT> <BR><FONT
size=2>> Subject: Re: [mapguide-users] MapGuide Open Source Web
Studio</FONT> <BR><FONT size=2>></FONT> <BR><FONT size=2>> The preview
of the web layout is from the sample Sheboygan package.</FONT> <BR><FONT
size=2>> Web Studio can load web layouts using the ajax viewer, you just
can't</FONT> <BR><FONT size=2>> create or edit them yet.</FONT> <BR><FONT
size=2>></FONT> <BR><FONT size=2>> I had originally thought that we
would only be supporting data that</FONT> <BR><FONT size=2>> was already on
the server. The data that is stored on the server is</FONT> <BR><FONT
size=2>> reported through the MapAgent using the
EnumerateResourceData</FONT> <BR><FONT size=2>> operation. The XML
returned from this lists the data file or files</FONT> <BR><FONT size=2>>
that are part of the resource. There doesn't seem to be a way to</FONT>
<BR><FONT size=2>> create the XML and put it into the server. Thus it
doesn't seem</FONT> <BR><FONT size=2>> possible to support creating a
feature source that refers to data</FONT> <BR><FONT size=2>> already on the
server. I could be wrong about this, though.</FONT> <BR><FONT
size=2>></FONT> <BR><FONT size=2>> Cheers</FONT> <BR><FONT
size=2>></FONT> <BR><FONT size=2>> Paul</FONT> <BR><FONT
size=2>></FONT> <BR><FONT size=2>></FONT> <BR><FONT size=2>> On
5-Jun-06, at 6:20 PM, Jason Birch wrote:</FONT> <BR><FONT size=2>></FONT>
<BR><FONT size=2>> > IANAP (I am not a Paul), but I think that "The
primary goal of this</FONT> <BR><FONT size=2>> > release is to enable
users to get data into the server" must mean</FONT> <BR><FONT size=2>> >
that there is some mechanism for either uploading data, or (based</FONT>
<BR><FONT size=2>> > on some questions Paul asked on this list) possibly
referring to</FONT> <BR><FONT size=2>> > data that is already on the
server.</FONT> <BR><FONT size=2>> ></FONT> <BR><FONT size=2>> >
One of the screen shots shows a web layout. Perhaps there is a</FONT>
<BR><FONT size=2>> > "default" web layout provided?</FONT> <BR><FONT
size=2>> ></FONT> <BR><FONT size=2>> > Jason</FONT> <BR><FONT
size=2>> ></FONT> <BR><FONT size=2>> >
________________________________</FONT> <BR><FONT size=2>> ></FONT>
<BR><FONT size=2>> > From: Andy Morsell [@spatialgis.com]</FONT>
<BR><FONT size=2>> > Sent: Mon 2006-06-05 2:44 PM</FONT> <BR><FONT
size=2>> > Subject: RE: [mapguide-users] MapGuide Open Source Web
Studio</FONT> <BR><FONT size=2>> ></FONT> <BR><FONT size=2>> >
Wow, that really does look great. I'm confused on a couple of
</FONT><BR><FONT size=2>> issues,</FONT> <BR><FONT size=2>> >
though. First, it doesn't support load procedures, etc. I
think</FONT> <BR><FONT size=2>> > that makes</FONT> <BR><FONT
size=2>> > sense for a pure web-based authoring tool, but at this
point,</FONT> <BR><FONT size=2>> > people will</FONT> <BR><FONT
size=2>> > still have to use MapGuide Studio to load their data and
then</FONT> <BR><FONT size=2>> > author it with</FONT> <BR><FONT
size=2>> > this tool instead? I could see that a company may
choose to have a</FONT> <BR><FONT size=2>> > couple</FONT> <BR><FONT
size=2>> > of licenses of Studio for this and other advanced
functionality</FONT> <BR><FONT size=2>> > purposes and</FONT> <BR><FONT
size=2>> > then use the open source version for other folks needing to
create</FONT> <BR><FONT size=2>> > maps from</FONT> <BR><FONT
size=2>> > that data. I also imagine that others will eventually
develop open</FONT> <BR><FONT size=2>> > source</FONT> <BR><FONT
size=2>> > tools for loading data without the need for Studio.</FONT>
<BR><FONT size=2>> ></FONT> <BR><FONT size=2>> > Second, you say
that it doesn't support web layouts. Are the</FONT> <BR><FONT
size=2>> > webLayout's in</FONT> <BR><FONT size=2>> > the Web
Studio version different than MapGuide Studio web layouts?</FONT> <BR><FONT
size=2>> ></FONT> <BR><FONT size=2>> > Thanks again for developing
this open source tool. It will be very</FONT> <BR><FONT size=2>> >
useful.</FONT> <BR><FONT size=2>> ></FONT> <BR><FONT size=2>> >
<winmail.dat></FONT> <BR><FONT size=2>> > </FONT><BR><FONT
size=2>>
---------------------------------------------------------------------</FONT>
<BR><FONT size=2>> > To unsubscribe, e-mail:
users-unsubscribe@mapguide.osgeo.org</FONT> <BR><FONT size=2>> > For
additional commands, e-mail: users-help@mapguide.osgeo.org</FONT> <BR><FONT
size=2>></FONT> <BR><FONT size=2>>
+-----------------------------------------------------------------+</FONT>
<BR><FONT size=2>> |Paul
Spencer
pspencer@dmsolutions.ca |</FONT> <BR><FONT size=2>>
+-----------------------------------------------------------------+</FONT>
<BR><FONT size=2>> |Applications & Software
Development
|</FONT> <BR><FONT size=2>> |DM Solutions Group
Inc
<A href="http://www.dmsolutions.ca/|">http://www.dmsolutions.ca/|</A></FONT>
<BR><FONT size=2>>
+-----------------------------------------------------------------+</FONT>
<BR><FONT size=2>></FONT> <BR><FONT size=2>></FONT> <BR><FONT
size=2>></FONT> <BR><FONT size=2>></FONT> <BR><FONT size=2>></FONT>
<BR><FONT size=2>>
---------------------------------------------------------------------</FONT>
<BR><FONT size=2>> To unsubscribe, e-mail:
users-unsubscribe@mapguide.osgeo.org</FONT> <BR><FONT size=2>> For
additional commands, e-mail: users-help@mapguide.osgeo.org</FONT> <BR><FONT
size=2>></FONT> </P>
<P><FONT
size=2>+-----------------------------------------------------------------+</FONT>
<BR><FONT size=2>|Paul
Spencer
pspencer@dmsolutions.ca |</FONT> <BR><FONT
size=2>+-----------------------------------------------------------------+</FONT>
<BR><FONT size=2>|Applications & Software
Development
|</FONT> <BR><FONT size=2>|DM Solutions Group
Inc
<A href="http://www.dmsolutions.ca/|">http://www.dmsolutions.ca/|</A></FONT>
<BR><FONT
size=2>+-----------------------------------------------------------------+</FONT>
</P><BR><BR><BR><BR>
<P><FONT
size=2>---------------------------------------------------------------------</FONT>
<BR><FONT size=2>To unsubscribe, e-mail:
users-unsubscribe@mapguide.osgeo.org</FONT> <BR><FONT size=2>For additional
commands, e-mail: users-help@mapguide.osgeo.org</FONT>
</P></BLOCKQUOTE>
</BODY>
</HTML>