Re: [mapguide-users] WFS publishing question

2009-04-30 Thread Dragan Podvezanec



zspitzer wrote:
> 
> you can tweak those values in the server\wfs directory
> 

Ok, now I hardcoded those values in 1.0.0 and 1.1.0.xml.awd. Still, Map2009
says:

There was a problem accessing the connection's schema information. The HTTP
request URI was not found by the server.

For WFS parameter I entered:
http://localhost/mapguide/mapagent/mapagent.fcgi

uDig still says connection parameter is invalid. Adding
"?SERVICE=WFS&REQUEST=GETCAPABILITIES" at the end produces same error. The
output of http://localhost/mapguide/mapagent/getcapabilitieswfsform.html now
seems fine. 

Any ideas?

-- 
View this message in context: 
http://n2.nabble.com/WFS-publishing-question-tp2740434p2745595.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] WFS publishing question

2009-04-30 Thread Dragan Podvezanec

Well, I noticed something, maybe this is the error:

Part of the result of

http://localhost/mapguide/mapagent/mapagent.fcgi?REQUEST=GETCAPABILITIES&SERVICE=WFS&VERSION=1.0.0

is this:



http://localhost:8008/mapguide/mapagent/mapagent.fcgi?"/>



Where is this 8008 coming from?? I'm running mapguide on port 80, and not on
8008. Also I checked parameters in Mapguide Site Administrator, and there is
nowhere port 8008 specified.

So, maybe this is why my WFS requests don't work ?





-- 
View this message in context: 
http://n2.nabble.com/WFS-publishing-question-tp2740434p2745525.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] WFS publishing question

2009-04-29 Thread Dragan Podvezanec



Chris Claydon wrote:
> 
> That's right - you need to set up the equivalent settings for the feature
> sources that you've set up for the layers for WMS. (WMS works with layers
> to return raster images, WFS works with feature sources to return vector
> data with no inherent stylization).
> 
> 

Ok, thanks. Now it kind of works, but it doesn't :)

In http://localhost/mapguide/mapagent/getcapabilitieswfsform.html now I see
all features and feature  sources listed. So you could say it works.

But what is the url for connecting to WFS service? I tried with uDig and
Map2009 

http://localhost/mapguide/mapagent/mapagent.fcgi

,and

http://localhost/mapguide/mapagent/mapagent.fcgi?REQUEST=GETCAPABILITIES&SERVICE=WFS

But: Map3D says there are no valid layers and udig says connection
parameters are invalid.

So, how can I connect to Mapguide's WFS service? 

-- 
View this message in context: 
http://n2.nabble.com/WFS-publishing-question-tp2740434p2745237.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] WFS publishing question

2009-04-29 Thread Dragan Podvezanec

Could someone write what is exactly needed to publish layer data via WFS
service? With Maestro (i also tried Studio, same result), I edited layer
properties, added description, metadata, bounds, SRS and in the
functionality I checked Available and Queryable. But none of clients "sees"
this layer, and also with GETCAPABILITIES I don't see this layer. Only
layers I see are those from Sheboygan example. So, what else need I do to
publish layer with WFS? Just to mention, layer is seen through WMS service.
-- 
View this message in context: 
http://n2.nabble.com/WFS-publishing-question-tp2740434p2740434.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Geoserver, WFS and Mapguide

2009-04-07 Thread Dragan Podvezanec

Hi all, 

I have a problem with WFS layers served by Geoserver. I can see layers in Map 
3D 2009, but nothing is shown in MGOS. SRID is ok, 4326, extents of the map are 
ok, everything is as it should be, but there is error:

 Error: Failed to stylize layer: stat_area_areas
An exception occurred in FDO component.
Schema can not be found in the collection.
 StackTrace:
  - MgMappingUtil.StylizeLayers line 786 file 
d:\build\mapguide_open_source_v2.0\build_30.11\mgdev\server\src\services\mapping\MappingUtil.cpp
  Failed to stylize layer: stat_area_areas
An exception occurred in FDO component.
Schema can not be found in the collection.

