Tag Info

Hot answers tagged

6

Using GeoServer is the way to go if you want services adhering to the OGC spec. Openlayers is the client side library you're looking for (using google maps and bing). In my experience however, only coding in javascript kills my productivity. I spend hours hunting small bugs, even with developer tools and firebug. Therefore, I write most of my code in ...


4

Allow me to address your points individually: API documentation has not been updated for years and developers are asked to use 2.0 docs for the 2.2 and 2.4 product Nearly all of MapGuide's API changes to the present day have been additive in nature (a new class here, a new method there). Only in very exceptional circumstances are classes or methods ...


3

Here's the complete code for reading through SDF: <?php session_start(); require_once '<your path>/common.php'; try{ $args = ($_SERVER['REQUEST_METHOD'] == 'POST')? $_POST : $_GET; $sessionId = $args['SESSION']; $mapName = $args['MAPNAME']; MgInitializeWebTier ($webconfigFilePath); $userInfo = ...


3

We're using MapGuide OpenSource here and are pretty pleased with its development environment other than lacking of documentation. Some MapGuide devs and consultants will recommend you use the "basic ajax" web app to develop your app, but we found it limiting and used Fusion instead. Fusion uses OpenLayer. Though MapGuide has Redlining built in, it's quite ...


2

Google Maps imagery is actually in the projected coordinate system Google Mercator (EPSG:900913). In some cases (e.g. KML layers), Google Maps takes WGS84 data and projects it, in other cases (e.g. an OpenLayers overlay) it doesn't. Try setting your coordinate system to EPSG:900913 and see if that solves the problem. I'm guessing your points are clustered ...


2

First of all: your original question is bad. You will may get inconsistensies if 2 users are using the file at the same time and your mysql server is suddenly responding slower or not at all, which may mean that properties are added to the wrong id. It may therefore be better to add all data to mysql, including the spatial data. There is an FDO provider ...


2

If speed is important, then MapServer is a better choice than GeoServer. As of 2010 MapServer is a faster WMS server than GeoServer, and the advantage that MapServer has is important. During last editions of the FOSS4G Conference, serious benchmarking of several WMS servers have been done. The description and results of the one done during the FOSS4G 2010 ...


2

I think the coordinates are in the spherical Mercator used by Bing maps and Google maps, NOT UTM. UTM coords normally are 6 digits in the easting. EPSG uses 3857 (as does Esri starting with ArcGIS 10) for the well-known ID. Esri used to use either 102113 or 102100 and others around the internet use 900913 ("google").


2

you might try exporting the data or possibly run it through a fix geometry (I use et geotools). It looks to me lie with the new meridian you are splitting some polygons and that is causing the fill to "leak" out.


2

Not sure how familiar you are with the MapGuide Web API, but that's what you'll have to use to achieve this. Basically, you'll have to dynamically generate a Layer Definition XML. You can see the XML of your existing layers for a reference or even load a generic one and modify the source of the data to the newly loaded data that the user uploaded... here's ...


1

If your postgis is setup correctly, connecting to Maestro should be fairly straight forward! Have you tried the following: http://trac.osgeo.org/mapguide/wiki/maestro/UserGuides/RDBMSFeatureSource


1

Okay.. from what i have learnt elsewhere...The SDF data cannot be edited directly using the Java Web API, instead Mapguide uses FDO which is an abstraction layer for accessing spatial data using a common api. FDO on MapGuide Open Source Hope this helps anyone with a similar question to my original question.


1

I'd suggest you take a look Jo Cook's post on pgRouting + MapServer integration and adapt it for use in MapGuide Open Source http://www.archaeogeek.com/blog/2012/12/24/pgrouting-and-mapserver/ EDIT: I've made a MapGuide-equivalent example http://themapguyde.blogspot.com.au/2013/04/mapguide-and-pgrouting-shortest-path.html


1

I'd like to add my 2 cents in here. I've been using MapGuide in both the enterprise and opensource form for a few years now, I can say that the out of the box software will allow you to display spatial data from many sources over the web and give some simple feature information dialogs for the users, layer styling is very managable through the maestro tool ...


1

In MapGuide, once you have connections to both the spatial and non-spatial databases, you can do a join, which should allow you to do what you're looking for. For example, go into the connection setting for the spatial connection. You'll see the last section of that page called "Add properties to classes using joins and calculations". Create a new Join. It ...


1

You can still use tiff and shp. How you use them in mapguide is via connectors/provider or data source. This step should be quite well documented. Please refer to the manual for either maestro or mapguide. By the way, here's a good start: http://trac.osgeo.org/mapguide/wiki/maestro/UserGuides/FileFeatureSource Good luck!


1

This is very similar to MIP Mapping, where resolutions in powers of 2 (1024x1024, 2048x1024, etc) are typically used for optimization purposes during hardware acceleration. So if you were following that line of thinking, starting with a 1024x1024 resolution, it would go 1024x1024, 512x512, 256x256, 128x128, 64x64 and on... There are MIP Mapping tools that ...


1

Might be a bit late on this one but perhaps you are required to pass a MgResourceIdentifier to UpdateFeatures ? So $featureService->UpdateFeatures($featureSourceId, $commands, false); might require changing to $featureResSourceId = new MgResourceIdentifier($featureResSourceId); $featureService->UpdateFeatures($featureResSourceId, $commands, ...


1

In addition to what Jackie said: Also from the FDO, you can somewhat just check the first few bytes of the SDF file. It's not a guaranteed, but should be pretty reliable, especially if you've only used one tool to create those SDF files. Perhaps this is easier, since it's pretty standalone (not depending on the FDO) and you can write this with pretty much ...


1

When you try to connect to a SDF < 3.0 file with FDO, the SDF provider will throw an exception with a specific message (SDF file appears to be version 2.1 or older. Please convert to SDF version 3) Therefore an ugly, but workable feasible solution is to employ the following logic in C#: try { //Try to connect using FDO. If you can open/close without ...


1

The implementation would be a tad different depending on what you're using: Fusion or Ajax Viewer. But mostly it'll depend on the mapguide php backend (or .net or java). If you look at the developer's guide PDF file that comes with your MGE cd (should be available online, but make sure they're kindda newer), around page 41: Working with Feature data -> ...


1

I'm guessing you're authoring this through Maestro right? I've gotten this error too. Here's how i fixed it: I dont remember why, but Gdal 1.6 didn't do it for me, i had to upgrade to the latest stable version of 1.8 (may work with 1.7, but why use older one?). You can probably compile this yourself or get FWTools, which may have the latest version of ...


1

Does it work with unique values? The gradient theme should not be a continous gradient but a color mapping to however many classes you have defined. I am guessing you want a to-from return. I can't find anything about this in the documentation. However did see a post stating that the object (talking about a google map legend) was not supported in MGOS ...



Only top voted, non community-wiki answers of a minimum length are eligible