[mapguide-users] reading and editing SDF data with java

Jackie Ng jumpinjackie at gmail.com
Mon Apr 8 19:11:49 PDT 2013


1) Yes, it's all done through MgFeatureService which is a high-level wrapper
around FDO. This class is how you do CRUD through the MapGuide API.

However, if you're trying to bulk copy large volumes of spatial data, using
the MapGuide API to do this isn't probably the way to go even though it is
possible. I've written a bulk copier using the MapGuide APIs in PHP, it was
S L O W.

2) Class names are the same for PHP/Java/C#

With MapGuide Open Source 2.5, there's a MapGuideApi-sources.jar that
contains the javadoc'd source code for the MapGuide Java classes, which
provides inline API documentation for the MapGuide classes in your Java IDE.

3) That's the jar in question. Note that this is a SWIG-generated JNI
wrapper around native libraries. So if you're building Java applications
outside the context of a Java Servlet, you need to also need to make sure
your Java application can locate the Mg* dlls via the PATH environment
variable or the java.library.path system property. The bundled Tomcat
already knows where these files are, so if you're just building a regular
Java web application running on the bundled Tomcat, this is all set up for
you.

Note that with MapGuide Open Source 2.5, there's also a MapGuideApiEx.jar
(with matching -sources.jar) that's an enhanced version of the MapGuide Java
API. There's more information about this enhanced API here:
http://trac.osgeo.org/mapguide/wiki/MapGuideRfc129

- Jackie



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/reading-and-editing-SDF-data-with-java-tp5044300p5045382.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list