I see that this problem has already been reported here 
(http://n2.nabble.com/Consuming-WFS%2C-error-in-MGE2009-td2161822.html#a2161822)
 , but no one offered a solution that works. Does this mean that this doesn't 
work yet?
-- 
View this message in context: 
http://n2.nabble.com/Geoserver%2C-WFS-and-Mapguide-tp2597650p2597650.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Adding OpenLayers.Layer to Fusion Map

2009-01-08 Thread Dragan Podvezanec

Great news! Thanks!

-- 
View this message in context: 
http://n2.nabble.com/Adding-OpenLayers.Layer-to-Fusion-Map-tp2124563p2127600.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Adding OpenLayers.Layer to Fusion Map

2009-01-08 Thread Dragan Podvezanec

Unfortunately, I'm struggling with the same problem. I tried to create custom
widget which would contain Openlayers map, and then tried to replace default
map with this Map, but I'm unsuccesseful so far.

I hope there is solutions to add layers from Openlayers, because this would
provide whole bunch of 3rd party layers. Maybe some kind of Openlayers
provider for MGOS? =^D

-- 
View this message in context: 
http://n2.nabble.com/Adding-OpenLayers.Layer-to-Fusion-Map-tp2124563p2127486.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Edit polygon

2008-10-24 Thread Dragan Podvezanec

Hi.

Imho,

It's not too hard to add Drawing functionality, since API supports it.
Adding point,line and polygon to map and storing it into spatial database is
easy through DigitizePoint, DigitizePolygon and DigitizeLine. If you wish, I
can send you sample code.

But, editing is something totally different. You would have to add functions
like snapping, checking the topology, and moving polygons.
-- 
View this message in context: 
http://www.nabble.com/Edit-polygon-tp20123089p20148423.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


RE: [mapguide-users] Please help! Has anybody used King.Oracleinreal conditions?

2008-10-17 Thread Dragan Podvezanec

Hi Haris,

We are running MapGuide Server (Version 2.0.0.2716), King.Oracle 0.7.4,
Oracle 10.2.0.1.0, and client which was installed with database. Everything
is on same machine.

Database has some 20 tables (around 10.000 objects) ,and few views. After
around 2 hours ram usage of mgserver goes above 1GB and everything gets
locked up until restarting the service.
-- 
View this message in context: 
http://www.nabble.com/Please-help%21-Has-anybody-used-King.Oracle-in-real-conditions--tp19793029p20032531.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Please help! Has anybody used King.Oracle in real conditions?

2008-10-14 Thread Dragan Podvezanec



FISHeR1 wrote:
> 
> Has anybody used King.Oracle in real conditions? Or it was created and
> tested by the developers, who ascertained outputed and calmed down?
> 
> In real conditions it is impossible to use this provider!
> 
> File mgserver.exe is damaged after a half an hour of intensive working.
> 
> Has anybody any ideas? What to do?
> 

Unfortunately, I can only confirm this problem: after hour or two of
intensive work, mgserver.exe "eats" all ram and application doesn't respond.
Since I'll have to use Oracle on public application, this is a major
obstacle.

10gR2 here, with about 10 tables and few views.
-- 
View this message in context: 
http://www.nabble.com/Please-help%21-Has-anybody-used-King.Oracle-in-real-conditions--tp19793029p19987883.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Oracle view crashing map server

2008-10-13 Thread Dragan Podvezanec

Hi all.

I followed instructions how to make layer from oracle view on Haris's site,
and everything seemed ok, i managed to create few layers this way. But now I
have one view which crashes the server everytime I turn the layer on, with
following error:

(3216) An unclassified exception occurred.
Exception occurred in method
MgApplicationRepositoryManager.EnumerateParentMapDe
finitions at line 699 in file
d:\buildforgeprojects\mapguide_open_source_v2.0\bu
ild_27.16\mgdev\server\src\services\resource\ApplicationRepositoryManager.cpp

View has primary key, and table from which is created has spatial index, PK
and all metadata set.
Interrestingly, this layer shows ok using Autodesk Map3D and King.Oracle and
I can even edit it. also, the table from which is created this view shows ok
and doesn't throw any errors. But I need the view to show just last 5
records from the table. And this crashes mgserver. Any ideas?
-- 
View this message in context: 
http://www.nabble.com/Oracle-view-crashing-map-server-tp19952132p19952132.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Ubuntu MGOS packages?

2008-09-28 Thread Dragan Podvezanec

Hi all. 

Since we have now MGOS Live CD which is based on Ubuntu, is there
possibility to have Ubuntu/Debian .deb packages for download? 

Also, does this MGOS version includes King.Oracle FDO provider?
-- 
View this message in context: 
http://www.nabble.com/Ubuntu-MGOS-packages--tp19718840p19718840.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Help with setting default map action

2008-09-22 Thread Dragan Podvezanec

Hi all. 

I'm trying to set default action in ajax viewer to be PAN instead of SELECT. 

So, I did in web layout URL for home task in task pane pan.php , and pan.php
looks like:




function OnPageLoad()
{
parent.parent.mapFrame.ExecuteMapAction(4);
}








I tried also other actions, but anyway, I get error:

parent.parent.mapFrame.ExecuteMapAction is not a function

So, what is wrong with this, and is there any other way to set default
viewer action to PAN ?
-- 
View this message in context: 
http://www.nabble.com/Help-with-setting-default-map-action-tp19604509p19604509.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Again question about Eastern european charset & king.oracle

2008-08-21 Thread Dragan Podvezanec



Simon Pelicon wrote:
> 
> Hi,
> I have tested this for (č,š,ž,đ) and i see them correctly.
> 
> My system settings are:
> Windows Xp:
> Standard And formats: Croatian
> Language:Croatia
> Language for non-unicode programs:Croatian
> 
> Web server:
> IIS with PHP
> 
> Oracle 10gR2:
> NLS_CHARACTERSETEE8MSWIN1250
> 
> If you enter this characters for example in feature Label as constant 
> expression do you see them correctly?
> 
> 

Yes, I see them correctly. After setting up all possible settings it seems
I'm very close: I don't have ?'s anymore, but still see C instead of Č and S
instead of Š. With FDO2FDO and dbVisualizer data is still correctly
displayed. Should I look at viewer's meta tags or this doesn't have to do
anything with label encoding?

-- 
View this message in context: 
http://www.nabble.com/Again-question-about-Eastern-european-charset---king.oracle-tp19083910p19088169.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Again question about Eastern european charset & king.oracle

2008-08-21 Thread Dragan Podvezanec

Hi all.

I'm stuck with eastern european characters (č,š,ž,đ) and Oracle.

I tried different NLS_LANG parameters on client (which is also the server),
and always have some kind of errors. What is most strange to me is that
FDO2FDO tool shows those characters without errors, and Mapguide OS doesn't
show those characters (in MapFrame), although they use same provider. So,
where does some charset conversion take place?

Here is my setup:

MGOS and Oracle on same machine, all regional settings and languages on
croatian, database charset WIN1250 (I can't change this because of possible
data loss). NLS_LANG parameter in registry is CROATIAN_CROATIA.EE8MSWIN1250

FDO2FDO, Toad, and other dB tools: OK
MGOS Viewer with king.Oracle provider: NOT ok, characters don't show or ?
shows instead.

-- 
View this message in context: 
http://www.nabble.com/Again-question-about-Eastern-european-charset---king.oracle-tp19083910p19083910.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Create layer from oracle database without spatial data

2008-08-12 Thread Dragan Podvezanec

If you use king.Oracle provider, you could use King.FDO.Class and then use
table without spatial data: detailed procedure is described here:

http://www.sl-king.com/fdooracle/KingFdoClass.htm
-- 
View this message in context: 
http://www.nabble.com/Create-layer-from-oracle-database-without-spatial-data-tp18848865p18942001.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] How to zoom to coordinates

2008-08-11 Thread Dragan Podvezanec

Hi all. I have custom query which returns different objects from different
layers. I know boundary coordinates of this objects (minx,miny,maxx,maxy),
but I don't see any function to zoom to this known extents. Can this be done
and is there any example?

What I'm trying to do now is to calculate diagonal and center (x,y) from
this extents, and then to calculate zoom scale which would be passed to
ZoomToView(x,y,scale) , but this seems too complicated. 
-- 
View this message in context: 
http://www.nabble.com/How-to-zoom-to-coordinates-tp18921246p18921246.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Feature Service exception - Only one aggregate function of this kind is supported

2008-08-08 Thread Dragan Podvezanec

I wrote few days ago about not being able to execute mapAction(10) - zoom to
selection on layer from king.oracle. Here are now detailed steps and
detailed error:

Table1 - has geometry column (GEOMETRY) , primary key, and spatial index
Table2 - doesn't have geometry and spatial index, just data

View1 - Join from Tables 1 and 2

So I created MYFDOCLASS as suggested, and made new FDO Class:

Name: FDOCLASS1
Owner: USER
OracleName: Table2
OracleGeometryColumn: GEOMETRY
SpatialTableOwner: USER
SpatialTableName: Table1
SpatialTableGeometryName: GEOMETRY

Then new layer is being made, with FDOCLASS1 as feature source. Layer is
shown, objects are selectable, but when using bult-in Search function,
objects only get selected, but not zoomed to, and following error is thrown:

Feature Service exception - Only one aggregate function of this kind is
supported

Exception occurred in method MgServerFeatureUtil.GetPropertyDefinition at
line 298 in file
d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\feature\ServerFeatureUtil.cpp

What does this error mean?



-- 
View this message in context: 
http://www.nabble.com/Feature-Service-exception---Only-one-aggregate-function-of-this-kind-is-supported-tp18886837p18886837.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


mapguide-users@lists.osgeo.org

2008-08-06 Thread Dragan Podvezanec

Hi again. I have found error on this subject: mgserver throws

Feature Service exception - Only one aggregate function of this kind is
supported 

When using search on king oracle layer. I don't know what this error means.
But this is why object doesn't get zoomed.

-- 
View this message in context: 
http://www.nabble.com/Map-doesn%27t-zoom-and-center-after-search-select-tp18754383p18848764.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Can I use win-1250 charset with king.oracle provider?

2008-08-04 Thread Dragan Podvezanec

Hi all.

Unfortunately, all tables that I have to use are in win-1250 Eastern
european encoding. Because of this, I don't see any characters on feature
labels which use eastern european characters. Same is with feature
properties.

I searched this forum and documentation, but I couldn't find anything about
setting charset. I need win-1250 charset in mapFrame, properties pane and
Task pane. Is this achievable?
-- 
View this message in context: 
http://www.nabble.com/Can-I-use-win-1250-charset-with-king.oracle-provider--tp18816847p18816847.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Problems with SetSelectionXML

2008-08-04 Thread Dragan Podvezanec



Dragan Podvezanec wrote:
> 
> Hi all.
> 
> I use latest MGOS, and layers from Oracle with king.oracle provider. Since
> with default Search tool from studio centering the map on selection
> doesn't work for me, i wrote my own search script, which connects to
> Oracle, makes a query and fetches object ID and coordinates (using
> SDO_UTILS VERTICES). If someone needs code, I can share it. After that I
> pass ID to map server FeatureReader, to make Selection. It seems like it
> all works, since EscapeForHtml($sel) looks like this:
> 
> <?xml version="1.0"
> encoding="UTF-8"?><FeatureSet
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:noNamespaceSchemaLocation="FeatureSet-1.0.0.xsd">
> <Layer id="5902d6a8--1000-8004-005056c8">
> <Class id="KingOra:ADRESNI_SUSTAV~GEOMETRY">
> <ID>AADAiUA=</ID> </Class>
> </Layer></FeatureSet>
> 
> So I have X , Y to make centering and zooming, and I have selection. Now I
> pass all parameters to zoom.php in scriptFrame target with POST, and then
> i execute javascript to zoom and center, like this:
> 
> 
>   
>   function OnPageLoad()
>   {
>   <?php 
>   if ($selText!="") 
>   {
>   echo 
> "parent.mapFrame.SetSelectionXML('".$selText."');";
>   echo 
> "parent.mapFrame.ZoomToView(".$x.",".$y.",300,true)";
>   } else {
>   echo 
> "parent.mapFrame.ZoomToView(".$x.",".$y.",300,true)";
>   }
>   ?>
>   }
>   
> 
> 
> 
> 
> 
> 
> Now I have reverse problem as my original one: map zooms and centers on X
> and Y, this works excellent, but nothing gets selected although in
> scriptFrame source I can see:
> 
> function OnPageLoad()
> {
> parent.mapFrame.SetSelectionXML('<?xml version="1.0"
> encoding="UTF-8"?><FeatureSet
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:noNamespaceSchemaLocation="FeatureSet-1.0.0.xsd">
> <Layer id="5902d6a8--1000-8004-005056c8">
> <Class id="KingOra:ADRESNI_SUSTAV_~GEOMETRY">
> <ID>AADAiUA=</ID> </Class>
> </Layer></FeatureSet>');parent.mapFrame.ZoomToView(5604102.95228933,5131454.39961872,300,true)
> }
> 
> So, I guess, question would be: why nothing gets selected although
> SelectionXML obviously is there?
> 
> 
> 
> 
> 
> 

Argh, problem solved :)

I was sending EscapeForHtml($selection->ToXml(), true); to above script,
when I should send just $selectionXml.

Works lika a charm.



-- 
View this message in context: 
http://www.nabble.com/Problems-with-SetSelectionXML-tp18810301p18810885.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Problems with SetSelectionXML

2008-08-04 Thread Dragan Podvezanec

Hi all.

I use latest MGOS, and layers from Oracle with king.oracle provider. Since
with default Search tool from studio centering the map on selection doesn't
work for me, i wrote my own search script, which connects to Oracle, makes a
query and fetches object ID and coordinates (using SDO_UTILS VERTICES). If
someone needs code, I can share it. After that I pass ID to map server
FeatureReader, to make Selection. It seems like it all works, since
EscapeForHtml($sel) looks like this:

  
AADAiUA= 


So I have X , Y to make centering and zooming, and I have selection. Now I
pass all parameters to zoom.php in scriptFrame target with POST, and then i
execute javascript to zoom and center, like this:



function OnPageLoad()
{

}







Now I have reverse problem as my original one: map zooms and centers on X
and Y, this works excellent, but nothing gets selected although in
scriptFrame source I can see:

function OnPageLoad()
{
parent.mapFrame.SetSelectionXML('  
AADAiUA= 
');parent.mapFrame.ZoomToView(5604102.95228933,5131454.39961872,300,true)
}

So, I guess, question would be: why nothing gets selected although
SelectionXML obviously is there?





-- 
View this message in context: 
http://www.nabble.com/Problems-with-SetSelectionXML-tp18810301p18810301.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


mapguide-users@lists.osgeo.org

2008-08-01 Thread Dragan Podvezanec



haris kurtagic wrote:
> 
> Hi Dragan,
> 
> Perhaps Spatia index ?  
> Perhaps not easy to setup test but you could try with Fdo2Fdo to run
> query with spatial intersect envelope against that Oracle view.
> 
> 

Hi Haris. 

Now i tried with one layer (not view). Object are on their exact
coordinates, and spatial index is set for this table, but centering also
doesn't work.

If I'll be unable to do this, then I'll try to extract x and y from geometry
column "manually" through php. Could you mail me your template for creating
empty table with DEFAULT geometry type? Just to see if there's something
wrong with the table.

-- 
View this message in context: 
http://www.nabble.com/Map-doesn%27t-zoom-and-center-after-search-select-tp18754383p18770536.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Import Views from Oracle Spatial

2008-08-01 Thread Dragan Podvezanec



A. Fischer wrote:
> 
> I tried all. First I used SqlSheet for giving the views a primary key
> and/or
> a spatial index but both is not allowed to a View.
> Also I downloaded fdo2fdo but I didn't get a connection to my database
> with
> this although it works with MapGuide Maestro and I used the same settings.
> But fdo2fdo gives the error "ORA-12154: TNS: could not resolve the connect
> identifier specified"
> 

It seems like you don't have Oracle Instant client installed: you can get it
here: 

www.oracle.com/technology/tech/oci/instantclient/instantclient.html

After installing it, edit NETOWRK/ADMIN/tnsnames.ora file which will be in
Oracle installation directory, with something  like this:

MYSERVER =
  (DESCRIPTION = MYSERVER
(ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
(CONNECT_DATA =
  (SID = orcl)
  (SERVER = DEDICATED)
)
  )

After editing, try

tnsping MYSERVER 

from command line. If it works, you'll be able to use king.oracle.


-- 
View this message in context: 
http://www.nabble.com/Import-Views-from-Oracle-Spatial-tp18689745p18769269.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


mapguide-users@lists.osgeo.org

2008-07-31 Thread Dragan Podvezanec



Dragan Podvezanec wrote:
> 
> I don't know why,but after searching some object and clicking on it, it
> gets selected, I see all properties, but Map doesn't execute zooming and
> centering the object. It is object drown from Oracle view with king.oracle
> provider. Could this be the problem ?
> 

Update after inspecting my problem:

Yes, there's obviously some problem with my layer which is view from Oracle.
I tried to export this layer to SDF, and then map centers and zooms fine
after search.

It seems like ExecuteMapAction(10) doesn't work with layer from king.Oracle
FDO provider. Map zooms ok, but it is always centered at initial map center.
Can someone confirm this issue? Latest MGOS here on XP and king.oracle
provider.
-- 
View this message in context: 
http://www.nabble.com/Map-doesn%27t-zoom-and-center-after-search-select-tp18754383p18769135.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


mapguide-users@lists.osgeo.org

2008-07-31 Thread Dragan Podvezanec

I don't know why,but after searching some object and clicking on it, it gets
selected, I see all properties, but Map doesn't execute zooming and
centering the object. It is object drown from Oracle view with king.oracle
provider. Could this be the problem ?
-- 
View this message in context: 
http://www.nabble.com/Map-doesn%27t-zoom-and-center-after-search-select-tp18754383p18754383.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Preventing tile cache deletion

2008-07-30 Thread Dragan Podvezanec

Is there any way to prevent deletion of tile cache after adding/removing some
layer?
-- 
View this message in context: 
http://www.nabble.com/Preventing-tile-cache-deletion-tp18688984p18688984.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Null reference query problem:

2008-07-30 Thread Dragan Podvezanec

Hi all.

I want to execute custom query on one layer using PHP. $mgSessionId and
$parcel_id are passed from another page and they are ok (I checked with
echo). Here's the code:

Open($userInfo);

$resourceService =
$siteConnection->CreateService(MgServiceType::ResourceService);
$featureService =
$siteConnection->CreateService(MgServiceType::FeatureService);
$map = new MgMap();
$mgMapName = 'map1';
$map->Open($resourceService, $mgMapName);


$queryOptions = new MgFeatureQueryOptions();
$queryOptions->SetFilter("parcel_id = $parcel_id");

$layer2 = $map->GetLayers()->GetItem('parcels');
$featureReader = $layer2->SelectFeatures($queryOptions);


}

?>

But this returns the following:

Null reference.Null reference. Exception occurred in method MgMap.GetService
at line 93 in file
d:\buildforgeprojects\mapguide_open_source_v2.0\build_23.8\mgdev\common\mapguidecommon\MapLayer/Map.cpp

What is wrong here?
-- 
View this message in context: 
http://www.nabble.com/Null-reference-query-problem%3A-tp18730412p18730412.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] Import Views from Oracle Spatial

2008-07-29 Thread Dragan Podvezanec


A. Fischer wrote:
> 
> Hello together,
> 
> when I create a new Layer in MapGuide I can only select the tables from my
> database but not the views.
> Now I read here, that I have to insert the views into the
> user_sdo_geom_metadata - table:
> 
> INSERT INTO user_SDO_GEOM_METADATA  VALUES ('VIEW_NAME',
> 'GEOM',SDO_DIM_ARRAY(  
> SDO_DIM_ELEMENT('X', -100, 100, 0.005),
> SDO_DIM_ELEMENT('Y', -100, 100, 0.005)
>  )
> ,NULL)
> 
> But I still can not select my VIEW from the list. Is there something else
> to do?
> 
> I would be pleased to receive an answer.
> Kind regards, Alexander Fischer
> 

Well, I followed thread from few days ago, someone had same problem. The
solution is that View must have primary key to be selectable. If you are not
too familiar with this, you can use Haris's FDO2FDO Tool, then you read
Oracle source, select the view and just click Create Primary Key. It worked
for me, I hope it will work for you too.

Of course, I aasume that you use King.Oracle FDO provider
-- 
View this message in context: 
http://www.nabble.com/Import-Views-from-Oracle-Spatial-tp18689745p18697040.html
Sent from the MapGuide Users mailing list archive at Nabble.com.

___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users