[Geoserver-users] DWG to SHP to PostGIS - Tips ?

Hi Alexander Petkov,

Thanks again. I got everything working ! (SLD, Search)

I have doubts on converting dwg format ?

What is the projection/coordinate mapping i should set
? (SRS 4326) - Does anyone have a good document on how
to do this ?

What tools should i use ? (GPL - if possible) ?

Cheers,
Muthu Veerappan

muthu veerappan <muthu_manaparai@anonymised.com> wrote:

Hi Alexander Petkov,

Thanks for your answers...I have few more doubts

1) I have 2 layers, can i show them in different
colors ? Is this related to SLD ?

Yes, you can show them in different colors. Yes, you
need to configure
an SLD to accomplish that.

3) Where does the geoserver store the configurations
for stores, styles, featuretypes ? Any xml file or ?

FeatureStore and style configuration is in the
catalog.xml file. This
catalog can have a few places, depending on how you
configured
Geoserver. If you haven't changed the default
directory where
Geoserver stores configuration, that would be the
WEB-INF/catalog.xml
file.

FeatureType configuration is stored in an info.xml
file in a
subdirectory in "data/featureTypes" . Hope this is
clear.

2) I have problem displaying my 3rd layer. I have

all

the information in postgis. 2 layers are always
visible but not the 3rd.. What could be the problem

?

There could be a number of problems:

1. The postgis layer doesn't have a valid geometry
column.
2. The layer is missing a corresponding entry in the
geometry_columns table.
3. The layer has a different projection than the other
two, despite
the fact that you are configuring it as an EPSG:4326.
4. The FeatureType is not configured properly in
Geoserver.

Overall, it could be a problem on the postgis end or
the geoserver end.

Alex

PR.Muthu Veerappan (&#2990;&#3009;&#2980;&#3021;&#2980;&#3009; &#2997;&#3008;&#2992;&#2986;&#3021;&#2986;&#2985;&#3021:wink:
Mobile +971 50 4206576 (Dubai)
e-Mail - muthu@anonymised.com
------------------------------------------
Check http://www.periyakaruppan.com
Join http://www.buddhibase.org
------------------------------------------

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

First of all, congrats on making Geoserver things work.
Can you school me on dwg format? What is it? What kind of data do you
have contained in it?

You never know--it may well be something that will help people reading the list.

Alex

On 5/25/06, muthu veerappan <muthu_manaparai@...54...> wrote:

Hi Alexander Petkov,

Thanks again. I got everything working ! (SLD, Search)

I have doubts on converting dwg format ?

What is the projection/coordinate mapping i should set
? (SRS 4326) - Does anyone have a good document on how
to do this ?

What tools should i use ? (GPL - if possible) ?

Cheers,
Muthu Veerappan

After I gave it a quick gander it looks like OGR (ogr2ogr is a part of
gdal) or GRASS will do DWG to SHP conversion.

Here is a link with a bit of light on the issue:
http://www.gdal.org/ogr/drv_dxfdwg.html

> What is the projection/coordinate mapping i should set
> ? (SRS 4326)

Whatever you need--preferably one listed in Geoserver.

Alex

On 5/25/06, Alexander Petkov <greenkov@...84...> wrote:

First of all, congrats on making Geoserver things work.
Can you school me on dwg format? What is it? What kind of data do you
have contained in it?

You never know--it may well be something that will help people reading the list.

Alex

On 5/25/06, muthu veerappan <muthu_manaparai@...54...> wrote:
> Hi Alexander Petkov,
>
> Thanks again. I got everything working ! (SLD, Search)
>
> I have doubts on converting dwg format ?
>
> What is the projection/coordinate mapping i should set
> ? (SRS 4326) - Does anyone have a good document on how
> to do this ?
>
> What tools should i use ? (GPL - if possible) ?
>
> Cheers,
> Muthu Veerappan
>

Ogr2ogr cannot do this since the DWG driver is write-only, so it cannot read DWG files but only write them.

Best regards,
Bart

Alexander Petkov wrote:

After I gave it a quick gander it looks like OGR (ogr2ogr is a part of
gdal) or GRASS will do DWG to SHP conversion.

Here is a link with a bit of light on the issue:
http://www.gdal.org/ogr/drv_dxfdwg.html

> What is the projection/coordinate mapping i should set
> ? (SRS 4326)

Whatever you need--preferably one listed in Geoserver.

Alex

On 5/25/06, Alexander Petkov <greenkov@...84...> wrote:

First of all, congrats on making Geoserver things work.
Can you school me on dwg format? What is it? What kind of data do you
have contained in it?

You never know--it may well be something that will help people reading the list.

Alex

On 5/25/06, muthu veerappan <muthu_manaparai@...54...> wrote:
> Hi Alexander Petkov,
>
> Thanks again. I got everything working ! (SLD, Search)
>
> I have doubts on converting dwg format ?
>
> What is the projection/coordinate mapping i should set
> ? (SRS 4326) - Does anyone have a good document on how
> to do this ?
>
> What tools should i use ? (GPL - if possible) ?
>
> Cheers,
> Muthu Veerappan
>

������������������������������������������[ay�oj{Z��(|�����tz,�)���.��^

�-jwQ����e��ڊw���!�'"j{�N��^�����^tv�q���jب�ȧ����b��v�-�/�jv��ƥJ�i���

X���%y�皊 ކ�i���z_ڳ���������rg�y��'�N��_ۉ�����Z׮6������������������������������������z������ɚ�X��X��g����z�����X������y�+���z�m�����b������q��a����+-��b�ا~��z�����

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl

Hi,

I fear ogr2ogr does not help in this case, it says "Reading of DXF and DWG files is currently not supported". Autodesk dwg is quite a nightmare. If only possible, try to get your data again in some other easier format. Consider even paying for conversion, it might be worth
it.

Regards,

-Jukka Rahkonen-

-----Original Message-----
From: geoserver-users-admin@lists.sourceforge.net on behalf of Alexander Petkov
Sent: Thu 25.5.2006 17:56
To: muthu veerappan
Cc: geoserver-users@lists.sourceforge.net; muthu@anonymised.com
Subject: [Geoserver-users] Re: DWG to SHP to PostGIS - Tips ?

After I gave it a quick gander it looks like OGR (ogr2ogr is a part of
gdal) or GRASS will do DWG to SHP conversion.

Here is a link with a bit of light on the issue:
http://www.gdal.org/ogr/drv_dxfdwg.html

> What is the projection/coordinate mapping i should set
> ? (SRS 4326)

Whatever you need--preferably one listed in Geoserver.

Alex

On 5/25/06, Alexander Petkov <greenkov@anonymised.com> wrote:

First of all, congrats on making Geoserver things work.
Can you school me on dwg format? What is it? What kind of data do you
have contained in it?

You never know--it may well be something that will help people reading the list.

Alex

On 5/25/06, muthu veerappan <muthu_manaparai@anonymised.com> wrote:
> Hi Alexander Petkov,
>
> Thanks again. I got everything working ! (SLD, Search)
>
> I have doubts on converting dwg format ?
>
> What is the projection/coordinate mapping i should set
> ? (SRS 4326) - Does anyone have a good document on how
> to do this ?
>
> What tools should i use ? (GPL - if possible) ?
>
> Cheers,
> Muthu Veerappan
>

jjyyrrzyqjJjj}j