when zooming in very deeply in Google Earth we get a strange phenomenon with
the kml_reflect script. When zooming in quite far, we get a very "rugged"
outline of the polygons. Did anybody else notice it and is there a solution?
Hi list,
I can add featureType (layer) to the preview but unable to upload this
featureType to a WFS-T.For that I have changed tasmania.xml & config.xml , and
created a .xml file for this featureType.plz give me quick response.
I can add featureType (layer) to the preview but unable to upload this featureType to a WFS-T.For that I have changed tasmania.xml & config.xml , and created a .xml file for this featureType.plz give me quick response.
What do you mean by upload to WFS-T? In a WFS-T you have the ability to
edit data in existing feature types, but you can't upload a new one.
If you need to, create an empty feature type in your data store (e.g.
if the datastore is postgis create a new table with the attributes you need), then you'll be able to insert into it thru the Transaction calls.
Raj, when you want help please:
* don't send private mails. I want the mails to be seen on the
mailing list because like this other people can help or look
up answers using search engines.
* start up a new topic (don't reply to an existing one) on the
users mailing list.
I am using datstore as postgis. I have created a new Table and I inserted PolygonType attributes. It will be displayed as a polygon in map preview also,but we are unable to view in WFS-T demo application.
Unfortunately I'm no expert in mapbuilder configuration....
MapBuilder hackers sometimes read this mailing list, so they may
jump in and answer, or maybe Brent knows more. They'll be online
in a few hours (USA timezones).
Hi Raj
Sorry for the delayed response.
If you want to add data to the WFS-T demo page, you will need to edit the configuration files located where the demo lives.
You can do this by navigating to [geoserver_gome]webapps\geoserver\mb\demo\wfs-t
In there you will find a tasmania.xml file that has a list of layers. All you need to do is add your layer to it (following the examples already in the file). If you would like to edit the data as well as view it in the demo, then you will need to create a "template" file that mapbuilder will use to recognize the data that is in your layer (feature type). This file contains all the attributes and geometry type in your FeatureType; so basically you just need to copy one of the existing ones there (either template_cities.xml or template_roads.xml) and configure it to look like your data.
If you have any problems feel free to ask.
cheers,
Brent Owens
(The Open Planning Project)
Andrea Aime wrote:
Raj aryan ha scritto:
Hi Andrea,
Thanks for ur response.
Raj, when you want help please:
* don't send private mails. I want the mails to be seen on the
mailing list because like this other people can help or look
up answers using search engines.
* start up a new topic (don't reply to an existing one) on the
users mailing list.
I am using datstore as postgis. I have created a new Table and I inserted PolygonType attributes. It will be displayed as a polygon in map preview also,but we are unable to view in WFS-T demo application.
Unfortunately I'm no expert in mapbuilder configuration....
MapBuilder hackers sometimes read this mailing list, so they may
jump in and answer, or maybe Brent knows more. They'll be online
in a few hours (USA timezones).
You want GeoServer to add the layers in dynamically (say, when you add a new layer to GeoServer)?
The WFS-T demo is essentially a separate application that uses data served up from GeoServer, not the other way around. So you will need to write some sort of script on the client side to check for new layers and modify the XML.
If you just want to update the values in the existing config XML file, you can do that using XSLT. Mapbuilder will make it fairly easy to get a hold of the config document and then let you parse it and change values.
If you want to add new layers to the config XML file, there is no super easy way to go about doing this. One approach is to add some javascript (AJAX) to the WFS-T demo that will refresh periodically and ask GeoServer if any new layers have been added. This can be done by requesting the capabilities document and then parsing it to check for new layers that don't exist yet. Then, you have to build your own servlet in GeoServer (or possible another server-side script) that will take in a request to "create a new layer config XML document" and place the updated document in the demo folder, thus updating the client. The client will of course have to refresh automatically.
I hope that helps
Brent Owens
(The Open Planning Project)
Raj aryan wrote:
Hi Brent, Thanks for ur response.
We have tried this, and got the result. But this is an static, I need to know how to add layer dynamically. Please let me know the changes needed.
Can I add dynamic values in the XML file? if Yes please specify how to add them?
Sorry to say this but I need the changes as soon as possible. Please help me out soon.