Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » OHF » Stem: Questions regarding the manipulation of files.
Stem: Questions regarding the manipulation of files. [message #31963] Tue, 17 July 2007 17:18 Go to next message
Eclipse UserFriend
Originally posted by: shaun.galey.gmail.com

Hello all,


I have a number of questions regarding the xml,properties,model,and graph
files. These files are spread out across ....ohf.stem.internal.data and
...ohf.stem.geography.

I have tried manipulating the Map files in geography for USA. There are 2
files in the USA folder USA_1_MAP and USA_2_Map. These files contain the
polygonal information for all 50 states and their counties. After
manipulating these files I observed that nothing changed with my
visualization of the USA.

Why did nothing change? I removed polygonal information regarding
particular states and they were still drawn correctly. What am I missing?

I can suppose that the information has been built and cataloged somewhere
else. Could someone give me better instructions on manipulating the Map?


Thank you,

Shaun
Re: Questions regarding the manipulation of files. [message #32069 is a reply to message #31963] Wed, 18 July 2007 15:00 Go to previous messageGo to next message
Daniel Ford is currently offline Daniel FordFriend
Messages: 138
Registered: July 2009
Location: New York
Senior Member
Shaun,
the contents of the org.eclipse.ohf.stem.geography project are almost
completely generated automatically from the contents of
org.eclipse.ohf.stem.internal.data. I say "almost" because the lat/long
data in the gml files currently resides there, but it too will be moving to
internal.data.

To process the contents of org.eclipse.ohf.stem.internal.data and generate
org.eclipse.ohf.stem.geography there is an Ant build file called
"update.xml" in the internal.data top-level directory. It requires some ant
properties to be set properly in Eclipse (it complains if there is a
problem). Right-click on the file and run as an "ant build" and it will
"completely" regenerate the contents of org.eclipse.ohf.stem.geography.
You'll need at least a gigabyte of RAM for this to run to completion on your
machine.

I was working on the design document in the wiki
(http://wiki.eclipse.org/STEM_Design_Document) just before I left for
vacation to capture this kind of "magic". So, watch (or contribute to) that
document as it evolves.

Dan




"Shaun Galey" <shaun.galey@gmail.com> wrote in message
news:bde046661f844f1ec6d2175c86a2ba22$1@www.eclipse.org...
>
> Hello all,
>
>
> I have a number of questions regarding the xml,properties,model,and graph
> files. These files are spread out across ....ohf.stem.internal.data and
> ..ohf.stem.geography.
> I have tried manipulating the Map files in geography for USA. There are 2
> files in the USA folder USA_1_MAP and USA_2_Map. These files contain the
> polygonal information for all 50 states and their counties. After
> manipulating these files I observed that nothing changed with my
> visualization of the USA.
>
> Why did nothing change? I removed polygonal information regarding
> particular states and they were still drawn correctly. What am I missing?
>
> I can suppose that the information has been built and cataloged somewhere
> else. Could someone give me better instructions on manipulating the Map?
>
>
> Thank you,
>
> Shaun
>
Re: Stem: Questions regarding the manipulation of files. [message #32139 is a reply to message #31963] Wed, 18 July 2007 15:07 Go to previous message
John Thomas is currently offline John ThomasFriend
Messages: 14
Registered: July 2009
Junior Member
Hi Shaun,
You have done a pretty good job of figuring things out on your own. But
there are some undocumented things that do confuse the issue.

There are actually 2 sets of map data. The map data that you found and
modified at ..geography/resources/data/geo/country/USA/
and another at ..geography/resources/data/geo/country_reduced/USA/

This 2nd set has the lat/long border data smoothed to reduced the number
of lat/long points used to describe the border. The reduced data is
used by default and which set is used is controlled by the preferences.

Windows->Preferences->STEM->Visualization->MapDataManagement- >UseLowerResolution

So if you uncheck the "UseLowerResolution" preference, it should use
your modified data.

Our documentation is still being developed but you can find some helpful
information in the design document
http://wiki.eclipse.org/STEM_Design_Document
and in the Stem Developer Guide Wiki
http://wiki.eclipse.org/index.php/Welcome_STEM_Developers#ST EM_Data

I will update the 2nd document so it points out the above information
about the reduceddata folder.

I hope this is helpful.

John



Shaun Galey wrote:
>
> Hello all,
>
>
> I have a number of questions regarding the xml,properties,model,and
> graph files. These files are spread out across
> ....ohf.stem.internal.data and ..ohf.stem.geography.
> I have tried manipulating the Map files in geography for USA. There are
> 2 files in the USA folder USA_1_MAP and USA_2_Map. These files contain
> the polygonal information for all 50 states and their counties. After
> manipulating these files I observed that nothing changed with my
> visualization of the USA.
>
> Why did nothing change? I removed polygonal information regarding
> particular states and they were still drawn correctly. What am I missing?
>
> I can suppose that the information has been built and cataloged
> somewhere else. Could someone give me better instructions on
> manipulating the Map?
>
>
> Thank you,
>
> Shaun
>
Re: Questions regarding the manipulation of files. [message #580158 is a reply to message #31963] Wed, 18 July 2007 15:00 Go to previous message
Daniel Ford is currently offline Daniel FordFriend
Messages: 138
Registered: July 2009
Location: New York
Senior Member
Shaun,
the contents of the org.eclipse.ohf.stem.geography project are almost
completely generated automatically from the contents of
org.eclipse.ohf.stem.internal.data. I say "almost" because the lat/long
data in the gml files currently resides there, but it too will be moving to
internal.data.

To process the contents of org.eclipse.ohf.stem.internal.data and generate
org.eclipse.ohf.stem.geography there is an Ant build file called
"update.xml" in the internal.data top-level directory. It requires some ant
properties to be set properly in Eclipse (it complains if there is a
problem). Right-click on the file and run as an "ant build" and it will
"completely" regenerate the contents of org.eclipse.ohf.stem.geography.
You'll need at least a gigabyte of RAM for this to run to completion on your
machine.

I was working on the design document in the wiki
(http://wiki.eclipse.org/STEM_Design_Document) just before I left for
vacation to capture this kind of "magic". So, watch (or contribute to) that
document as it evolves.

Dan




"Shaun Galey" <shaun.galey@gmail.com> wrote in message
news:bde046661f844f1ec6d2175c86a2ba22$1@www.eclipse.org...
>
> Hello all,
>
>
> I have a number of questions regarding the xml,properties,model,and graph
> files. These files are spread out across ....ohf.stem.internal.data and
> ..ohf.stem.geography.
> I have tried manipulating the Map files in geography for USA. There are 2
> files in the USA folder USA_1_MAP and USA_2_Map. These files contain the
> polygonal information for all 50 states and their counties. After
> manipulating these files I observed that nothing changed with my
> visualization of the USA.
>
> Why did nothing change? I removed polygonal information regarding
> particular states and they were still drawn correctly. What am I missing?
>
> I can suppose that the information has been built and cataloged somewhere
> else. Could someone give me better instructions on manipulating the Map?
>
>
> Thank you,
>
> Shaun
>
Re: Stem: Questions regarding the manipulation of files. [message #580198 is a reply to message #31963] Wed, 18 July 2007 15:07 Go to previous message
John Thomas is currently offline John ThomasFriend
Messages: 14
Registered: July 2009
Junior Member
Hi Shaun,
You have done a pretty good job of figuring things out on your own. But
there are some undocumented things that do confuse the issue.

There are actually 2 sets of map data. The map data that you found and
modified at ..geography/resources/data/geo/country/USA/
and another at ..geography/resources/data/geo/country_reduced/USA/

This 2nd set has the lat/long border data smoothed to reduced the number
of lat/long points used to describe the border. The reduced data is
used by default and which set is used is controlled by the preferences.

Windows->Preferences->STEM->Visualization->MapDataManagement- >UseLowerResolution

So if you uncheck the "UseLowerResolution" preference, it should use
your modified data.

Our documentation is still being developed but you can find some helpful
information in the design document
http://wiki.eclipse.org/STEM_Design_Document
and in the Stem Developer Guide Wiki
http://wiki.eclipse.org/index.php/Welcome_STEM_Developers#ST EM_Data

I will update the 2nd document so it points out the above information
about the reduceddata folder.

I hope this is helpful.

John



Shaun Galey wrote:
>
> Hello all,
>
>
> I have a number of questions regarding the xml,properties,model,and
> graph files. These files are spread out across
> ....ohf.stem.internal.data and ..ohf.stem.geography.
> I have tried manipulating the Map files in geography for USA. There are
> 2 files in the USA folder USA_1_MAP and USA_2_Map. These files contain
> the polygonal information for all 50 states and their counties. After
> manipulating these files I observed that nothing changed with my
> visualization of the USA.
>
> Why did nothing change? I removed polygonal information regarding
> particular states and they were still drawn correctly. What am I missing?
>
> I can suppose that the information has been built and cataloged
> somewhere else. Could someone give me better instructions on
> manipulating the Map?
>
>
> Thank you,
>
> Shaun
>
Previous Topic:Getting Started
Next Topic:Getting Started
Goto Forum:
  


Current Time: Sat Nov 22 03:19:00 GMT 2014

Powered by FUDForum. Page generated in 0.04258 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software