You can read the coordinate system in the MapDefinition XML (use
GetResourceContent).
Your database has specifics for dealing with coordinate systems, but it
varies between databases.
You can read the SpatialContext (GetSpatialContext) for the
FeatureSource, which gives
you what MapGuide thinks
I created a data connection through the provider MySQL in Mapguide Maestro ,
tested the connection and I have no problem but when i trying to create a
layer, I get the following error: Failed to read schema from data source.
The operation gave the error message: Error in the remote server: (559)
The problem here could be the MySQL version.
MapGuide 2.0.x uses FDO 3.3.x and the MySQL FDO provider there is only known
to work for MySQL 5.0.x series. If possible, try using the latest 5.0
release instead.
- Jackie
Raghu.indigo wrote:
I created a data connection through the provider
Hi,
I want to create a new featuresource (shp, sdf or SQL Server 2008 Spatial)
from my webapplication (c# .NET). I got it working for a sdf FeatureSource
with the MapGuideAPI. But I'm wondering if it is possible for SHP or SQL
Server Spatial at all. What are the steps to create an shape-file in
The MapGuide API only supports creating SDF files.
Rfc77 adresses this partially, and is being implemented for MG2.2:
http://trac.osgeo.org/mapguide/wiki/MapGuideRfc77
You can always create a FeatureSource xml document and upload to MapGuide.
What is missing is an empty SHP/SDF/SQLite file and
Thanks Kenneth,
which files do you mean with create and manipulate such files.
Do you mean the FeatureSource xml document or the empty SHP- and SDF-Files.
Do I have to use all of the following libraries: OSGeo.FDO.dll,
OSGeo.FDO.Common.dll and OSGeo.FDO.Geometry
Thanks, Gunter
Kenneth
FDO is the way to go. As Kenneth already mentioned, this approach won't be
portable unless you want to dive into the native C++ API. The Managed FDO
API is only available for Windows.
To do this, you will have to do the following:
FDO side:
1. Create a FDO connection to the desired provider
2.
I downloaded and installed MySQL version 5.0.80. still i am getting the same
error. I am using FDO Tools for creating spatial table from shapefiles using
ogr2ogr tool , is there any issues creating spatial table in MySQL
Jackie Ng wrote:
The problem here could be the MySQL version.
The .. such files refers til SHP/SDF/SQLite files.
I have not used the FDO API enough to answer your FDO question.
Regards, Kenneth Skovhede, GEOGRAF A/S
Gunter Becker skrev:
Thanks Kenneth,
which files do you mean with create and manipulate such files.
Do you mean the FeatureSource xml
Thank you Jackie,
I've put all the managed and unmanaged dll's from the windows binaries in
the bin folder of my WebApplication and tried to follow your steps but I got
an error message :
File or assembly file:///C:\Users\gunter.becker\Documents\Visual Studio
These dlls are from the FDO SDK?
Make sure that *all* the dlls (and providers.xml) from your FDO SDK are in
the output directory
- Jackie
Gunter Becker wrote:
Thank you Jackie,
I've put all the managed and unmanaged dll's from the windows binaries in
the bin folder of my WebApplication
No, these files are from FDO API and Common Binaries under Windows
Binaries. Does it make a difference?
I'll download the SDK files an give this a try!
Gunter
Jackie Ng wrote:
These dlls are from the FDO SDK?
Make sure that *all* the dlls (and providers.xml) from your FDO SDK are in
OK, I tried it with the SDK files and know I got the error message:
The specified module could not be found
Any ideas?
Gunter
Gunter Becker wrote:
No, these files are from FDO API and Common Binaries under Windows
Binaries. Does it make a difference?
I'll download the SDK files an
Do you have the Visual C++ 2008 runtime library installed?
If so, I wonder then if it is because you are using this in an ASP.net
environment and that is somehow messing with the paths?
- Jackie
Gunter Becker wrote:
OK, I tried it with the SDK files and know I got the error message:
The
Frank Warmerdam wrote:
The GDAL based FDO raster provider for MGOS uses nearest neighbour
resampling
for imagery. To some extent you can improve image quality by pre-creating
more appropriately resampled overview layers within the image itself
eg.
gdaladdo -r average your.tif 2 4 8
Using the SDK File in a WindowsApplication works for me!
But I would like to manage the creation of a feature source in the
WebApplication.
I think I have the C++ runtime library installed but I don't know exactly.
How can I determine that I have Visual C++ 2008 runtime library installed? I
FDO needs the VC++ runtime library. The OSGeo.FDO.*.dll files are .net
wrappers around the native libraries which use the VC++ runtime. Do not
uninstall it.
The fact that you have it working in a windows application means that you
have the runtime library installed. It also means that there is
When running a WebApp the actual assembly is placed in a temp folder.
You can read System.Reflection.Assembly.GetExecutingAssembly().Location,
to see it.
The windows dll location algorithm looks in the current dir, then
searches path, etc.
You need the dll's to be in the PATH env paths, you
18 matches
Mail list logo