Is there any way for drawing a map starting from objects coordinates data on a
DB?
I'm thinking about creating a layer reading from a MySql db... what do you
think about?
----- Original Message -----
From: Carmelo Saffioti
To: MapGuide Users Mail List
Sent: Tuesday, November 25, 2008 11:07 AM
Subject: Re: [mapguide-users] Creating Streets and info
My coordinate system is relative and local, it is metric and its origin is a
(0,0) point on the planimetry.
If the map is generated by these metric data points on the DB, how would you
suggest to handle a sequence of GPS vehicles positions, which must be displayed
on the map ?
Have I transform GPS positions to local system coordinates (or the map
coordinates to GPS)?? Or is there any other way?
For drawing the map I have 2 ways:
1) using the DWG planimetry file (which now is geo-referenced)
2) reading objects data on a DB table, on which I have local coordinates of
objects centers, and drawing the map according to these data
The method (1) is what I'm using now, but it has some limitations:
- it's not possible to create the map programmatically, the map is created on
Autocad, which DWG file is imported into MapGuide. Therefore every map changes
must be done manually on Autocad
- it's not simple to attach additional fields values to Autocad objects
Which way would you suggest?
Carmelo
----- Original Message -----
From: Dave Wilson
To: MapGuide Users Mail List
Sent: Monday, November 24, 2008 10:32 PM
Subject: RE: [mapguide-users] Creating Streets and info
You can use X/Y data in any coordinate system, not just Lon/Lat in an ODBC
Connection.
Dave
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
Skovhede, GEOGRAF A/S
Sent: Monday, November 24, 2008 1:48 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Creating Streets and info
If you select the correct projection for both the data sources, and the map,
MapGuide should fix it correctly for you.
If you have X/Y data (lat/lon) in MySql, you can use the ODBC provider to
map the data into points.
Regards, Kenneth Skovhede, GEOGRAF A/S
Carmelo Saffioti skrev:
Thank you Kenneth, now it works :-)
Another question:
I've got objects coordinates and data on a MySql DB. Is it possible to use
it to draw a layer with these objects?
Object coordinates are local relative coordinates. Vehicles positions on my
DB are lat/lon GPS coordinates. Have you got any suggestions about dealing with
these different coordinates?
Thank you very much again
Cheers
Carmelo
----- Original Message -----
From: Kenneth Skovhede, GEOGRAF A/S
To: MapGuide Users Mail List
Sent: Monday, November 24, 2008 3:29 PM
Subject: Re: [mapguide-users] Creating Streets and info
I see the problem now.
You must include ALL the files, not just the SHP file.
After that you must select the shp file to be the "main" item (the star
button in Maestro).
I can send you a package where I have done this if you like.
The problem is that Maestro only displays "*.shp" in the file type, and
you must select "All files" before you can add those other files.
Feel free to add a feature request for the problem:
http://trac.osgeo.org/mapguide/newticket
Regards, Kenneth Skovhede, GEOGRAF A/S
Carmelo Saffioti skrev:
I tried using the exported SHP file with MapGuide Maestro. Using the
ajaxviewer example SDF files I see many attributes, but using my exported SHP
files I see only the FeatId field. If from Autocad Map I export data to SDF
format I've got the same problem...
If from Autocad Map I connect to the SHP data file I can see its
attributes values on the data table. How come MapGuide Maestro doesn't display
them?
The SHP file is attached with this message,
please help me
----- Original Message -----
From: Kenneth Skovhede, GEOGRAF A/S
To: MapGuide Users Mail List
Sent: Monday, November 24, 2008 1:56 PM
Subject: Re: [mapguide-users] Creating Streets and info
I am no expert on SHP data, but with most data, the attributes are
included.
If you use SHP data in MapGuide the attributes should be IN the SHP (or
is it dbx, etc) file.
>From then on you can see the columns everywhere, and use the
attributes as label or other stuff.
If you select the columns to view on the layer, they will show up, just
like the parcel data.
If you use Arc, the attributes are also attached to the topology, so
the export should be able to extract that as well.
Regards, Kenneth Skovhede, GEOGRAF A/S
Carmelo Saffioti skrev:
Thank you for your help.I've found how to create object data. The problem is
that I've got manyobjects (about 10.000), then I need an automatic method to
attach data toobjects. Some people told me to follow these steps:1) create a
topology2) export a SHP file with topology data3) use topology ID to make a
JOIN between topology data and data I need toattach4) import in Autocad Map the
SHP file5) label objects, using the Style tool6) create a link template7)
generate links to "Enclosed Text" On Autocad Map guide I saw that it is
possible to automatically link objectsto data on a DB table. But it requires
labels. Using labels created as Isaid here doesn't work... Other people told me
to attach objects data using a GIS software, but didnot say which software and
how :-( I hope anybody here can help me, because it's taking a really long time
forthis purpose... I need to develop something similar to the ajaxviewer
example, on which youcan view info about Parcels. Hoping in your
helpCheersCarmelo ----- Original Message ----- From: "Berdel, Brian" <[EMAIL
PROTECTED]>To: "MapGuide Users Mail List" <[email protected]>Sent:
Tuesday, November 18, 2008 2:45 PMSubject: RE: [mapguide-users] Creating
Streets and info In autocad map you have to create the object data and attach
it to thefeatures. Check the help for creating object data. It is
prettystraight forward once you know what you are doing. -----Original
Message-----From: [EMAIL PROTECTED]:[EMAIL PROTECTED] On Behalf Of
CarmeloSaffiotiSent: Tuesday, November 18, 2008 8:49 AMTo: MapGuide Users Mail
ListSubject: Re: [mapguide-users] Creating Streets and info Thanks Zac.You said
that the street layer tooltip is based on attributes chosenfromthe feature
source. Looking with Maestro at the viewer example I seewhatyou mean. Then now
I need to create a feature source with attributes.Thefeature source I'm using
is a SHP file exported from my DWG planimetrywithAutocad Map. Importing it into
MapGuide I can see that it has only 1attribute: FeatId. I saw that the viewer
example uses a layer called "Parcels", which hasmanyattributes. I need
something similar, because on my planimetry I havemanyadiacents blocks, and for
each of them I need to show a tooltip withdetailinformations (for example: Row
number, Block number, Area code). Have I create this blocks, with their detail
informations, on AutocadMap?I tried importing the Parcel SDF file features
source into Autocad Map,andI see that each block is a poliline. But I don't see
any attribute, Idon'tknow how to... ----- Original Message ----- From: "Zac
Spitzer" <[EMAIL PROTECTED]>To: "MapGuide Users Mail List"
<[email protected]>Sent: Tuesday, November 18, 2008 12:29
PMSubject: Re: [mapguide-users] Creating Streets and info have a look at how
the example you looked at is configured the street layer will expose a tooltip
based on the attributes chosenfrom the feature source in the tooltip expression
z On Tue, Nov 18, 2008 at 10:29 PM, Carmelo Saffioti <[EMAIL PROTECTED]>
wrote: Thank you for your answer.I'm using Maestro. Ok, I see that the tooltip
is definable on the layerwith Maestro.So, to have a tooltip for each
street should I have a layer for each street? ----- Original Message
-----From: "Zac Spitzer" <[EMAIL PROTECTED]>To: "MapGuide Users Mail List"
<[email protected]>Sent: Tuesday, November 18, 2008 12:15
PMSubject: Re: [mapguide-users] Creating Streets and info what tools are
you using? studio, maestro? they are called tooltips and they are defined per
layer On Tue, Nov 18, 2008 at 10:12 PM, Carmelo Saffioti <[EMAIL
PROTECTED]> wrote: Hi everybody,Seeing the MapGuide viewer example I saw
that when the mouse cursoris over a street it displays a message
with informations about the street.I'd like to make something
similar. I need to create streets and infos too.How can I do?I
hope you can help me starting
CheersCarmelo_______________________________________________mapguide-users
mailing [EMAIL PROTECTED]://lists.osgeo.org/mailman/listinfo/mapguide-users
--Zac Spitzer
-http://zacster.blogspot.comhttp://ennoble.dreamhosters.com/mapguide-central/+61
405 847 168_______________________________________________mapguide-users
mailing [EMAIL PROTECTED]://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________mapguide-users mailing [EMAIL
PROTECTED]://lists.osgeo.org/mailman/listinfo/mapguide-users -- Zac
Spitzer
-http://zacster.blogspot.comhttp://ennoble.dreamhosters.com/mapguide-central/+61
405 847 168_______________________________________________mapguide-users
mailing [EMAIL PROTECTED]://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________mapguide-users mailing [EMAIL
PROTECTED]://lists.osgeo.org/mailman/listinfo/mapguide-users_______________________________________________mapguide-users
mailing [EMAIL PROTECTED]://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________mapguide-users mailing [EMAIL
PROTECTED]://lists.osgeo.org/mailman/listinfo/mapguide-users
------------------------------------------------------------------------
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
--------------------------------------------------------------------------
_______________________________________________mapguide-users mailing [EMAIL
PROTECTED]://lists.osgeo.org/mailman/listinfo/mapguide-users
--------------------------------------------------------------------------
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
----------------------------------------------------------------------------
_______________________________________________mapguide-users mailing [EMAIL
PROTECTED]://lists.osgeo.org/mailman/listinfo/mapguide-users
----------------------------------------------------------------------------
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users